History log of /src/sys/arch/amiga/dev/wdc_buddha.c |
Revision | | Date | Author | Comments |
1.11 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h> include.
|
1.10 |
| 20-Oct-2017 |
jdolecek | move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init() and ata_channel_destroy() respectively, to make attachment code simpler, and to make it easier to spot special queue manipulation like cmdide(4)
on topic of PR kern/52606
|
1.9 |
| 07-Oct-2017 |
jdolecek | 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)
|
1.8 |
| 31-Jul-2012 |
bouyer | branches: 1.8.2; 1.8.28; 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.
|
1.7 |
| 26-Jul-2012 |
jakllsch | Revert, with intention of restoring in a less invasive way, the SATA Port Multiplier code.
ok christos@
|
1.6 |
| 02-Jul-2012 |
bouyer | 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
|
1.5 |
| 19-Jul-2011 |
dyoung | branches: 1.5.2; Change <machine/bus.h> to <sys/bus.h> throughout.
|
1.4 |
| 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.3 |
| 18-Mar-2008 |
cube | branches: 1.3.2; 1.3.4; Split device_t and softc for ATA devices, as well as wd(4). Other cosmetic changes where appropriate.
|
1.2 |
| 21-Aug-2007 |
is | branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.12; 1.2.26; 1.2.30; whitespace cleanup
|
1.1 |
| 20-Aug-2007 |
is | wdc frontent for the buddha and catweazle Z2 hardware. From an old prototype by me which was never committed due to lack of testers, adopted to 4.99 and fixed by Frank Wille.
|
1.2.30.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.2.30.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.2.26.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.2.12.2 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.2.12.1 |
| 21-Aug-2007 |
ad | file wdc_buddha.c was added on branch vmlocking on 2007-10-09 16:37:14 +0000
|
1.2.8.2 |
| 03-Sep-2007 |
jmcneill | Sync with HEAD.
|
1.2.8.1 |
| 21-Aug-2007 |
jmcneill | file wdc_buddha.c was added on branch jmcneill-pm on 2007-09-03 16:47:13 +0000
|
1.2.6.3 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.2.6.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.2.6.1 |
| 21-Aug-2007 |
yamt | file wdc_buddha.c was added on branch yamt-lazymbuf on 2007-09-03 14:22:58 +0000
|
1.2.4.2 |
| 03-Sep-2007 |
skrll | Sync with HEAD.
|
1.2.4.1 |
| 21-Aug-2007 |
skrll | file wdc_buddha.c was added on branch nick-csl-alignment on 2007-09-03 10:18:23 +0000
|
1.2.2.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.3.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.3.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.5.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.8.28.2 |
| 27-Sep-2017 |
jdolecek | change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't touch anything else
factor out the probe-only struct ata_channel initialization to wdcprobe(), to reduce duplication of logic in individual drivers, and to actually work now that more init is needed beyond the memset()
|
1.8.28.1 |
| 24-Apr-2017 |
jdolecek | use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
|
1.8.2.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|