Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jul 2000 11:30:05 -0700 (PDT)
From:      "Richard Seaman, Jr." <dick@tar.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/19945: panic: nexus_setup_intr: NULL irq resource with GUS PnP
Message-ID:  <200007151830.LAA70783@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/19945; it has been noted by GNATS.

From: "Richard Seaman, Jr." <dick@tar.com>
To: Louis Mamakos <louie@TransSys.COM>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007151830.LAA70783>