From owner-freebsd-current Tue Apr 17 15:12:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailhub.state.me.us (mailhub.state.me.us [141.114.122.227]) by hub.freebsd.org (Postfix) with ESMTP id 26B1137B43C for ; Tue, 17 Apr 2001 15:12:17 -0700 (PDT) (envelope-from darren@katahdin.bmv.state.me.us) Received: from katahdin.bmv.state.me.us by mailhub.state.me.us with ESMTP; Tue, 17 Apr 2001 18:09:55 -0400 Received: from localhost (darren@localhost) by katahdin.bmv.state.me.us (AIX4.2/UCB 8.7/8.7) with ESMTP id SAA32512; Tue, 17 Apr 2001 18:11:40 -0400 (EDT) Date: Tue, 17 Apr 2001 18:11:40 -0400 (EDT) From: Darren Henderson To: Andrew Gallatin Cc: current@FreeBSD.ORG, jlemon@flugsvamp.com Subject: Re: miibus/fxp intel etherexpress broken In-Reply-To: <15063.18227.260693.786852@grasshopper.cs.duke.edu> Message-Id: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks, the patch appears to work fine. Sorry for the delay in testing it, long weekend here. -Darren On Fri, 13 Apr 2001, Andrew Gallatin wrote: > > Darren Henderson writes: > > > > I had a functional install of -current which was created back on Jan 11th of > > this year. > > > > I cvsup'd yesterday (4/12. I had also tried this on 4/4) fixxed what I > > needed too from UPDATING and RELNOTES, built and installed world and a new > > kernel. > > > > fxp now fails. > > > > ata1: at 0x170 irq 15 on atapci0 > <...> > > fxp0: port 0x5400-0x541f mem 0x60000000-0x600fffff,0x60100000-0x60100fff irq 15 at device 11.0 on pci0 > > fxp0: could not map interrupt > > device_probe_and_attach: fxp0 attach returned 6 > > isa0: unexpected small tag 14 > > > This has nothing to do with fxp. The problem is that irq15 is shared > between ata1 and fxp0 & the ata driver doesn't want to share > interrupts because some older boards will somehow barf when > sharing irqs between ata and other devices. > > Try this patch (I haven't tested it myself) > > Index: dev/ata/ata-pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.c,v > retrieving revision 1.3 > diff -u -r1.3 ata-pci.c > --- dev/ata/ata-pci.c 2001/03/19 13:31:58 1.3 > +++ dev/ata/ata-pci.c 2001/04/13 18:32:21 > @@ -508,7 +508,7 @@ > > return BUS_ALLOC_RESOURCE(device_get_parent(dev), child, > SYS_RES_IRQ, rid, > - irq, irq, 1, flags & ~RF_SHAREABLE); > + irq, irq, 1, flags); > #endif > } > else { > > > Drew > ------------------------------------------------------------------------------ > Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin > Duke University Email: gallatin@cs.duke.edu > Department of Computer Science Phone: (919) 660-6590 > ________________________________________________________________________ Darren Henderson darren@bmv.state.me.us darren.henderson@state.me.us To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message