The NetBSD Project

CVS log for src/sys/dev/ic/ahcisatavar.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 19 23:46:55 2021 UTC (14 months, 2 weeks ago) by rin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

ahcisata(4): Introduce AHCI_QUIRK_EXTRA_DELAY quirk for devices that
need extra delays as done by AHCISATA_EXTRA_DELAY option.

Enable this quirk for "C600/X79 AHCI". Also add commented out quirk
entries for "Bay Trail SATA (AHCI)" and "Mobile AHCI SATA Controller",
for which non-reproducible failures worked around by extra delays have
been reported.

500 ms of delays inserted by these option/quirk may be too much. Add
AHCISATA_EXTRA_DELAY_MS option to adjust number of delays in ms, like:

----
options 	AHCISATA_EXTRA_DELAY_MS=200
----

Thanks prlw1@ and jun@ for testing!

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:34:58 2021 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.24: +3 -4 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync w/ HEAD.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Wed Dec 30 15:12:38 2020 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.22.4.1: +2 -3 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #1167):

	sys/dev/ic/ahcisata_core.c: revision 1.84
	sys/dev/ic/ahcisata_core.c: revision 1.85
	sys/dev/ic/ahcisata_core.c: revision 1.88
	sys/dev/ic/ahcisata_core.c: revision 1.89
	sys/arch/arm/nvidia/tegra_ahcisata.c: revision 1.13
	sys/dev/ic/ahcisatavar.h: revision 1.26
	sys/dev/ic/ahcisata_core.c: revision 1.90
	sys/dev/ic/ahcisata_core.c: revision 1.91
	sys/dev/ic/ahcisata_core.c: revision 1.92
	sys/dev/ata/satareg.h: revision 1.6

ahci_exec_fis: wait for the correct amount of time when AT_WAIT is set

Retry clearing WDCTL_RST a few times before giving up. Makes SATA work in
Solidrun Honeycomb LX2K.

AHCI 1.3.1 specification says that it is good practice for system software
to 'zero-out' the memory allocated and referenced by PxCLB and PxFB.

ahci_intr: use ffs in the port bitmask instead of looping over all 32 bits

AHCI 1.3.1 section 5.5.3 "Processing Completed Commands" says that we
should clear PxIS before IS.IPS.

Add G3 and DevSleep definitions. This changes the mask used by
SControl_IPM_NONE from 0x3 to 0x7.

Make sure to ack IS after PxIS when polling and when using multiple MSI-X
messages.

Remove the AHCI_QUIRK_SKIP_RESET quirk now that the underlying issue is
fixed.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 28 14:08:42 2020 UTC (2 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Remove the AHCI_QUIRK_SKIP_RESET quirk now that the underlying issue is
fixed.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 25 08:57:38 2020 UTC (2 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Trailing whitespace

Revision 1.18.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:21 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.18.4.2: +2 -1 lines
Diff to previous 1.18.4.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.18.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:05 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.18.4.1: +2 -1 lines
Diff to previous 1.18.4.1 (colored) to branchpoint 1.18 (colored)

Merge changes from current as of 20200406

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:46 2020 UTC (3 years ago) by ad
Branch: ad-namecache
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with head.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Tue Jan 21 15:19:51 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Pull up following revision(s) (requested by simonb in ticket #630):

	sys/dev/ic/ahcisatavar.h: revision 1.24
	sys/dev/pci/ahcisata_pci.c: revision 1.57
	sys/dev/ic/ahcisata_core.c: revision 1.81

Add new AHCI_QUIRK_BADNCQ quick for controllers that have issues with
NCQ on (some) drives.  Enable this quirk for ATI (AMD) SB600/SB700
controllers.  Alternate fix for kern/54790 and kern/54855.
ok jdolecek@, tested on my SB700 chipset and tsutsui's SB600 chipset.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 18 11:26:11 2020 UTC (3 years ago) by simonb
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2
Branch point for: thorpej-futex
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Add new AHCI_QUIRK_BADNCQ quick for controllers that have issues with
NCQ on (some) drives.  Enable this quirk for ATI (AMD) SB600/SB700
controllers.  Alternate fix for kern/54790 and kern/54855.

ok jdolecek@, tested on my SB700 chipset and tsutsui's SB600 chipset.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 29 21:16:14 2019 UTC (3 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

Make AHCI_RFIS_SYNC macro (currently unused) compile.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:10 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

Sync with HEAD

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:26 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.18.2.2: +1 -2 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Synch with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 14 21:29:56 2019 UTC (4 years ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

nothing handles AHCI_QUIRK_BADPMPRESET quirk, remove and change all entries
using it (ATI SB600/SB700) to instead use AHCI_QUIRK_BADPMP

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:48 2018 UTC (4 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18.2.1: +4 -1 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 7 22:22:12 2018 UTC (4 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

add optional hook for intr establish when active port is attached, export
ahci_intr_port() in form suitable for interrupt hanlder, and probe for GHC
MRSM flag as courtesy for use by the intr hook

towards multi-vector MSI/MSI-X support

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:31 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18: +2 -4 lines
Diff to previous 1.18 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 24 19:38:00 2018 UTC (4 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

detach the controller itself on shutdown; adjust to not detach already
detached atabus/channel

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 22 20:13:47 2018 UTC (4 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.18: +1 -4 lines
Diff to previous 1.18 (colored)

Merge jdolecek-ncqfixes branch

- ata_xfer's are dynamicall allocated as needed using a pool, no longer
  limited to number of possible openings supported by controller; dump
  and recovery paths use dedicated pre-allocated storage
- moved callouts and condvars from ata_xfer to queue or channel, so that
  ata_xfer does not need special initialization
- slot allocation now done when xfer is being activated, uncoupled
  from memory allocation; active slots are no longer tracked by controller
  code
- channel and drive reset is done always via the atabus thread, and
  now executes with channel locked the whole time
- NCQ recovery moved to shared function, and run via the thread also
- added some workarounds for buggy error recovery AHCI emulation in QEMU
  and Parallels

designed to primarily fix kern/52614, but might also help with kern/47041
and kern/53183

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Thu Oct 11 20:57:51 2018 UTC (4 years, 3 months ago) by jdolecek
Branch: jdolecek-ncqfixes
Changes since 1.18: +1 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

refactor shared parts of the SATA error recovery into new function
ata_recovery_resume() and use for ahcisata/siisata/mvsata, also replace
per-controller hold/unhold with generic version

move the shared recovery code into separate file ata_recovery.c

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:02 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.13.2.2: +5 -1 lines
Diff to previous 1.13.2.2 (colored) next main 1.14 (colored)

update from HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 7 16:05:32 2017 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base
Branch point for: phil-wifi, pgoyette-compat, jdolecek-ncqfixes
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored)

Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)

Revision 1.17.6.3 / (download) - annotate - [select for diffs], Tue Aug 1 22:02:32 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.17.6.2: +2 -2 lines
Diff to previous 1.17.6.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

fix logic bug in processing of finished commands - mask of active
commands can change during the loop as c_intr() callback can queue
new commands, so the interrupt routine should only mark as finished
those which were actually active before the loop started; otherwise
the code marked as finished commands which were just started, and
being executed by HBA, leading to all sorts of data corruption

while here mark the active mask volatile, as it is modified from
interrupt context

this fixes for good the random crashes, short reads, and fatal command
errors which I've been tracing down for past couple weeks

thanks to Jonathan (jakllsch@) for testing, and a script to easily
triggered the condition, and led to this bug being finally found and squashed

Revision 1.17.6.2 / (download) - annotate - [select for diffs], Sat Jul 29 15:07:46 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.17.6.1: +2 -1 lines
Diff to previous 1.17.6.1 (colored) to branchpoint 1.17 (colored)

make compile without AHCI_DEBUG

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Wed Jul 19 20:21:42 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

update error handling:
- switch to ata_timeout()
- stop using ch_status/ch_error for passing state/error, stop setting
  ATACH_IRQ_WAIT in ch_flags; pass the state via the last parameter
  to c_intr() routine
- add NCQ recovery and KILL_REQUEUE
- only call atastart() in c_intr() if there was no error

ahcisata-specific tweaks:
- add some handling for PM in the error recovery using FBS register,
  according to spec it should be independant of actual FBSS feature; untested
  as my hw doesn't support PM

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:07 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 24 22:30:05 2015 UTC (7 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: jdolecek-ncq
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

Add AHCI_QUIRK_SKIP_RESET quirk to allow for skipping the drive reset
sequence in ahci_do_reset_drive.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:37 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.13.2.1: +12 -1 lines
Diff to previous 1.13.2.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.7.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:21 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.7.8.1: +12 -1 lines
Diff to previous 1.7.8.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:37 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.14: +12 -1 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head

Revision 1.4.22.1 / (download) - annotate - [select for diffs], Mon Mar 24 18:47:17 2014 UTC (8 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.4: +21 -11 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Merge needed changes from HEAD for cubie

Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 24 12:19:05 2014 UTC (8 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.15: +11 -1 lines
Diff to previous 1.15 (colored)

- Only enable AHCI mode if it is not already enabled.
- Add support for capturing initial CAP/CAP2/PI regs before reset (and
  restoring them afterwords)
- Add optional callbacks for channel_start / channel_stop.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 8 11:47:16 2013 UTC (9 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Allow the attachment to override ahci_ports.
Keep ACHI_PI cached in the softc.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:02 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.7.8.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:00 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.7: +7 -1 lines
Diff to previous 1.7 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 20 17:53:48 2012 UTC (10 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

sc_ahci_cap should be uint32_t

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 20 12:48:47 2012 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Fix typo, pointed out by Markus W Kilbinger

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 13 19:42:50 2012 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Give AHCI_QUIRK_BADPMPRESET its own bit. Pointed out by Chuck Silvers, thanks !

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 10 16:35:00 2012 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.10: +6 -1 lines
Diff to previous 1.10 (colored)

Work around some SATA PMP issues in some AHCI controllers by either
disabling PMP entirely, or special handling in the reset function.
Controller list from linux and FreeBSD.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 31 15:50:34 2012 UTC (10 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 26 20:49:48 2012 UTC (10 years, 6 months ago) by jakllsch
Branch: MAIN
Changes since 1.8: +0 -1 lines
Diff to previous 1.8 (colored)

Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 2 18:15:46 2012 UTC (10 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
  probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
  really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
  ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
  with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
  University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
  when SATA cable move was needed

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:12 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.5: +9 -6 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

sync with head

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:08 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.5: +9 -6 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:22 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.4.4.1: +9 -6 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 27 22:07:50 2010 UTC (12 years, 6 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.6: +8 -5 lines
Diff to previous 1.6 (colored)

Support detachment of ahcisata(4).
Use use 64-bit DMA tag (where available) for ahcisata(4) at jmide(4).
Beginnings of detach/resume support for jmide(4).
Sprinkle static.  Misc. little changes.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 20 18:50:48 2010 UTC (12 years, 6 months ago) by jakllsch
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Convert ahcisata(4) to C99 exact-width integer types.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:28 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.4: +1 -6 lines
Diff to previous 1.4 (colored)

sync with head

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:12 2009 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.4: +1 -6 lines
Diff to previous 1.4 (colored)

Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:39 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.1.20.5 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:50 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.20.4: +2 -2 lines
Diff to previous 1.1.20.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:16 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.1.14.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:37 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.1.14.1: +3 -2 lines
Diff to previous 1.1.14.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 18 20:46:36 2008 UTC (14 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, matt-nb5-mips64
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Split device_t and softc for ATA devices, as well as wd(4).  Other
cosmetic changes where appropriate.

Revision 1.1.26.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:40 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.1.26.1: +2 -1 lines
Diff to previous 1.1.26.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.1.20.4 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:33 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.20.3: +2 -1 lines
Diff to previous 1.1.20.3 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 11 08:23:48 2008 UTC (14 years, 11 months ago) by xtraeme
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Attach ahcisata(4) to any RAID controller that supports AHCI, and make it
pass the ATAC_CAP_RAID capability for them. ok'ed by bouyer@.

Revision 1.1.14.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:45 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

sync with HEAD

Revision 1.1.26.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:47:51 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

Sync with HEAD.

Revision 1.1.20.3 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:08 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.20.2: +6 -1 lines
Diff to previous 1.1.20.2 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.1.24.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:00:59 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 12 20:10:32 2007 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

Merge refactoring from jmcneill-pm.

Revision 1.1.20.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:34:14 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.20.1: +101 -0 lines
Diff to previous 1.1.20.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.1.18.2 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:23 2007 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.1.18.1: +101 -0 lines
Diff to previous 1.1.18.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.1.16.2 / (download) - annotate - [select for diffs], Fri Aug 31 20:09:24 2007 UTC (15 years, 5 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.1.16.1: +101 -0 lines
Diff to previous 1.1.16.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Pull up following revision(s) (requested by bouyer in ticket #678):
	distrib/sets/lists/man/mi: revision 1.1001
	doc/CHANGES: revision 1.853 via patch
	share/man/man4/Makefile: revision 1.428
	share/man/man4/jmide.4: revision 1.1
	sys/arch/amd64/conf/GENERIC: revision 1.143
	sys/arch/amd64/conf/INSTALL: revision 1.69
	sys/arch/i386/conf/GENERIC: revision 1.827
	sys/arch/i386/conf/INSTALL_LARGE: revision 1.2 via patch
	sys/arch/i386/conf/XEN2_DOM0: revision 1.26
	sys/conf/files: revision 1.844 via patch
	sys/dev/ic/ahcisata_core.c: revision 1.1 via patch
	sys/dev/ic/ahcisata_core.c: revision 1.3
	sys/dev/ic/ahcisatareg.h: revision 1.1
	sys/dev/ic/ahcisatavar.h: revision 1.1
	sys/dev/pci/ahcisata.c: delete
	sys/dev/pci/ahcisatareg.h: delete
	sys/dev/pci/ahcisata_pci.c: revision 1.1
	sys/dev/pci/files.pci: revision 1.287-1.288
	sys/dev/pci/jmide.c: revision 1.1-1.2
	sys/dev/pci/jmide_reg.h: revision 1.1
	sys/dev/pci/pcidevs: revision 1.878
Add JMicron Technology vendor ID, and their current PCIe SATA/PATA
controllers.

Split the ahcisata driver in pci front-end and bus-independant back-end.
add jmide(4), a driver for the JMicron Technology JMB36x PCIe to SATA II/PATA
controllers. These controllers can be found on add-on PCIe cards, or
on some motherboards to provide the PATA connectivity (e.g. some intel
ICH8-based motherboards).
Thanks to JMicron Technology for providing me documentation and
different sample boards for this work.

Move mapping of AHCI register so that jmide knows if it fails, and avoids
calling ahci_intr() (which would cause a panic).
Try to use the pciide function for SATA drives if attaching ahci fails (this
doesn't seems to work though, it may be BIOS dependant).
Thanks to Gary Duzan for testing multiple pacthes.

We're not ready to handle ATAPI yet so just claim there's no drive to the
upper layer. This should work around a NULL pointer dereference when
an ATAPI device is detected on a AHCI device.

Revision 1.1.12.1 / (download) - annotate - [select for diffs], Sat Aug 4 18:20:51 2007 UTC (15 years, 6 months ago) by he
Branch: jmcneill-pm
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Factor out the hardware initialization code in ahcisata_core.c,
and provide them to the pci frontend, which has now grown its own
softc and a power management handler.

There may be one too many re-initializations done on resume (witness
the multiple kernel messages from ahcisata), but at least this is
sufficient to get the Lenovo T60 to come out of resume with a
working disk controller and disk.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Wed Jul 11 20:05:39 2007 UTC (15 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.1.6.1: +101 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with head.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sat Jun 9 21:37:13 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.1.4.1: +101 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with head.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu May 17 13:41:25 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.1.2.1: +101 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.1.20.1, Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1: +0 -101 lines
FILE REMOVED

file ahcisatavar.h was added on branch yamt-lazymbuf on 2007-09-03 14:34:14 +0000

Revision 1.1.18.1, Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.1: +0 -101 lines
FILE REMOVED

file ahcisatavar.h was added on branch wrstuden-fixsa on 2007-09-03 07:04:23 +0000

Revision 1.1.16.1, Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by pavel
Branch: netbsd-4
Changes since 1.1: +0 -101 lines
FILE REMOVED

file ahcisatavar.h was added on branch netbsd-4 on 2007-08-31 20:09:24 +0000

Revision 1.1.6.1, Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.1: +0 -101 lines
FILE REMOVED

file ahcisatavar.h was added on branch mjf-ufs-trans on 2007-07-11 20:05:39 +0000

Revision 1.1.4.1, Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.1: +0 -101 lines
FILE REMOVED

file ahcisatavar.h was added on branch vmlocking on 2007-06-09 21:37:13 +0000

Revision 1.1.2.1, Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.1: +0 -101 lines
FILE REMOVED

file ahcisatavar.h was added on branch yamt-idlelwp on 2007-05-17 13:41:25 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 12 11:04:58 2007 UTC (15 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup
Branch point for: yamt-lazymbuf, yamt-idlelwp, wrstuden-fixsa, vmlocking, netbsd-4, mjf-ufs-trans, mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64

Split the ahcisata driver in pci front-end and bus-independant back-end.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>