80344be509
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. |
||
---|---|---|
.. | ||
ata-all.c | ||
ata-all.h | ||
ata-card.c | ||
ata-cbus.c | ||
ata-chipset.c | ||
ata-commands.h | ||
ata-disk.c | ||
ata-disk.h | ||
ata-dma.c | ||
ata-isa.c | ||
ata-lowlevel.c | ||
ata-pci.c | ||
ata-pci.h | ||
ata-queue.c | ||
ata-raid.c | ||
ata-raid.h | ||
atapi-cam.c | ||
atapi-cd.c | ||
atapi-cd.h | ||
atapi-fd.c | ||
atapi-fd.h | ||
atapi-tape.c | ||
atapi-tape.h |