Date: Wed, 8 Jul 2009 22:44:29 +0800 From: Ariff Abdullah <ariff@FreeBSD.org> To: Gonzalo Nemmi <gnemmi@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: LOR on kldunload snd_hda Message-ID: <20090708224429.7d2bb3c0.ariff@FreeBSD.org> In-Reply-To: <200907072214.01645.gnemmi@gmail.com> References: <200907072214.01645.gnemmi@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Wed__8_Jul_2009_22_44_29_+0800_NvjoZL=1L440aOZL Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 7 Jul 2009 22:14:01 -0300 Gonzalo Nemmi <gnemmi@gmail.com> wrote: > log in > kldload snd_hda > cat /dev/sndstat >=20 > FreeBSD Audio Driver (newpcm: 32 bit 20090615000/i386) > Installed devices: > pcm0: <HDA Sigmatel STAC9228X PCM #0 Analog> at cad 0 nid 1 on hdac0 > kld snd_hda > [MPSAFE] (1p:1v/1r:1v channels duplex default) >=20 > mixer > Mixer vol is currently set to 75:75 > Mixer pcm is currently set to 75:75 > Mixer speaker is currently set to 75:75 > Mixer mic is currently set to 0:0 > Mixer rec is currently set to 0:0 >=20 > "insert cd" >=20 > cdcontrol -f /dev/acd0 play 1 >=20 > "no sound at all" >=20 Hardware vendors nowadays tend to ignore analog connection between cd drive and sound card. Obviously, you don't have "cd" mixer . cdcontrol Instead, try dd if=3D/dev/acd0t01 of=3D/dev/dspcd bs=3D2352 . Or use other proper multimedia player with digital audio extraction support. > cdcontrol eject > kldunload snd_hda >=20 > Jul 7 21:44:15 gargoyle login: ROOT LOGIN (root) ON ttyv0 > Jul 7 21:54:27 gargoyle kernel: hdac0: <Intel 82801H High > Definition Audio Controller> mem 0xf6dfc000-0xf6dfffff irq 21 at > device 27.0 on pci0 > Jul 7 21:54:27 gargoyle kernel: hdac0: HDA Driver Revision:=20 > 20090624_0136 > Jul 7 21:54:27 gargoyle kernel: hdac0: [ITHREAD] > Jul 7 21:54:27 gargoyle kernel: hdac0: HDA Codec #0: Sigmatel > STAC9228X Jul 7 21:54:27 gargoyle kernel: pcm0: <HDA Sigmatel > STAC9228X PCM #0 Analog> at cad 0 nid 1 on hdac0 > Jul 7 22:03:27 gargoyle kernel: lock order reversal: > Jul 7 22:03:27 gargoyle kernel: 1st 0xc0da8cdc kernel linker > (kernel linker) @ /usr/src/sys/kern/kern_linker.c:1079 > Jul 7 22:03:27 gargoyle kernel: 2nd 0xc0daa4e4 sysctl lock (sysctl=20 > lock) @ /usr/src/sys/kern/kern_sysctl.c:255 This probably has nothing or little to do with snd_hda. There are other kernel modules that might trigger this kind of LOR during detach due to freeing sysctl context. > Jul 7 22:03:27 gargoyle kernel: KDB: stack backtrace: > Jul 7 22:03:27 gargoyle kernel:=20 > db_trace_self_wrapper(c0c5b564,e6df7ac0,c08b5b35,c08a68db,c0c5e3f9, > ...) at db_trace_self_wrapper+0x26 > Jul 7 22:03:27 gargoyle kernel:=20 > kdb_backtrace(c08a68db,c0c5e3f9,c452cae8,c452ad40,e6df7b1c,...) at=20 > kdb_backtrace+0x29 > Jul 7 22:03:27 gargoyle kernel:=20 > _witness_debugger(c0c5e3f9,c0daa4e4,c0c58fbb,c452ad40,c0c58ec2,...) > at _witness_debugger+0x25 > Jul 7 22:03:27 gargoyle kernel:=20 > witness_checkorder(c0daa4e4,9,c0c58ec2,ff,0,...) at=20 > witness_checkorder+0x839 > Jul 7 22:03:27 gargoyle kernel: > _sx_xlock(c0daa4e4,0,c0c58ec2,ff,0,...) at _sx_xlock+0x85 > Jul 7 22:03:27 gargoyle kernel:=20 > sysctl_ctx_free(c4d7379c,0,c4e1c712,4a1,c4ca9480,...) at=20 > sysctl_ctx_free+0x30 > Jul 7 22:03:27 gargoyle kernel:=20 > pcm_unregister(c488f800,c4da3860,c0d3b6c8,a3c,c4887a80,...) at=20 > pcm_unregister+0x4e1m,ksd > Jul 7 22:03:27 gargoyle kernel:=20 > device_detach(c488f800,c0865663,c0da9df0,c4dd22d4,c4a95100,...) at=20 > device_detach+0x8c > Jul 7 22:03:27 gargoyle kernel:=20 > driver_module_handler(c4887a80,1,c4dd22d4,109,0,...) at=20 > driver_module_handler+0x29c > Jul 7 22:03:27 gargoyle kernel:=20 > module_unload(c4887a80,c0c54c7c,273,270,c08592b6,...) at=20 > module_unload+0x43 > Jul 7 22:03:27 gargoyle kernel:=20 > linker_file_unload(c4a92600,0,c0c54c7c,437,c4dba000,...) at=20 > linker_file_unload+0x15e > Jul 7 22:03:27 gargoyle kernel:=20 > kern_kldunload(c4ca9480,2,0,e6df7d2c,c0b98e73,...) at=20 > kern_kldunload+0xd5 > Jul 7 22:03:27 gargoyle kernel:=20 > kldunloadf(c4ca9480,e6df7cf8,8,c0c5f4bb,c0d3f0b0,...) at=20 > kldunloadf+0x2b > Jul 7 22:03:27 gargoyle kernel: syscall(e6df7d38) at syscall+0x2a3 > Jul 7 22:03:27 gargoyle kernel: Xint0x80_syscall() at=20 > Xint0x80_syscall+0x20 > Jul 7 22:03:27 gargoyle kernel: --- syscall (444, FreeBSD ELF32,=20 > kldunloadf), eip =3D 0x280d573b, esp =3D 0xbfbfe47c, ebp =3D 0xbfbfecc8 > --- Jul 7 22:03:27 gargoyle kernel: pcm0: detached > Jul 7 22:03:27 gargoyle kernel: hdac0: detached >=20 > -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ ... Going with the standard and orthodox is the death of intellect .............. --Signature=_Wed__8_Jul_2009_22_44_29_+0800_NvjoZL=1L440aOZL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkpUsM0ACgkQlr+deMUwTNpuHACfevwK1DPKYdl9hEsja22EU5NC cJEAmwb+kWtesCFc6tBS0I6qMS+oJoHp =P8YB -----END PGP SIGNATURE----- --Signature=_Wed__8_Jul_2009_22_44_29_+0800_NvjoZL=1L440aOZL--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090708224429.7d2bb3c0.ariff>