DragonFly BSD

CVS log for src/sys/dev/disk/ata/ata-pci.c

[BACK] Up to [DragonFly] / src / sys / dev / disk / ata

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN
Current tag: MAIN


Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue May 1 00:05:16 2007 UTC (6 years, 11 months ago) by dillon
Branches: MAIN
CVS tags: HEAD, DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12, DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10, DragonFly_Preview
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
Implement kern.do_async_attach. default disabled.  To enable add
kern.do_async_attach="1" to your /boot/loader.conf.  This feature allows
conforming drivers to attach in their own thread, allowing multiple
drivers to attach in parallel.

Implement a new device state, DS_INPROGRESS.  Seems to work properly.
Implement device_set_async_attach(), which allows a device's probe
function to indicate that it is ok for its attach function to be run in
its own thread.

Split tsleep's enable out from the 'cold' variable. tsleep works earlier
then when cold is cleared.  Add a 'tsleep_now_works' variable to take
over the functionality.

Implement DRIVERSLEEP()... similar to DELAY(), this function works in
any context and will call lwkt_switch() in its spin loop.  It isn't perfect
yet.

ATA/NATA:
    * Uses the new async attach feature
    * Uses DRIVERSLEEP
    * No longer uses a configuration interrupt hook.  Interrupts are now
      available during device config.

    NOTE: atapicam does not seem to be scanning the 'bus' (from cam's point
    of view), so 'cd0' is not found until CAM scans the bus itself in the
    interrupt config hook code.

USB:
    * Uses the new async attach feature
    * Uses tsleep instead of DELAY

MISC:
    * IF_EM, IF_NFE also use the async attach feature as a test, but it
      doesn't seem to have a huge effect.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Dec 22 23:26:15 2006 UTC (7 years, 4 months ago) by swildner
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2 lines
Rename printf -> kprintf in sys/ and add some defines where necessary
(files which are used in userland, too).

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Dec 12 19:01:31 2006 UTC (7 years, 4 months ago) by dillon
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -1 lines
Add another ICH PCI ID.

Submitted-by: "Vlad Galu" <dudu@dudu.ro>

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Nov 14 10:54:21 2006 UTC (7 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -0 lines
Add some more PCI IDs for the SATA300 controllers of newer Intel boards.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Oct 25 20:55:53 2006 UTC (7 years, 5 months ago) by dillon
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Do a major clean-up of the BUSDMA architecture.  A large number of
essentially machine-independant drivers use the structures and definitions
in machine-dependant directories that are really machine-independant in
nature.

Split <machine/bus_dma.h> into machine-depdendant and machine-independant parts
and make the primary access run through <sys/bus_dma.h>.

Remove <machine/bus.h>, <machine/bus_memio.h> and <machine/bus_pio.h>.  The
optimizations related to bus_memio.h and bus_pio.h made a huge mess,
introduced machine-specific knowledge into essentially machine-independant
drivers, and required specific #include file orderings to do their job.
They may be reintroduced in some other form later on.

Move <machine/resource.h> to <sys/bus_resource.h>.  The contents of the file
is machine-independant or can be made a superset across many platforms.

Make <sys/bus.h> include <sys/bus_dma.h> and <sys/bus_resource.h> and
include <sys/bus.h> where necessary. Remove all #include's of
<machine/resource.h> and <machine/bus.h>.  That is, make the BUSDMA
infrastructure integral to I/O-mapped and memory-mapped accesses to devices
and remove a large chunk of machine-specific dependancies from drivers.
bus_if.h and device_if.h are now required to be present when using <sys/bus.h>.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Oct 12 04:02:37 2006 UTC (7 years, 6 months ago) by y0netan1
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -0 lines
Implement suspend method and wait for channels to be idle
before going to suspended state.

Taken-from: FreeBSD

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Sep 5 00:55:37 2006 UTC (7 years, 7 months ago) by dillon
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
Rename malloc->kmalloc, free->kfree, and realloc->krealloc.  Pass 1

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Mar 28 22:18:59 2006 UTC (8 years ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -0 lines
Add PCI IDs for Intel's ICH7 and ICH7M ATA/SATA hardware, used in
Core Duo.  The hardware is currently untested.

Reported-by: Gabor MICSKO <gmicsko@szintezis.hu>

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri May 27 21:12:51 2005 UTC (8 years, 10 months ago) by swildner
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +0 -19 lines
Remove DEC Alpha support.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue May 24 20:58:59 2005 UTC (8 years, 11 months ago) by dillon
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Get rid of bus_{disable,enable}_intr(), it wasn't generic enough for
our needs.

Implement some generic atomic.h functions to aid in the implementation of
a low level mutex.

Implement a generic low level sleep-mutex serializer, kern/lwkt_serialize.c.
The serializer is designed to be a replacement for SPL calls but may also
be used for other very low level work (e.g. lockmgr interlocks).

Add a serializer argument to BUS_SETUP_INTR().  When non-NULL, the interrupt
handler will no longer be protected by an SPL so e.g. spl*() will no
longer protect against that device's interrupts.

The IF queueing and dequeueing mechanisms may no longer depend on outside
SPL state because network driver interrupt handlers are no longer required to
enter splnet().  Use critical sections for the moment.  The IFQ and
IFF_OACTIVE interactions are not yet MP safe.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Apr 5 22:37:16 2005 UTC (9 years ago) by dillon
Branches: MAIN
CVS tags: DragonFly_Stable, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -0 lines
Add cases for the nvidia nForce3 PRO and PRO S1.  Who knows how well it
actually works.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Mar 8 18:40:28 2005 UTC (9 years, 1 month ago) by dillon
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -0 lines
Add a couple more PCI IDs for the Intel ICH5 ATA100, ICH6 SATA150,
and ICH6R SATA150.  Note that this is a quick hack which has only been
lightly tested, there are likely issues with the SATA parts.

Submitted-by: Chuck Tuffli <chuck_tuffli@agilent.com>

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Sep 1 14:13:55 2004 UTC (9 years, 7 months ago) by asmodai
Branches: MAIN
CVS tags: DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -0 lines
First stab at getting the Silicon Image (SiI) SATA controllers 3112 and
3124 working.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jul 16 13:08:46 2004 UTC (9 years, 9 months ago) by asmodai
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -0 lines
Add detection support for the Intel ICH6 chipset.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Jun 23 06:53:13 2004 UTC (9 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +33 -19 lines
Do a partial synch from FreeBSD-5 of the NVIDIA and NFORCE ATA setup code.
Our previous code was totally bogus.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jun 17 16:51:56 2004 UTC (9 years, 10 months ago) by dillon
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -2 lines
Don't set prefetch mode on VIA chips, it causes problems on newer chips and
ATAPI devices.

Notified-by: David Xu <davidxu@viatech.com.cn>
Taken-From: FreeBSD-5

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Mar 2 21:03:46 2004 UTC (10 years, 1 month ago) by drhodus
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -0 lines
*   Add in support for the Silicon Image SATA controller.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Mar 2 20:59:46 2004 UTC (10 years, 1 month ago) by drhodus
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1 lines
*   Correct end value calculation. This should fix the numerous problems
    with accessing devices on the ATA controller channel.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Feb 18 04:12:00 2004 UTC (10 years, 2 months ago) by dillon
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -0 lines
Add experimental (as in hacked) support for the Silicon Image SATA
controller 3512.  run it like the SiI 0680 ATA133 controller for now.

It works operating as a non-raid ata device on an FN85 Shuttle (AMD64)
motherboard.  The controller is theoretically a raid controller there is
no current support for it.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Feb 18 04:08:49 2004 UTC (10 years, 2 months ago) by dillon
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +41 -2 lines
ATAng stage 5: sync chipset changes and bug fixes.  busdma is not synched yet.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jan 28 12:48:49 2004 UTC (10 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -0 lines
Add support for the AMD 8111 chipset

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jan 23 15:35:13 2004 UTC (10 years, 3 months ago) by asmodai
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -0 lines
Add detection code for the SiS 746 ATA133 controller.
This does not, for all I can quickly see, enable ATA133 on the controller.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jan 23 14:11:13 2004 UTC (10 years, 3 months ago) by asmodai
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -0 lines
Add recognition code for the SiS 645DX.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Dec 25 07:16:35 2003 UTC (10 years, 4 months ago) by dillon
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -0 lines
Patch to make the P4S8X run in ATA100 mode.  This is a compromise, since
both the mainboard and the hard drive support ATA133 mode, but there doesn't
seem to be much difference between ATA100 and ATA133 even on FreeBSD-current.

Submitted-by: YONETANI Tomokazu <qhwt@les.ath.cx>

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 26 14:24:46 2003 UTC (10 years, 4 months ago) by asmodai
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -0 lines
Add support for the ICH 4 mobile chipset.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Oct 27 21:12:29 2003 UTC (10 years, 5 months ago) by asmodai
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -2 lines
Allow NVIDIA's nForce 2 chipset to use proper ATA DMA modes.

FreeBSD PR:	kern/47311
Submitted by:	Mike Hibler <mike@cs.utah.edu>

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Aug 7 21:16:51 2003 UTC (10 years, 8 months ago) by dillon
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
kernel tree reorganization stage 1: Major cvs repository work (not logged as
commits) plus a major reworking of the #include's to accomodate the
relocations.

    * CVS repository files manually moved.  Old directories left intact
      and empty (temporary).

    * Reorganize all filesystems into vfs/, most devices into dev/,
      sub-divide devices by function.

    * Begin to move device-specific architecture files to the device
      subdirs rather then throwing them all into, e.g. i386/include

    * Reorganize files related to system busses, placing the related code
      in a new bus/ directory.  Also move cam to bus/cam though this may
      not have been the best idea in retrospect.

    * Reorganize emulation code and place it in a new emulation/ directory.

    * Remove the -I- compiler option in order to allow #include file
      localization, rename all config generated X.h files to use_X.h to
      clean up the conflicts.

    * Remove /usr/src/include (or /usr/include) dependancies during the
      kernel build, beyond what is normally needed to compile helper
      programs.

    * Make config create 'machine' softlinks for architecture specific
      directories outside of the standard <arch>/include.

    * Bump the config rev.

    WARNING! after this commit /usr/include and /usr/src/sys/compile/*
    should be regenerated from scratch.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 04:28:22 2003 UTC (10 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: PRE_MP
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0 lines
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids.  Most
ids have been removed from !lint sections and moved into comment sections.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 02:54:04 2003 UTC (10 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: FREEBSD_4_FORK
import from FreeBSD RELENG_4 1.32.2.15

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options