Hi, After this commit, audio playback causes kernel panic. The following is kernel panic message from LOCKDEBUG kernel (manually rewritten).
Mutex error: mutex_vector_exit,717: exiting unheld spin mutex lock address : 0xfffffe810fc11010 type: spin ininialized : 0xffffffff80733860 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 current cpu : 0 last held: 2 current lwp : 0xfffffe821eae1000 last held: 000000000000000000 last locked : 0xffffffff8072440b unlocked*: 0xffffffff808ca55d owner field : 0x0000000000000700 wait/spin: 0/1 panic: LOCKDEBUG: Mutex error: mutex_vector_exit,717: exiting unheld spin mutex fatal breakpoint trap in supervisor mode trap type 1 code 0 rip ffffffff80215365 cs 8 rflags 246 cr2 7e01df80e010 ilevel 8 rsp fffffe8110371c40 curlwp 0xfffffe821eae1000 pid 41.2 lowest kstack 0xfffffe811036f2c0 Stopped in pid 41.2 (pulseaudio) at netbsd:breakpoint:0x5: leave db{0}> From: "Nathanial Sloss" <n...@netbsd.org>, Date: Fri, 24 Feb 2017 09:49:49 +0000 > Module Name: src > Committed By: nat > Date: Fri Feb 24 09:49:49 UTC 2017 > > Modified Files: > src/sys/dev: audio.c > > Log Message: > Simplify locking. Hold intr lock only when dealing with sc_pr (mix ring) > or virtual channel 0 (hardware). > > > To generate a diff of this commit: > cvs rdiff -u -r1.309 -r1.310 src/sys/dev/audio.c > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files. > -- Ryo ONODERA // ryo...@yk.rim.or.jp PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3