Date: Wed, 5 Apr 2000 08:10:03 -0700 (PDT) From: Samuel Tardieu <sam@inf.enst.fr> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/17228: Installation floppies hang up on Compaq Armada V300 laptop Message-ID: <200004051510.IAA23490@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/17228; it has been noted by GNATS.
From: Samuel Tardieu <sam@inf.enst.fr>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:
Subject: Re: i386/17228: Installation floppies hang up on Compaq Armada V300 laptop
Date: Wed, 5 Apr 2000 17:07:11 +0200
The following patch makes it work much better. It forces no-DMA-mode
when not explicitely allowed.
Index: ata-dma.c
===================================================================
RCS file: /usr/cvs/src/sys/dev/ata/ata-dma.c,v
retrieving revision 1.35
diff -u -r1.35 ata-dma.c
--- ata-dma.c 2000/03/05 16:52:24 1.35
+++ ata-dma.c 2000/04/05 14:35:02
@@ -70,6 +70,10 @@
if (!scp->bmaddr)
return;
+#ifndef ATA_ENABLE_ATAPI_DMA
+ return;
+#endif
+
/* if simplex controller, only allow DMA on primary channel */
if (scp->unit == 1) {
outb(scp->bmaddr + ATA_BMSTAT_PORT, inb(scp->bmaddr + ATA_BMSTAT_PORT) &
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004051510.IAA23490>
