summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-09-11 22:09:16 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-09-11 22:09:16 +0000
commit8b14990639479c66cee0501932e741378332a085 (patch)
treee79d92266b0f3040333f8b97dfc2a1805852bf93 /sys/powerpc
parent4839bf82b72693267be4e61cff8bc0d4a61d03bd (diff)
downloadFreeBSD-src-8b14990639479c66cee0501932e741378332a085.zip
FreeBSD-src-8b14990639479c66cee0501932e741378332a085.tar.gz
ATAPI DMA does not seem to work completely reliably on Shasta controllers,
especially in conjunction with ATA_CAM, so disable it for now.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powermac/ata_kauai.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/powerpc/powermac/ata_kauai.c b/sys/powerpc/powermac/ata_kauai.c
index fd45061..3ad2a48 100644
--- a/sys/powerpc/powermac/ata_kauai.c
+++ b/sys/powerpc/powermac/ata_kauai.c
@@ -217,8 +217,10 @@ ata_kauai_probe(device_t dev)
ch = &sc->sc_ch.sc_ch;
compatstring = ofw_bus_get_compat(dev);
- if (compatstring != NULL && strcmp(compatstring,"shasta-ata") == 0)
+ if (compatstring != NULL && strcmp(compatstring,"shasta-ata") == 0) {
+ ch->flags |= ATA_NO_ATAPI_DMA;
sc->shasta = 1;
+ }
/* Pre-K2 controllers apparently need this hack */
if (!sc->shasta &&
OpenPOWER on IntegriCloud