mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Using ATA_CAM along with ATAPI DMA causes data corruption with ALI_NEW
and CMD controllers for reasons unknown so disable it. PR: 164226
This commit is contained in:
parent
dbd618bf56
commit
c7edae4bc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230627
|
@ -213,6 +213,10 @@ ata_ali_ch_attach(device_t dev)
|
|||
if (ch->dma.max_iosize > 256 * 512)
|
||||
ch->dma.max_iosize = 256 * 512;
|
||||
}
|
||||
#ifdef ATA_CAM
|
||||
if (ctlr->chip->cfg2 & ALI_NEW)
|
||||
ch->flags |= ATA_NO_ATAPI_DMA;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -240,6 +240,10 @@ ata_cmd_ch_attach(device_t dev)
|
|||
if (ctlr->chip->cfg2 & SII_INTR)
|
||||
ch->hw.status = ata_cmd_status;
|
||||
|
||||
#ifdef ATA_CAM
|
||||
ch->flags |= ATA_NO_ATAPI_DMA;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue