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:
Marius Strobl 2012-01-27 21:52:59 +00:00
parent dbd618bf56
commit c7edae4bc2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230627
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;
}