mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +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 New Issue
Block a user