Bug 102487 - [BAT][BWR] igt@drv_module_reload@basic-reload-inject oops
Summary: [BAT][BWR] igt@drv_module_reload@basic-reload-inject oops
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-31 08:11 UTC by Mika Kuoppala
Modified: 2018-04-20 14:24 UTC (History)
1 user (show)

See Also:
i915 platform: I965G
i915 features: display/Other


Attachments

Description Mika Kuoppala 2017-08-31 08:11:00 UTC

    
Comment 1 Mika Kuoppala 2017-08-31 08:11:56 UTC
Looks like the sound side doesn't cleanup the worker properly, causing oops and hard hang:


[  263.225418] [IGT] drv_module_reload: executing
[  263.226063] [IGT] drv_module_reload: starting subtest basic-reload-inject
[  263.290652] snd_hda_codec_analog hdaudioC0D0: out of range cmd 0:6b6b:f09:0
[  263.290730] snd_hda_codec_analog hdaudioC0D0: out of range cmd 0:6b6b:f09:0
[  263.290776] snd_hda_codec_analog hdaudioC0D0: out of range cmd 0:6b6b:f09:0
[  263.290823] snd_hda_codec_analog hdaudioC0D0: out of range cmd 0:6b6b:f09:0
[  263.290875] BUG: unable to handle kernel NULL pointer dereference at 0000000000000a00
[  263.290906] IP: call_update_outputs+0x16/0x60 [snd_hda_codec_generic]
[  263.290920] PGD 0 
[  263.290922] P4D 0 

[  263.290940] Oops: 0000 [#1] PREEMPT SMP
[  263.290951] Modules linked in: snd_hda_intel i915 vgem coretemp snd_hda_codec_analog snd_hda_codec_generic tg3 lpc_ich snd_hda_codec ptp pps_core snd_hwdep snd_hda_core snd_pcm prime_numbers [last unloaded: i915]
[  263.291016] CPU: 0 PID: 3 Comm: kworker/0:0 Tainted: G     U          4.13.0-rc7-CI-Patchwork_5538+ #1
[  263.291036] Hardware name: Dell Inc.                 OptiPlex 745                 /0GW726, BIOS 2.3.1  05/21/2007
[  263.291068] Workqueue: events process_unsol_events [snd_hda_core]
[  263.291083] task: ffff88003dafa6c0 task.stack: ffffc90000020000
[  263.291100] RIP: 0010:call_update_outputs+0x16/0x60 [snd_hda_codec_generic]
[  263.291115] RSP: 0018:ffffc90000023d88 EFLAGS: 00010246
[  263.291133] RAX: 0000000000000120 RBX: ffff880029014548 RCX: ffffc90000023cfc
[  263.291152] RDX: 0000000000000002 RSI: 00000000ffffffff RDI: ffff880029014548
[  263.291170] RBP: ffffc90000023d98 R08: ffff88003dafafb0 R09: 0000000000000000
[  263.291188] R10: 0000000000006b6b R11: 0000000000000000 R12: 0000000000000000
[  263.291207] R13: ffff880031534008 R14: ffff8800315b8300 R15: ffff8800315b8308
[  263.291226] FS:  0000000000000000(0000) GS:ffff88003f200000(0000) knlGS:0000000000000000
[  263.291249] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  263.291266] CR2: 0000000000000a00 CR3: 000000003b1fe000 CR4: 00000000000006f0
[  263.291284] Call Trace:
[  263.291298]  snd_hda_gen_line_automute+0x76/0x80 [snd_hda_codec_generic]
[  263.291319]  call_line_automute+0x25/0x30 [snd_hda_codec_generic]
[  263.291351]  call_jack_callback.isra.1+0x25/0xa0 [snd_hda_codec]
[  263.291376]  snd_hda_jack_unsol_event+0x66/0x80 [snd_hda_codec]
[  263.291397]  hda_codec_unsol_event+0x17/0x20 [snd_hda_codec]
[  263.291417]  process_unsol_events+0x63/0x70 [snd_hda_core]
[  263.291438]  process_one_work+0x224/0x650
[  263.291454]  worker_thread+0x4e/0x3b0
[  263.291469]  kthread+0x114/0x150
[  263.291481]  ? process_one_work+0x650/0x650
[  263.291496]  ? kthread_create_on_node+0x40/0x40
[  263.291513]  ret_from_fork+0x27/0x40
[  263.291528] Code: ea 88 83 3c 09 00 00 e8 59 fd ff ff 5b 41 5c 41 5d 5d c3 66 90 66 66 66 66 90 55 48 89 e5 41 54 53 4c 8b a7 68 05 00 00 48 89 fb <49> 8b 84 24 00 0a 00 00 48 85 c0 74 36 ff d0 41 f6 84 24 3d 09 
[  263.291663] RIP: call_update_outputs+0x16/0x60 [snd_hda_codec_generic] RSP: ffffc90000023d88
[  263.291686] CR2: 0000000000000a00
[  263.291700] ---[ end trace 4d51ee0da59b168f ]---
[  263.291716] BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:33
[  263.291741] in_atomic(): 0, irqs_disabled(): 1, pid: 3, name: kworker/0:0
[  263.291759] INFO: lockdep is turned off.
[  263.291772] irq event stamp: 2877392
[  263.291787] hardirqs last  enabled at (2877391): [<ffffffff810f0c40>] console_unlock+0x380/0x570
[  263.291812] hardirqs last disabled at (2877392): [<ffffffff818c675f>] error_entry+0x6f/0xc0
[  263.291836] softirqs last  enabled at (2875672): [<ffffffff818c9b86>] __do_softirq+0x3a6/0x4ae
[  263.291863] softirqs last disabled at (2875665): [<ffffffff81086d6e>] irq_exit+0xae/0xc0
[  263.291888] CPU: 0 PID: 3 Comm: kworker/0:0 Tainted: G     UD         4.13.0-rc7-CI-Patchwork_5538+ #1
[  263.291913] Hardware name: Dell Inc.                 OptiPlex 745                 /0GW726, BIOS 2.3.1  05/21/2007
[  263.291945] Workqueue: events process_unsol_events [snd_hda_core]
[  263.291964] Call Trace:
[  263.291976]  dump_stack+0x68/0x9f
[  263.291990]  ___might_sleep+0x1e5/0x240
[  263.292004]  __might_sleep+0x4a/0x80
[  263.292018]  exit_signals+0x24/0x2a0
[  263.292032]  do_exit+0x95/0xcf0
[  263.292044]  ? kthread+0x114/0x150
[  263.292057]  ? process_one_work+0x650/0x650
[  263.292072]  rewind_stack_do_exit+0x17/0x20
Comment 2 Elizabeth 2017-11-14 20:12:08 UTC
Rising priority since it is BAT.
Comment 3 Elizabeth 2018-03-05 19:58:56 UTC
According to CI results this test hasn't failed for a while now. Can this issue be closed? Thank you.
Comment 4 Jani Saarinen 2018-03-29 07:10:33 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 5 Jani Saarinen 2018-04-20 14:23:53 UTC
Closing, please re-open if still occurs.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.