From owner-freebsd-current Sun Dec 5 12:51: 4 1999 Delivered-To: freebsd-current@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 5C26315452 for ; Sun, 5 Dec 1999 12:50:58 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id A84221CC7; Mon, 6 Dec 1999 04:50:57 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: "Richard S. Straka" Cc: current@FreeBSD.ORG Subject: Re: ide dma support not enabled In-Reply-To: Message from "Richard S. Straka" of "Sat, 04 Dec 1999 10:27:28 MST." <38494F00.84C5E0D@home.com> Date: Mon, 06 Dec 1999 04:50:57 +0800 From: Peter Wemm Message-Id: <19991205205057.A84221CC7@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Richard S. Straka" wrote: > Bruce Evans wrote: > > > On Fri, 3 Dec 1999, Richard S. Straka wrote: > > > > > A kernel built from current source which was cvsup'ed today at > > > approximately 10:00 pm MST no longer enables DMA support on my > > > IDE drives. A previous kernel from 27 Nov had no problems > > > recognizing and enabling IDE DMA support. > > > > This was broken in rev.1.132 of sys/pci.pci.c. > > > > Quick fix (ifdef away rev.1.132): > > > > diff -c2 pci.c~ pci.c > > *** pci.c~ Sat Dec 4 20:08:44 1999 > > --- pci.c Sat Dec 4 22:28:37 1999 > > *************** > > *** 879,884 **** > > --- 879,888 ---- > > if (name) { > > device_set_desc_copy(dev, name); > > + #ifdef WANT_BROKEN_IDE_PCI > > /* Allow newbus drivers to match "better" */ > > error = -1000; > > + #else > > + error = 0; > > + #endif > > } > > } > > > > Bruce > > > Bruce, > > Works like a champ. IDE DMA is back. > > Thanks, When you next cvsup, please try it again without this patch. It should work now. The problem was that the 'chip*' driver was probing with a higher priority than the ide driver. I'd also suggest that you look into trying out the ata driver. Something like this.. (comment out the wdc and wd devices) controller ata0 device atadisk0 # ATA disk drives device atapicd0 # ATAPI CDROM drives #device atapifd0 # ATAPI floppy drives #device atapist0 # ATAPI tape drives options ATA_STATIC_ID #Static dev number like old `wd' driver #options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices The new driver is expected to become the default soon and the old one will probably go away. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message