You are not logged in.

#1 2016-05-18 09:30:41

MDykstra
Member
Registered: 2014-03-12
Posts: 11

Kernel Panic - snd_hda_core

Infrequently the Linux 4.5.4-1 kernel panics on my Lennovo T520.
This has been sporadically happening for over a month. Parts of kernel oops
typed down from screenshots:

[115.904391] [<ffffffff815b77f8>] page_fault+0x28/0x30
[115.908988] [<ffffffff81425575>] ? regcache_rbtree_lookup.isra.0+0x5/0x80
[115.908988] [<ffffffff814246a8>] ? regcache_rbtree_write.0+0x38/0x450
[115.918241] [<ffffffffa06818c2>] ? hda_readable_reg+0x42/0x50 [snd_hda_core]
[115.922891] [<ffffffff814243d0>] regcache_write+0x50/0x60
[115.927522] [<ffffffff81421b2b>] _regmap_read+0x12b/0x140
[115.932148] [<ffffffff81421b7f>] regmap_read+0x3f/0x60
[115.936722] [<ffffffffa0681efa>] snd_hdac_regmap_read_raw+0x2a/0xa0 [snd_hda_core]
[115.941183] [<ffffffffa0682047>] snd_hdac_regmap_update_raw+0x37/0x90 [snd_hda_core]
[115.945451] [<ffffffffa06a4fdd>] snd_hda_codec_amp_update+0x6d/0x80 [snd_hda_core]
[115.949541] [<ffffffffa06a5b29>] snd_hda_codec_amp_init+0xf9/0x110 [snd_hda_core]
[115.953428] [<ffffffff81421b89>] ? regmap_read+0x49/0x60
[115.957112] [<ffffffffa06a5b8e>] snd_hda_codec_amp_init_stereo+0x4e/0x90 [snd_hda_codec]
[115.960696] [<ffffffffa071617e>] init_amp+0x8e/0xa0 [snd_hda_codec_generic]
[115.964256] [<ffffffffa071ee3a>] snd_hda_activate_path+0x1ea/0x3b0 [snd_hda_codec_generic]
[115.967812] [<ffffffffa0680a43>] ? snd_hdac_codec_read+0x43/0x70 [snd_hda_core]
[115.971396] [<ffffffffa071f366>] mux_select+0x116/0x250 [snd_hda_codec_generic]
[115.974984] [<ffffffffa071f4db>] snd_hda_gen_mic_autoswitch+0x8b/0xc0 [snd_hda_codec_generic]
[115.978587] [<ffffffffa071f535>] call_mic_autoswitch+0x25/0x30 [snd_hda_codec_generic]
[115.982205] [<ffffffffa06a9385>] call_jack_callback.isra.1+0x25/0xa0 [snd_hda_codec]
[115.985809] [<ffffffffa06a9466>] snd_hda_jack_unsol_event+0x66/0x80 [snd_hda_codec]
[115.989429] [<ffffffffa06a3077>] hda_codec_unsol_event+0x17/0x20 [snd_hda_codec]
[115.993066] [<ffffffffa067f193>] process_unsol_events+0x63/0x70 [snd_hda_core]
[115.996714] [<ffffffff81091285>] process_one_work+0x1e5/0x480
[116.000369] [<ffffffff81091568>] worker_thread+0x48/0x4e0
[116.004005] [<ffffffff81091520>] ? process_one_work+0x480/0x480
[116.007653] [<ffffffff810971f8>] kthread+0xd8/0xf0
[116.011300] [<ffffffff81097120>] ? kthread_worker_fn+0x170/0x170
[116.014958] [<ffffffff815b59ff>] ret_from_fork+0x3f/0x70

additionally:

[119.300124] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G
[119.305059] Hardware name: LENOVO 42435JG/42435JG, BIOS 8AET65WW (1.45 ) 05/14/2015
[119.310041] task: ffff880214522ac0 ti: ffff880214534000 task.ti: ffff880214534000
[119.315057] RIP: 0010:[<ffffffff81466bd3>]  [<ffffffff81466bd3>] cpuidle_enter_state+0x123/0x2d0
[119.320172] RSP: 0018:ffff880214537e78  EFLAGS: 00000246
[119.325277] RAX: 0000000000000000 RBX: 00000003f547698d RCX: 0000000000000018
[119.330432] RDX: 009d59cd4491ec62 RSI: 001c3663630e9c53 RDI: 0000000000000000
[119.335607] RBP: ffff880214537eb0 R08: 0000000000000cff R09: ffff88021e252864
[119.340821] R10: 00000000015dce7c R11: 0000000000000c92 R12: 0000000000000005
[119.346066] R13: 0000000000000005 R14: ffff880821e25d00 R15: 00000003f514a3fa
[119.351292] FS:  0000000000000000(0000) GS:ffff88021e240000(0000) knlGS:0000000000000000
[119.356578] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000000050033
[119.361877] CR2: 0000562cda040000 CR3: 0000000000188a00 CR4: 00000000000406e0
[119.389289] Stack:
[119.372641]  ffffffff81897040 0000000500000000 ffff880214538000 ffff88021e25d000
[119.378144]  ffffffff818e8450 ffffffff81897040 ffff880214530000 ffff880214537ec0
[119.383788]  ffffffff81466db7 ffff880214537ed0 ffffffff810badea ffff880214537f28
[119.389289] Call Trace:
[119.394697]  [<ffffffff81466db7>] cpuidle_enter+0x17/0x20
[119.400174]  [<ffffffff810badea>] call_cpuidle+0x2a/0x40
[119.405656]  [<ffffffff810bb1ef>] cpu_startup_entry+0x2cf/0x3b0
[119.411123]  [<ffffffff810501f5>] start_secondary+0x165/0x1a0
[119.416601]  Code: 66 90 31 ff e8 4f 42 c5 ff 8b 45 d0 85 c0 74 17 9c 58 66 66 90 66 90 f6 c4 02 0f 85 73 01 00 00 31 ff e8 11 be c8 ff fb 66 66 90 <66> 66 90 4c 29 fb 40 ba cf f7 53 e3 a5 9b c4 20 48 89 d8 48 c1

Offline

#2 2016-05-18 14:27:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Kernel Panic - snd_hda_core

Are those panics, or oops?.   Does the sound die afterward, or do things continue unabated?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-05-18 16:50:51

MDykstra
Member
Registered: 2014-03-12
Posts: 11

Re: Kernel Panic - snd_hda_core

It is a kernel panic, but on normal boot-ups sound works properly, with dmesg giving:

[   14.702905] snd_hda_codec_conexant hdaudioC0D0: CX20590: BIOS auto-probing.
[   14.703413] snd_hda_codec_conexant hdaudioC0D0: autoconfig for CX20590: line_outs=1 (0x1f/0x0/0x0/0x0/0x0) type:speaker
[   14.703418] snd_hda_codec_conexant hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   14.703422] snd_hda_codec_conexant hdaudioC0D0:    hp_outs=2 (0x1c/0x19/0x0/0x0/0x0)
[   14.703425] snd_hda_codec_conexant hdaudioC0D0:    mono: mono_out=0x0
[   14.703428] snd_hda_codec_conexant hdaudioC0D0:    inputs:
[   14.703432] snd_hda_codec_conexant hdaudioC0D0:      Internal Mic=0x23
[   14.703436] snd_hda_codec_conexant hdaudioC0D0:      Mic=0x1b
[   14.703439] snd_hda_codec_conexant hdaudioC0D0:      Dock Mic=0x1a
[   14.704840] snd_hda_codec_conexant hdaudioC0D0: Enable sync_write for stable communication
[   14.955992] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[   14.956940] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[   14.957113] input: HDA Intel PCH Dock Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[   14.957271] input: HDA Intel PCH Dock Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[   14.957456] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[   14.957568] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
[   14.957668] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
[   14.957772] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18

I found unrelated: https://lkml.org/lkml/2016/3/18/620
Indeed /linux/sound/hda and /linux/sound/core was touched about two months ago.

Last edited by MDykstra (2016-05-18 16:58:49)

Offline

#4 2016-05-18 17:50:57

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Kernel Panic - snd_hda_core

I think I've seen cases of Machine Check Exceptions during idling on Intel CPUs. Microcode updation helped.

BTW, are you always getting one of those two backtraces or something else too? Any warnings in dmesg when it doesn't crash?

Offline

#5 2016-05-18 18:08:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Kernel Panic - snd_hda_core

Oh, have you installed and configured the microcode updates?
https://wiki.archlinux.org/index.php/Microcode

[I hope the answer is no tongue ]


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2016-05-18 19:13:10

MDykstra
Member
Registered: 2014-03-12
Posts: 11

Re: Kernel Panic - snd_hda_core

I was indeed busy adding microcode update to grub.cfg. Only infrequently do I get this same kernel panic.
There are no additional warnings regarding sound in dmesg on normal boot-up. As a reminder to myself;
the microcode I have now is:

[    0.392192] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x29
[    0.392226] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x29
[    0.392240] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x29
[    0.392262] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x29

After update I need several boot-ups to confirm. Don't know if this started because the Linux /linux/sound tree
was touched about two months ago. I had to clean out my fan due to thermal issues few days back, which are now
largely resolved; ordered a new heatsink anyway. I just hope these Machine Check Exceptions do not spell real
hardware failure.

Offline

#7 2016-05-19 11:35:25

MDykstra
Member
Registered: 2014-03-12
Posts: 11

Re: Kernel Panic - snd_hda_core

After updating my microcode I found that it was already up to date. There remains
an NTFS partition with ThinkVantage System Update, which had already updated BIOS
and microcode. This morning I woke up to another panic:

[14.967170] snd_hda_codec_conexant: probe of hdaudioC0D0 failed with error -5
[14.967175] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[14.967181] IP: [<ffffffff81425575>] regcache_rbtree_lookup.isra.0+0x5/0x80
[14.967183] PGD 0
[14.967185] Oops: 0000 [#1] PREEMPT SMP
[14.967218] Modules linked in: ...
[14.967225] CPU: 0 PID: 4 Comm: kworker/0.0 Tainted: G           O    4.5.4-1-ARCH #1
[14.967226] Hardware name: LENOVO 42435JG/42435JG, BIOS 8AET65WW (1.45 ) 05/14/2015
[14.967231] Workqueue: events process_unsol_events [snd_hda_core]
[14.967233] task: ffff88021497aac0 ti: ffff880214500000 task.ti: ffff880214500000
[14.967237] RIP: 0010:[<ffffffff81425575>]  [<ffffffff81425575>] regcache_rbtree_lookup.0+0x5/0x80
[14.967238] RSP: 0018:ffff880214503a40  EFLAGS: 00010286
[14.967239] RAX: ffffffff818aac20 RBX: 000000000000004a RCX: 0000000000000000
[14.967240] RDX: 00000000014b2001 RSI: 0000000000000000 RDI: 0000000000000001
[14.967241] RBP: ffff880214503aa0 R00: 0000000000000000 R09: 0000000000000b20
[14.967241] R10: ffff880213a465e0 R11: 0000000000000001 R12: 00000000014b2001
[14.967242] R13: ffff8800d5d25400 R14: 0000000000000000 R15: 00000000014b2001
[14.967244] FS:  0000000000000000(0000) GS:ffff88021e200000(0000) knlGS:0000000000000000
[14.967245] CS:  0010 DS: 0000 ES: 0000 CR): 0000000000005033
[14.967246] CR2: 0000000000000008 CR3: 00000000212b97000 CR4: 0000000000406f0
[14.967246] Stack:
[14.967249]  ffffffff814256a8 0000000000000300 0000000000000b20 0000000000000000
[14.967251]  ffff880214503a70 ffffffffa06718c2 0000004a14503a80 ffff8800d5d25400
[14.967253]  00000000014b2001 000000000000004a ffff880214503b74 ffff880037693800
[14.967253] Call Trace:
[14.967257]  [<ffffffff814256a8>] ? regcache_rbtree_write+0x38/0x450

Offline

#8 2016-05-19 13:32:47

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Kernel Panic - snd_hda_core

OK, this "probe failed" followed by NULL crash looks like it could be a kernel bug.

Check if linux-lts works, this one is still on the 4.4 branch.

Maybe in few days v4.6 will be available in repo (or get it now from in testing) so you can check this one too. If 4.6 still crashes, you'll probably need to report this bug upstream.

Offline

#9 2016-05-19 14:07:29

MDykstra
Member
Registered: 2014-03-12
Posts: 11

Re: Kernel Panic - snd_hda_core

On the "linux 4.6-1 [testing] " kernel now. Did about 10 reboots and it might be solved, but let me see the next few days.

Offline

Board footer

Powered by FluxBB