Subject: port-sparc/2908: nonempty
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nsayer@kfu.com>
List: netbsd-bugs
Date: 10/29/1996 15:09:12
>Number:         2908
>Category:       port-sparc
>Synopsis:       Add support for Sparc Classic audio
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 29 15:20:01 1996
>Last-Modified:
>Originator:     Nick Sayer
>Organization:
just me
>Release:        1.2
>Environment:

Sparc Classic

System: NetBSD nova.3do.com 1.2 NetBSD 1.2 (NOVA) #9: Tue Oct 29 14:52:24 PST 1996 nsayer@nova.3do.com:/usr/src/sys/arch/sparc/compile/NOVA sparc


>Description:

Sometimes (especially on Microsparc and Microsparc-II machines),
an amd7930 audio is present hanging off an sbus slot rather than off
obio.

>How-To-Repeat:

The patch below only partially solves the problem. Some problem remains
with interrupt processing. I get these in the console when attempting to
use /dev/audio after applying the patch below:

stray interrupt ipl c pc=f8008a70 npc=f8008a74 psr=414000c4<S,PS>
stray interrupt ipl c pc=f8008a70 npc=f8008a74 psr=414010c4<EF,S,PS>
stray interrupt ipl c pc=f8008a70 npc=f8008a74 psr=414000c4<S,PS>
stray interrupt ipl c pc=f80b2e64 npc=f80b2e68 psr=414000c6<S,PS>
stray interrupt ipl c pc=f8008a70 npc=f8008a74 psr=414010c4<EF,S,PS>
stray interrupt ipl c pc=f8008a74 npc=f8008a78 psr=414000c5<S,PS>
stray interrupt ipl c pc=f8008a7c npc=f8008a80 psr=414010c4<EF,S,PS>
stray interrupt ipl c pc=f8008a6c npc=f8008a70 psr=414000c3<S,PS>
stray interrupt ipl c pc=f8008a70 npc=f8008a74 psr=414010c4<EF,S,PS>

>Fix:

Add this line:

audio0	at sbus0 slot ? offset ?		# sun4m

to a kernel config file after applying this patch:

*** files.sparc-        Tue Oct 29 15:04:47 1996
--- files.sparc Tue Oct 29 14:46:26 1996
***************
*** 19,28 ****
  attach vmes at mainbus
  file  arch/sparc/dev/obio.c           obio | vmel | vmes
  
- device audio
- attach audio at mainbus, obio
- file  arch/sparc/dev/amd7930.c                audio
- 
  device auxreg
  attach auxreg at mainbus, obio
  file  arch/sparc/sparc/auxreg.c
--- 19,24 ----
***************
*** 86,91 ****
--- 82,91 ----
  device ledma {}
  attach ledma at sbus
  file  arch/sparc/dev/dma.c            dma | ledma
+ 
+ device audio
+ attach audio at mainbus, obio, sbus
+ file  arch/sparc/dev/amd7930.c                audio
  
  device esp: scsi
  attach esp at sbus, dma, obio

>Audit-Trail:
>Unformatted: