From owner-freebsd-current Mon May 3 1:34:34 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 0005C14E35; Mon, 3 May 1999 01:34:31 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA66697; Mon, 3 May 1999 09:34:48 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 3 May 1999 09:34:48 +0100 (BST) From: Doug Rabson To: Stefan Bethke Cc: freebsd-current@freebsd.org, sos@freebsd.org Subject: Re: ata and IRQ sharing (was: panic in nexus_setup_intr+0x13 with new ata driver) In-Reply-To: <15018945.3134674456@monster.transit-a.hanse.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 2 May 1999, Stefan Bethke wrote: > --On Son, 2. Mai 1999 19:32 Uhr +0200 Stefan Bethke > wrote: > > > I'm currently trying to get a Promise Ultra/33 to work with Sørens new ata > > drivers. > > I've delved into the code a bit more. The panic results from > ata_pciattach() not checking whether an IRQ resource could be allocated. > > Ths seems to stem from the fact that the IRQ is already taken by an ed PCI > card. I've added RF_SHAREABLE to the bus_alloc_resource() flags, and was > able to bring up the kernel fine. However, ed0 reported constant device > timeouts, and accessing wd0 resulted in an endless wait for an interrupt. > > Removing the ed card makes the Promise controller work. I'm getting about > 7MB/s from an IBM DTTA 350840, which should be normal. > > The board I'm currently trying this on is an Asus SP3, having the > mis-feature of only having a single INTA for all three PCI slots (IRQ 5 in > my case). > > Now, PCI does support interrupt sharing, but in this case it might be > broken: > - in the chipset (but it worked with both an ed and ncr card installed) > - in the newbus stuff > - in the Promise controller > - somewhere in promise_intr > > Would someone care to shed some light on this? > > I will try to do some tests on an Asus SP3G, which does have seperate INTAs > per PCI slot. Are you saying that the ISA driver for the ed card is sharing an interrupt with the pci IDE card? -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message