summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2003-10-21 19:20:37 +0000
committersos <sos@FreeBSD.org>2003-10-21 19:20:37 +0000
commit08d97161dce6bd160ed75bf74fd484507c0db35e (patch)
treeb039883cbfbf7458478e3754ae48fad004b0335b /lib/libc
parent3c2f2b8b316bd2ef360e93d87d8d6b466989edbe (diff)
downloadFreeBSD-src-08d97161dce6bd160ed75bf74fd484507c0db35e.zip
FreeBSD-src-08d97161dce6bd160ed75bf74fd484507c0db35e.tar.gz
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.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud