NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc64/59787: Enabling DIAGNOSTIC for GENERIC on sparc64 (Ultra-45) causes SIR (Software Initiated Reset) at kernel init.



The following reply was made to PR port-sparc64/59787; it has been noted by GNATS.

From: Alexander Schreiber <als%thangorodrim.ch@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-sparc64/59787: Enabling DIAGNOSTIC for GENERIC on sparc64
 (Ultra-45) causes SIR (Software Initiated Reset) at kernel init.
Date: Thu, 27 Nov 2025 23:21:42 +0100

 Update: I salted the function entry/exit points of src/sys/dev/spkr_audio.c
 generously with device_printf() calls to see where things blow up and
 re-enabled the spkr device
 
 I was rewarded on the console with:
 
 [   1.0000000] usb3 at ehci0: USB revision 2.0
 [   1.0000000] auacer0 at pci3 dev 29 function 0: Acer Labs M5455 Audio controller
 [   1.0000000] auacer0: interrupting at ivec 785
 [   1.0000000] auacer0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
 [   1.0000000] auacer0: ac97: ext id 0x601<AC97_22,AMAP,VRA>
 [   1.0000000] audio0 at auacer0: playback, capture, full duplex, independent
 [   1.0000000] audio0: slinear_be:16 -> slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
 [   1.0000000] audio0: slinear_be:16 <- slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
 [   1.0000000] audio0: spkr_audio_probe enteraudio0: spkr_audio_probe error exit
 SIR
 
 ERROR: Software Initiated Reset has occurred.
 
 WARNING: sync callback did not work.
  
 
 
 The spkr_audio_probe function in src/sys/dev/spkr_audio.c was changed to:
 
 static int
 spkr_audio_probe(device_t parent, cfdata_t cf, void *aux)
 {
         struct audio_softc *asc = device_private(parent);
 
         device_printf(parent, "spkr_audio_probe enter");
         if ((asc->sc_props & AUDIO_PROP_PLAYBACK)) {
                 device_printf(parent, "spkr_audio_probe error exit");
                 return 1;
         }
         device_printf(parent, "spkr_audio_probe OK exit");
 
         return 0;
 }
 
 Kind regards,
             Alex.
 -- 
 "Opportunity is missed by most people because it is dressed in overalls and
  looks like work."                                      -- Thomas A. Edison
 



Home | Main Index | Thread Index | Old Index