From owner-freebsd-bugs Sat Jul 15 11:30:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 525B937B5B5 for ; Sat, 15 Jul 2000 11:30:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA70783; Sat, 15 Jul 2000 11:30:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 15 Jul 2000 11:30:05 -0700 (PDT) Message-Id: <200007151830.LAA70783@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Richard Seaman, Jr." Subject: Re: kern/19945: panic: nexus_setup_intr: NULL irq resource with GUS PnP Reply-To: "Richard Seaman, Jr." Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/19945; it has been noted by GNATS. From: "Richard Seaman, Jr." To: Louis Mamakos , tanimura@FreeBSD.ORG Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: kern/19945: panic: nexus_setup_intr: NULL irq resource with GUS PnP Date: Sat, 15 Jul 2000 13:26:06 -0500 On Sat, Jul 15, 2000 at 01:36:28AM -0400, Louis Mamakos wrote: > After upgrading to a recent 5.0-current, system would panic upon > boot with > > panic: nexus_setup_intr: NULL irq resource! I discovered the same thing here with my ancient Gus Pnp Pro. Looks like the culprit is the newmidi code, recently committed. I can boot with the following patch and play mp3's. Don't know if midi works or not. BTW, sound playing doesn't work properly in all cases for me, in any case, without hacking the pcm/channel.c code a little. The problem is that DMA interrupts don't get generated. I'd be curious to know if you get interrupts when playing sounds (assuming the patch fixes things for you). You can test this by typing "vmstat -i" before and after playing something. Your card should show lots of interrupts (ie. at least hundreds according to Cameron Grant). I don't get any, either before or after the newmidi commits. Note, if your card has 0 interrupts, it won't even print with vmstat. Index: gusc.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/isa/gusc.c,v retrieving revision 1.7 diff -u -r1.7 gusc.c --- gusc.c 2000/07/11 11:49:30 1.7 +++ gusc.c 2000/07/15 18:02:33 @@ -324,7 +324,8 @@ return (ENXIO); } - bus_setup_intr(dev, scp->irq, INTR_TYPE_TTY, gusc_intr, scp, &ih); + if (scp->irq != NULL) + bus_setup_intr(dev, scp->irq, INTR_TYPE_TTY, gusc_intr, scp, &ih); bus_generic_attach(dev); return (0); -- Richard Seaman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 262-367-5450 Nashotah WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message