From fenner@fenestro.attlabs.att.com  Thu Sep 28 10:29:35 2000
Return-Path: <fenner@fenestro.attlabs.att.com>
Received: from fenestro.attlabs.att.com (d25.luna.sunset.net [209.209.28.25])
	by hub.freebsd.org (Postfix) with ESMTP id 53A8C37B424
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Sep 2000 10:29:28 -0700 (PDT)
Received: (from fenner@localhost)
	by fenestro.attlabs.att.com (8.11.0/8.9.3) id e8SHTQ900462;
	Thu, 28 Sep 2000 10:29:26 -0700 (PDT)
	(envelope-from fenner)
Message-Id: <200009281729.e8SHTQ900462@fenestro.attlabs.att.com>
Date: Thu, 28 Sep 2000 10:29:26 -0700 (PDT)
From: Bill Fenner <fenner@research.att.com>
Sender: fenner@fenestro.attlabs.att.com
Reply-To: fenner@research.att.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: trap in gusc_attach
X-Send-Pr-Version: 3.2

>Number:         21624
>Category:       i386
>Synopsis:       trap in gusc_attach
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 28 10:30:01 PDT 2000
>Closed-Date:    Sat Jan 5 20:33:34 PST 2002
>Last-Modified:  Sat Jan 05 20:33:44 PST 2002
>Originator:     Bill Fenner
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
AT&T Labs - Research
>Environment:

	

4.1.1-STABLE, cvsup'd on September 26th.

Ancient Gravis Ultrasound Plug&Play sound card.

>Description:

	

gusc_attach() causes panic by calling device_get_parent(0)

Boot and trap messages:

unknown: <Synth & Codec> can't assign resources
gusc0: <Gravis UltraSound Plug & Play OPL> at port 0x388-0x389 irq 5 on isa0
gusc1: <Gravis UltraSound Plug & Play MIDI> at port 0x330-0x331 irq 10 on isa0

Fatal trap 12
fault virtual address = 0x8		( == 0->parent )
instruction pointer = 0x8:0xc01913d6    (in device_get_parent())
stack pointer = 0x10:0xc0458ae0
frame pointer = 0x10:0xc0458ae0
...

A hand-copied ddb trace:

device_get_parent(0)
find_masterdev(c09e4400) +0x4c
alloc_resouce(c09e4400) +0x286
gusc_attach + 0x26

I'm a little confused, since I can't actually find a call to
device_get_parent() in find_masterdev().

>How-To-Repeat:

	
Boot 4.1.1-STABLE with my Gravis Ultrasound Plug & Play in the machine.

>Fix:

	
Disable "device gusc" and "device pcm" from kernel.

(Note that this card never successfully probed with 4.0:

unknown: <Synth & Codec> can't assign resources
adv1: Invalid baseport of 0x168 specified. Neerest valid baseport is 0x190.  Fai
ling probe.
unknown0: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq 
11 drq 0 on isa0
adv1: Invalid baseport of 0x201 specified. Neerest valid baseport is 0x210.  Fai
ling probe.
unknown1: <Game Port> at port 0x201 on isa0
adv1: Invalid baseport of 0x388 specified. Neerest valid baseport is 0x330.  Fai
ling probe.
unknown2: <SB Digital Audio> at port 0x388-0x389 irq 5 on isa0
unknown: <GM Music> can't assign resources

but I'm not sure that probing and then trapping is better =)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sat Nov 17 06:10:13 PST 2001 
State-Changed-Why:  

Does this problem still exist? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21624 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jan 5 20:33:34 PST 2002 
State-Changed-Why:  
Feedback timeout 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21624 
>Unformatted:
