Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/ninjaata32.c
RevisionDateAuthorComments
 1.20  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.19  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.18  31-Jul-2012  bouyer branches: 1.18.2; 1.18.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.17  26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.16  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.15  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.14  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.13  21-Feb-2011  itohy branches: 1.13.4;
Cleanup my copyright notice.
 1.12  13-Nov-2010  uebayasi branches: 1.12.2; 1.12.4;
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants. These are provided by sys/param.h now.
 1.11  14-Mar-2009  dsl branches: 1.11.4;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.10  18-Mar-2008  cube branches: 1.10.4; 1.10.12; 1.10.18;
Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.9  19-Oct-2007  ad branches: 1.9.12; 1.9.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.8  09-Jul-2007  ad branches: 1.8.6; 1.8.8; 1.8.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.7  04-Mar-2007  christos branches: 1.7.2; 1.7.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.6  19-Dec-2006  itohy branches: 1.6.2; 1.6.4;
Fix bus_dmamap_sync() usage.
This should not be a problem since BUS_DMASYNC_POSTWRITE is probably a no-op.
 1.5  16-Nov-2006  christos branches: 1.5.2;
__unused removal on arguments; approved by core.
 1.4  12-Oct-2006  dogcow more __unused; also, ew, K&R decls.
 1.3  01-Oct-2006  itohy Change Id to NetBSD
 1.2  01-Oct-2006  itohy Use ATA timing, instead of busmaster wait, for adding waits.
Use default wait value 0x01.
 1.1  07-Sep-2006  itohy branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Workbit NinjaATA-32 busmastering PIO IDE controller driver (njata)

This driver supports NinjaATA-32Bi and NPATA-32 chips,
which are used for CardBus ATA interface cards and
CardBus CompactFlash adapters.
 1.1.8.3  21-Dec-2006  yamt sync with head.
 1.1.8.2  10-Dec-2006  yamt sync with head.
 1.1.8.1  22-Oct-2006  yamt sync with head
 1.1.6.2  14-Sep-2006  yamt sync with head.
 1.1.6.1  07-Sep-2006  yamt file ninjaata32.c was added on branch yamt-pdpolicy on 2006-09-14 12:31:30 +0000
 1.1.4.2  09-Sep-2006  rpaulo sync with head
 1.1.4.1  07-Sep-2006  rpaulo file ninjaata32.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:50:02 +0000
 1.1.2.2  12-Jan-2007  ad Sync with head.
 1.1.2.1  18-Nov-2006  ad Sync with head.
 1.5.2.1  08-Mar-2007  bouyer Pull up following revision(s) (requested by itohy in ticket #493):
sys/dev/ic/ninjaata32.c: revision 1.6
sys/dev/ic/ninjaata32reg.h: revision 1.3
share/man/man4/njata.4: revision 1.5
Fix bus_dmamap_sync() usage.
Fix a typo in comment.
Fix release in man page.
 1.6.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.6.2.5  24-Mar-2008  yamt sync with head.
 1.6.2.4  27-Oct-2007  yamt sync with head.
 1.6.2.3  03-Sep-2007  yamt sync with head.
 1.6.2.2  30-Dec-2006  yamt sync with head.
 1.6.2.1  19-Dec-2006  yamt file ninjaata32.c was added on branch yamt-lazymbuf on 2006-12-30 20:48:03 +0000
 1.7.4.1  11-Jul-2007  mjf Sync with head.
 1.7.2.2  23-Oct-2007  ad Sync with head.
 1.7.2.1  05-Apr-2007  ad Compile fixes.
 1.8.12.1  25-Oct-2007  bouyer Sync with HEAD.
 1.8.8.2  23-Mar-2008  matt sync with HEAD
 1.8.8.1  06-Nov-2007  matt sync with HEAD
 1.8.6.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.9.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.9.12.1  24-Mar-2008  keiichi sync with head.
 1.10.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.10.12.1  28-Apr-2009  skrll Sync with HEAD.
 1.10.4.1  04-May-2009  yamt sync with head.
 1.11.4.1  05-Mar-2011  rmind sync with head
 1.12.4.1  05-Mar-2011  bouyer Sync with HEAD
 1.12.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.13.4.1  30-Oct-2012  yamt sync with head
 1.18.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.18.28.1  24-Apr-2017  jdolecek adjust to interface changes - ata_queue is now dynamically allocated
 1.18.2.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed