x86-tip/master: Kernel panic - not syncing: snd_hda_codec_hdmi hdaudioC1D0: unrecoverable failure

From: Mike Galbraith
Date: Fri Feb 03 2017 - 08:22:44 EST


On a lark, I tried a suspend/resume cycle after a bit of uneventful
beating on cpu hotplug. Suspend worked fine, resume not so well.

[ 1571.838698] Call Trace:
[ 1571.838703] __schedule+0x32c/0xd10
[ 1571.838706] ? _raw_spin_unlock_irqrestore+0x36/0x60
[ 1571.838710] schedule+0x3d/0x90
[ 1571.838712] schedule_timeout+0x2d8/0x620
[ 1571.838718] ? snd_hdac_bus_send_cmd+0xab/0x110 [snd_hda_core]
[ 1571.838722] ? lock_timer_base+0xa0/0xa0
[ 1571.838728] msleep+0x39/0x50
[ 1571.838734] azx_rirb_get_response+0x4a/0x270 [snd_hda_codec]
[ 1571.838740] azx_get_response+0x33/0x40 [snd_hda_codec]
[ 1571.838743] snd_hdac_bus_exec_verb_unlocked+0x169/0x2f0 [snd_hda_core]
[ 1571.838748] codec_exec_verb+0x8c/0x120 [snd_hda_codec]
[ 1571.838753] snd_hdac_exec_verb+0x17/0x40 [snd_hda_core]
[ 1571.838756] snd_hdac_codec_read+0x34/0x50 [snd_hda_core]
[ 1571.838759] ? snd_hdac_regmap_read_raw+0x10/0x20 [snd_hda_core]
[ 1571.838763] read_pin_sense+0x35/0x80 [snd_hda_codec]
[ 1571.838768] jack_detect_update+0x82/0xc0 [snd_hda_codec]
[ 1571.838772] snd_hda_pin_sense+0x5e/0x70 [snd_hda_codec]
[ 1571.838775] hdmi_present_sense+0x128/0x390 [snd_hda_codec_hdmi]
[ 1571.838781] ? hda_call_codec_resume+0x120/0x120 [snd_hda_codec]
[ 1571.838783] ? pm_runtime_force_suspend+0x90/0x90
[ 1571.838786] generic_hdmi_resume+0x4d/0x60 [snd_hda_codec_hdmi]
[ 1571.838790] hda_call_codec_resume+0xd0/0x120 [snd_hda_codec]
[ 1571.838794] hda_codec_runtime_resume+0x35/0x50 [snd_hda_codec]
[ 1571.838795] pm_runtime_force_resume+0x93/0xe0
[ 1571.838798] dpm_run_callback+0xba/0x300
[ 1571.838801] device_resume+0x10e/0x240
[ 1571.838804] ? pm_dev_dbg+0x80/0x80
[ 1571.838809] async_resume+0x1d/0x50
[ 1571.838811] async_run_entry_fn+0x39/0x170
[ 1571.838814] process_one_work+0x1e1/0x670
[ 1571.838815] ? process_one_work+0x162/0x670
[ 1571.838819] worker_thread+0x137/0x4b0
[ 1571.838824] kthread+0x10c/0x140
[ 1571.838825] ? process_one_work+0x670/0x670
[ 1571.838827] ? kthread_park+0x90/0x90
[ 1571.838830] ret_from_fork+0x31/0x40
[ 1571.838837] Kernel panic - not syncing: snd_hda_codec_hdmi hdaudioC1D0: unrecoverable failure

[ 1571.838839] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G E 4.10.0-tip-default_lockdep #27
[ 1571.838840] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1571.838840] Call Trace:
[ 1571.838841] <IRQ>
[ 1571.838843] dump_stack+0x85/0xc9
[ 1571.838846] panic+0xe0/0x233
[ 1571.838850] ? pm_dev_dbg+0x80/0x80
[ 1571.838852] dpm_watchdog_handler+0x4e/0x60
[ 1571.838853] call_timer_fn+0x95/0x340
[ 1571.838855] ? call_timer_fn+0x5/0x340
[ 1571.838857] ? pm_dev_dbg+0x80/0x80
[ 1571.838860] run_timer_softirq+0x230/0x620
[ 1571.838862] ? ktime_get+0xac/0x140
[ 1571.838867] __do_softirq+0xc0/0x48b
[ 1571.838871] irq_exit+0xe5/0xf0
[ 1571.838873] smp_apic_timer_interrupt+0x3d/0x50
[ 1571.838875] apic_timer_interrupt+0x9d/0xb0
[ 1571.838877] RIP: 0010:cpuidle_enter_state+0xe9/0x320
[ 1571.838878] RSP: 0018:ffffffff81c03dd0 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff10
[ 1571.838879] RAX: ffffffff81c16540 RBX: ffffe8ffffc0a200 RCX: 0000000000000000
[ 1571.838880] RDX: ffffffff81c16540 RSI: 0000000000000001 RDI: ffffffff81c16540
[ 1571.838881] RBP: ffffffff81c03e08 R08: 0000000000000000 R09: 0000000000000000
[ 1571.838882] R10: 0000000000000001 R11: 0000000000000014 R12: 0000000000000003
[ 1571.838882] R13: 0000000000000000 R14: ffffffff81d23360 R15: 0000016df8bcf98d
[ 1571.838883] </IRQ>
[ 1571.838892] cpuidle_enter+0x17/0x20
[ 1571.838894] call_cpuidle+0x23/0x40
[ 1571.838896] do_idle+0x172/0x200
[ 1571.838899] cpu_startup_entry+0x62/0x70
[ 1571.838902] rest_init+0x138/0x140
[ 1571.838903] ? rest_init+0x5/0x140
[ 1571.838907] start_kernel+0x4b3/0x4c0
[ 1571.838909] ? set_init_arg+0x55/0x55
[ 1571.838911] ? early_idt_handler_array+0x120/0x120
[ 1571.838913] x86_64_start_reservations+0x2a/0x2c
[ 1571.838915] x86_64_start_kernel+0x13d/0x14c
[ 1571.838919] start_cpu+0x14/0x14