freebsd-skq/sys/dev/ata
Søren Schmidt 80344be509 Fix the DMA problem that most severely hit on the DS3112a SATA chip
in connection with Marvell based SATA->PATA dongles.

The problem was caused by a combination of things working
together to make it hard to spot...

The ATA driver has always started the ATA command, then build
the SG list for DMA and then finally started the DMA engine.
While this is according to specs, it poses a potential
problem as some controllers apparently do not allow for unlimitted
time between starting the ATA command and starting the DMA engine.

At about the same time as ATAng was committed there were lots
of other changes applied, some of which was locking in parts
that causes the busdma load functions to take significantly
longer to load the SG list.

This pushed the time spent between starting the ATA command and
starting the DMA engine over the hill for some controllers
(especially the Silicon Image DS3112a) and caused what looked
like lost interrupts.

The solution is to get all the SG list work or rather all
busdma related stuff done before we even try to start anything.

This has the nice side effect of seperating busdma out the
way it should be, so the working of the ATA machinery is not
cluttered up with busdma droppings, making the code easier
to read and understand.
2003-10-21 19:20:37 +00:00
..
ata-all.c Put devices into sleep mode (ie spin down) on detach. 2003-10-12 12:37:11 +00:00
ata-all.h Fix the DMA problem that most severely hit on the DS3112a SATA chip 2003-10-21 19:20:37 +00:00
ata-card.c Include pccard/pccard_cis.h here too 2003-10-07 04:26:14 +00:00
ata-cbus.c Unify prototypes. 2003-08-25 09:01:49 +00:00
ata-chipset.c Fix the DMA problem that most severely hit on the DS3112a SATA chip 2003-10-21 19:20:37 +00:00
ata-commands.h This is a major rework of the ATA driver (ATAng) 2003-08-24 09:22:26 +00:00
ata-disk.c Change all SYSCTLS which are readonly and have a related TUNABLE 2003-10-21 18:28:36 +00:00
ata-disk.h This is a major rework of the ATA driver (ATAng) 2003-08-24 09:22:26 +00:00
ata-dma.c Fix the DMA problem that most severely hit on the DS3112a SATA chip 2003-10-21 19:20:37 +00:00
ata-isa.c Unify prototypes. 2003-08-25 09:01:49 +00:00
ata-lowlevel.c Fix the DMA problem that most severely hit on the DS3112a SATA chip 2003-10-21 19:20:37 +00:00
ata-pci.c Fix the DMA problem that most severely hit on the DS3112a SATA chip 2003-10-21 19:20:37 +00:00
ata-pci.h Add another ID for the SiI3112a SATA chip as used on the Adaptec 1210SA. 2003-09-08 13:55:05 +00:00
ata-queue.c If just gcc could make up its mind... 2003-10-20 14:28:37 +00:00
ata-raid.c Limit the size of the rebuild requests to be within safety. 2003-09-08 13:36:26 +00:00
ata-raid.h This is a major rework of the ATA driver (ATAng) 2003-08-24 09:22:26 +00:00
atapi-cam.c Enable DMA for ATAPI/CAM input/output operations. 2003-09-24 18:40:10 +00:00
atapi-cd.c No need to initialize bio_pblkno from bio_blkno, disksort uses bio_offset. 2003-10-18 17:24:51 +00:00
atapi-cd.h Fix inverted BURN_BRIDGES and GONE_IN_5 #ifdefs. 2003-09-22 17:58:40 +00:00
atapi-fd.c Unify prototypes. 2003-08-25 09:01:49 +00:00
atapi-fd.h This is a major rework of the ATA driver (ATAng) 2003-08-24 09:22:26 +00:00
atapi-tape.c Unify prototypes. 2003-08-25 09:01:49 +00:00
atapi-tape.h This is a major rework of the ATA driver (ATAng) 2003-08-24 09:22:26 +00:00