History log of /src/sys/arch/amiga/dev/efa.c |
Revision | | Date | Author | Comments |
1.17 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h> include.
|
1.16 |
| 06-May-2023 |
andvar | s/regster/register/ in comments and error messages.
|
1.15 |
| 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.14 |
| 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.13 |
| 04-Sep-2017 |
phx | Remove double device pointers. The pointer is already part of sc_wdcdev.
|
1.12 |
| 03-Jan-2014 |
rkujawa | branches: 1.12.18; Rework handling of Commodore Gayle chip. Avoid ugly struct casts, introduce proper bus_space accesses and some abstraction layer. All drivers that utilised Gayle also had to be refactored.
I tried not to break anything more, but this clearly needs more testing...
|
1.11 |
| 31-Jul-2012 |
bouyer | branches: 1.11.2; 1.11.4; 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.10 |
| 26-Jul-2012 |
jakllsch | Revert, with intention of restoring in a less invasive way, the SATA Port Multiplier code.
ok christos@
|
1.9 |
| 24-Jul-2012 |
jakllsch | Revert dsl@'s changes of Sun, 15 Jul 2012 10:55:35 +0000 and Sun, 15 Jul 2012 10:56:50 +0000, excepting the kernel version bump. First step in reverting regressions to ata(4) subsystem during the addition of port multiplier support.
|
1.8 |
| 15-Jul-2012 |
dsl | Some namespace protection (and add greppablity). Prefix the DRIVE_ and DRIVET_ constants from atavar.h with ATA_. Don't use an enum for drive_type - you don't know how big it will be. Move driver_type to avoid implicit structure padding (esp on arm). This change is purely lexical and mechanical.
Update to 6.99.9 - this wasn't done when the SATA PMP changes were made - I'm sure they warranted a bump.
|
1.7 |
| 09-Jul-2012 |
rkujawa | PR port-amiga/46672
Removed surpluss semicolon after if().
|
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 |
| 05-Nov-2011 |
rkujawa | Simplify bus space mapping.
|
1.4 |
| 30-Oct-2011 |
rkujawa | branches: 1.4.2; Improve probe procedure in efa(4). Update man apge to reflect this.
|
1.3 |
| 29-Oct-2011 |
rkujawa | Allow 32-bit transfers for drives which support it. Add missing bus_space methods needed for such transfers.
|
1.2 |
| 29-Oct-2011 |
rkujawa | Fix style (pointed out by phx).
|
1.1 |
| 27-Oct-2011 |
rkujawa | Add driver for ELBOX FastATA 1200 Mk-III/Mk-IV (and the man page).
|
1.4.2.3 |
| 22-May-2014 |
yamt | 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")
|
1.4.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.4.2.1 |
| 10-Nov-2011 |
yamt | sync with head
|
1.11.4.1 |
| 18-May-2014 |
rmind | sync with head
|
1.11.2.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.11.2.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.12.18.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.12.18.1 |
| 24-Apr-2017 |
jdolecek | use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
|