Bug 103206 - [BAT] igt@drv_module_reload@basic-[reload|no-display|reload-inject] - dmesg-warn - WARNING: CPU: 5 PID: 4630 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
Summary: [BAT] igt@drv_module_reload@basic-[reload|no-display|reload-inject] - dmesg-w...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: high major
Assignee: Mika Kahola
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
: 104025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-11 06:32 UTC by Marta Löfstedt
Modified: 2018-04-18 10:14 UTC (History)
5 users (show)

See Also:
i915 platform: CFL
i915 features: display/audio


Attachments
attachment-19634-0.html (2.33 KB, text/html)
2017-11-22 08:01 UTC, vinod.koul
no flags Details
Linux 4.15.1 dmesg running on Asrock Deskmini H110 STX (83.23 KB, text/plain)
2018-02-04 14:45 UTC, Peter Frühberger
no flags Details
attachment-11199-0.html (2.33 KB, text/html)
2018-02-28 08:56 UTC, vinod.koul
no flags Details

Description Marta Löfstedt 2017-10-11 06:32:20 UTC
Starting from CI_DRM_3206 the igt@drv_module_reload@basic-[reload|no-display|reload-inject] subtests hit below WARN_ONs on CFL.

WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[  512.870463] ------------[ cut here ]------------
[  512.870481] WARNING: CPU: 5 PID: 4630 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
[  512.870484] Modules linked in: snd_hda_codec_hdmi(+) snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm i915 vgem x86_pkg_temp_thermal intel_powerclamp ax88179_178a usbnet mii coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid [last unloaded: i915]
[  512.870546] CPU: 5 PID: 4630 Comm: modprobe Tainted: G     U          4.14.0-rc4-CI-CI_DRM_3206+ #1
[  512.870549] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
[  512.870551] task: ffff88040019d440 task.stack: ffffc900008b8000
[  512.870567] RIP: 0010:get_saved_enc+0x6f/0x90 [i915]
[  512.870570] RSP: 0018:ffffc900008bba58 EFLAGS: 00010292
[  512.870575] RAX: 0000000000000032 RBX: ffff88044f8b0000 RCX: 0000000000000006
[  512.870577] RDX: 00000000000020a3 RSI: ffffffff81d0e3b4 RDI: ffffffff81cc212e
[  512.870580] RBP: ffffc900008bba58 R08: ffff88040019ddd8 R09: 0000000000000000
[  512.870582] R10: ffffc900008bba58 R11: 0000000000000000 R12: ffff88044f8b8128
[  512.870585] R13: ffff880454300bd8 R14: 0000000000000001 R15: ffff880454300bd0
[  512.870588] FS:  00007f65b4219700(0000) GS:ffff88045d340000(0000) knlGS:0000000000000000
[  512.870590] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  512.870593] CR2: 000055b6f5d80050 CR3: 0000000453b54002 CR4: 00000000003606e0
[  512.870595] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  512.870597] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  512.870600] Call Trace:
[  512.870616]  i915_audio_component_get_eld+0x4c/0x160 [i915]
[  512.870622]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[  512.870628]  hdmi_present_sense+0xaa/0x390 [snd_hda_codec_hdmi]
[  512.870633]  generic_hdmi_build_controls+0x15b/0x200 [snd_hda_codec_hdmi]
[  512.870640]  snd_hda_codec_build_controls+0x188/0x1d0 [snd_hda_codec]
[  512.870645]  hda_codec_driver_probe+0x80/0x110 [snd_hda_codec]
[  512.870650]  driver_probe_device+0x29c/0x450
[  512.870654]  __driver_attach+0xe3/0xf0
[  512.870658]  ? driver_probe_device+0x450/0x450
[  512.870660]  bus_for_each_dev+0x62/0xa0
[  512.870664]  driver_attach+0x1e/0x20
[  512.870667]  bus_add_driver+0x173/0x270
[  512.870671]  driver_register+0x60/0xe0
[  512.870674]  ? 0xffffffffa00b1000
[  512.870678]  __hda_codec_driver_register+0x5a/0x60 [snd_hda_codec]
[  512.870682]  hdmi_driver_init+0x1e/0x1000 [snd_hda_codec_hdmi]
[  512.870685]  do_one_initcall+0x43/0x170
[  512.870688]  ? rcu_read_lock_sched_held+0x7a/0x90
[  512.870692]  ? kmem_cache_alloc_trace+0x270/0x2d0
[  512.870697]  do_init_module+0x5f/0x206
[  512.870701]  load_module+0x2581/0x2dd0
[  512.870728]  ? show_coresize+0x30/0x30
[  512.870733]  ? kernel_read+0x31/0x50
[  512.870739]  SyS_finit_module+0xc1/0x100
[  512.870743]  ? SyS_finit_module+0xc1/0x100
[  512.870751]  entry_SYSCALL_64_fastpath+0x1c/0xb1
[  512.870754] RIP: 0033:0x7f65b3d4f9f9
[  512.870757] RSP: 002b:00007ffea8c37738 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  512.870763] RAX: ffffffffffffffda RBX: ffffffff81493f33 RCX: 00007f65b3d4f9f9
[  512.870766] RDX: 0000000000000000 RSI: 000055b6f4561f8b RDI: 0000000000000000
[  512.870769] RBP: ffffc900008bbf88 R08: 0000000000000000 R09: 0000000000000000
[  512.870772] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000040000
[  512.870775] R13: 000055b6f5d7a6e0 R14: 0000000000000000 R15: 000055b6f5d7f9f0
[  512.870780]  ? __this_cpu_preempt_check+0x13/0x20
[  512.870785] Code: 70 0b 74 05 3b 70 74 74 27 48 83 c2 01 39 d1 7f e0 31 c0 c3 55 48 c7 c6 e8 9a 44 a0 48 c7 c7 ef 10 43 a0 48 89 e5 e8 32 19 d7 e0 <0f> ff 5d 31 c0 f3 c3 83 78 70 0b 74 f8 31 c0 85 d2 74 ad eb f0 
[  512.870938] ---[ end trace 5c2003d0da3aab46 ]---
[  512.870994] WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[  512.871003] ------------[ cut here ]------------
[  512.871018] WARNING: CPU: 5 PID: 4630 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
[  512.871021] Modules linked in: snd_hda_codec_hdmi(+) snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm i915 vgem x86_pkg_temp_thermal intel_powerclamp ax88179_178a usbnet mii coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid [last unloaded: i915]
[  512.871083] CPU: 5 PID: 4630 Comm: modprobe Tainted: G     U  W       4.14.0-rc4-CI-CI_DRM_3206+ #1
[  512.871086] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
[  512.871088] task: ffff88040019d440 task.stack: ffffc900008b8000
[  512.871102] RIP: 0010:get_saved_enc+0x6f/0x90 [i915]
[  512.871105] RSP: 0018:ffffc900008bba58 EFLAGS: 00010292
[  512.871110] RAX: 0000000000000032 RBX: ffff88044f8b0000 RCX: 0000000000000006
[  512.871112] RDX: 00000000000020a3 RSI: ffffffff81d0e3b4 RDI: ffffffff81cc212e
[  512.871115] RBP: ffffc900008bba58 R08: ffff88040019ddd8 R09: 0000000000000000
[  512.871117] R10: ffffc900008bba58 R11: 0000000000000000 R12: ffff88044f8b8128
[  512.871120] R13: ffff880454300bd8 R14: 0000000000000002 R15: ffff880454300bd0
[  512.871123] FS:  00007f65b4219700(0000) GS:ffff88045d340000(0000) knlGS:0000000000000000
[  512.871125] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  512.871128] CR2: 000055b6f5d80050 CR3: 0000000453b54002 CR4: 00000000003606e0
[  512.871130] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  512.871133] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  512.871135] Call Trace:
[  512.871150]  i915_audio_component_get_eld+0x4c/0x160 [i915]
[  512.871156]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[  512.871161]  hdmi_present_sense+0xaa/0x390 [snd_hda_codec_hdmi]
[  512.871166]  generic_hdmi_build_controls+0x15b/0x200 [snd_hda_codec_hdmi]
[  512.871172]  snd_hda_codec_build_controls+0x188/0x1d0 [snd_hda_codec]
[  512.871177]  hda_codec_driver_probe+0x80/0x110 [snd_hda_codec]
[  512.871181]  driver_probe_device+0x29c/0x450
[  512.871186]  __driver_attach+0xe3/0xf0
[  512.871189]  ? driver_probe_device+0x450/0x450
[  512.871192]  bus_for_each_dev+0x62/0xa0
[  512.871197]  driver_attach+0x1e/0x20
[  512.871200]  bus_add_driver+0x173/0x270
[  512.871203]  driver_register+0x60/0xe0
[  512.871206]  ? 0xffffffffa00b1000
[  512.871210]  __hda_codec_driver_register+0x5a/0x60 [snd_hda_codec]
[  512.871214]  hdmi_driver_init+0x1e/0x1000 [snd_hda_codec_hdmi]
[  512.871217]  do_one_initcall+0x43/0x170
[  512.871220]  ? rcu_read_lock_sched_held+0x7a/0x90
[  512.871224]  ? kmem_cache_alloc_trace+0x270/0x2d0
[  512.871228]  do_init_module+0x5f/0x206
[  512.871232]  load_module+0x2581/0x2dd0
[  512.871236]  ? show_coresize+0x30/0x30
[  512.871240]  ? kernel_read+0x31/0x50
[  512.871246]  SyS_finit_module+0xc1/0x100
[  512.871249]  ? SyS_finit_module+0xc1/0x100
[  512.871256]  entry_SYSCALL_64_fastpath+0x1c/0xb1
[  512.871259] RIP: 0033:0x7f65b3d4f9f9
[  512.871261] RSP: 002b:00007ffea8c37738 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  512.871266] RAX: ffffffffffffffda RBX: ffffffff81493f33 RCX: 00007f65b3d4f9f9
[  512.871269] RDX: 0000000000000000 RSI: 000055b6f4561f8b RDI: 0000000000000000
[  512.871271] RBP: ffffc900008bbf88 R08: 0000000000000000 R09: 0000000000000000
[  512.871274] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000040000
[  512.871276] R13: 000055b6f5d7a6e0 R14: 0000000000000000 R15: 000055b6f5d7f9f0
[  512.871280]  ? __this_cpu_preempt_check+0x13/0x20
[  512.871285] Code: 70 0b 74 05 3b 70 74 74 27 48 83 c2 01 39 d1 7f e0 31 c0 c3 55 48 c7 c6 e8 9a 44 a0 48 c7 c7 ef 10 43 a0 48 89 e5 e8 32 19 d7 e0 <0f> ff 5d 31 c0 f3 c3 83 78 70 0b 74 f8 31 c0 85 d2 74 ad eb f0 
[  512.871437] ---[ end trace 5c2003d0da3aab47 ]---
[  512.871489] WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[  512.871497] ------------[ cut here ]------------
[  512.871511] WARNING: CPU: 5 PID: 4630 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
[  512.871514] Modules linked in: snd_hda_codec_hdmi(+) snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm i915 vgem x86_pkg_temp_thermal intel_powerclamp ax88179_178a usbnet mii coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid [last unloaded: i915]
[  512.871576] CPU: 5 PID: 4630 Comm: modprobe Tainted: G     U  W       4.14.0-rc4-CI-CI_DRM_3206+ #1
[  512.871579] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
[  512.871581] task: ffff88040019d440 task.stack: ffffc900008b8000
[  512.871595] RIP: 0010:get_saved_enc+0x6f/0x90 [i915]
[  512.871598] RSP: 0018:ffffc900008bba58 EFLAGS: 00010292
[  512.871603] RAX: 0000000000000032 RBX: ffff88044f8b0000 RCX: 0000000000000006
[  512.871605] RDX: 00000000000020a3 RSI: ffffffff81d0e3b4 RDI: ffffffff81cc212e
[  512.871608] RBP: ffffc900008bba58 R08: ffff88040019ddd8 R09: 0000000000000000
[  512.871610] R10: ffffc900008bba58 R11: 0000000000000000 R12: ffff88044f8b8128
[  512.871613] R13: ffff880454300bd8 R14: 0000000000000003 R15: ffff880454300bd0
[  512.871615] FS:  00007f65b4219700(0000) GS:ffff88045d340000(0000) knlGS:0000000000000000
[  512.871618] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  512.871620] CR2: 000055b6f5d80050 CR3: 0000000453b54002 CR4: 00000000003606e0
[  512.871623] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  512.871625] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  512.871628] Call Trace:
[  512.871642]  i915_audio_component_get_eld+0x4c/0x160 [i915]
[  512.871648]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[  512.871653]  hdmi_present_sense+0xaa/0x390 [snd_hda_codec_hdmi]
[  512.871659]  generic_hdmi_build_controls+0x15b/0x200 [snd_hda_codec_hdmi]
[  512.871664]  snd_hda_codec_build_controls+0x188/0x1d0 [snd_hda_codec]
[  512.871670]  hda_codec_driver_probe+0x80/0x110 [snd_hda_codec]
[  512.871674]  driver_probe_device+0x29c/0x450
[  512.871678]  __driver_attach+0xe3/0xf0
[  512.871681]  ? driver_probe_device+0x450/0x450
[  512.871684]  bus_for_each_dev+0x62/0xa0
[  512.871688]  driver_attach+0x1e/0x20
[  512.871691]  bus_add_driver+0x173/0x270
[  512.871695]  driver_register+0x60/0xe0
[  512.871697]  ? 0xffffffffa00b1000
[  512.871702]  __hda_codec_driver_register+0x5a/0x60 [snd_hda_codec]
[  512.871720]  hdmi_driver_init+0x1e/0x1000 [snd_hda_codec_hdmi]
[  512.871724]  do_one_initcall+0x43/0x170
[  512.871727]  ? rcu_read_lock_sched_held+0x7a/0x90
[  512.871731]  ? kmem_cache_alloc_trace+0x270/0x2d0
[  512.871736]  do_init_module+0x5f/0x206
[  512.871740]  load_module+0x2581/0x2dd0
[  512.871744]  ? show_coresize+0x30/0x30
[  512.871749]  ? kernel_read+0x31/0x50
[  512.871755]  SyS_finit_module+0xc1/0x100
[  512.871759]  ? SyS_finit_module+0xc1/0x100
[  512.871766]  entry_SYSCALL_64_fastpath+0x1c/0xb1
[  512.871769] RIP: 0033:0x7f65b3d4f9f9
[  512.871772] RSP: 002b:00007ffea8c37738 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  512.871778] RAX: ffffffffffffffda RBX: ffffffff81493f33 RCX: 00007f65b3d4f9f9
[  512.871781] RDX: 0000000000000000 RSI: 000055b6f4561f8b RDI: 0000000000000000
[  512.871784] RBP: ffffc900008bbf88 R08: 0000000000000000 R09: 0000000000000000
[  512.871787] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000040000
[  512.871790] R13: 000055b6f5d7a6e0 R14: 0000000000000000 R15: 000055b6f5d7f9f0
[  512.871795]  ? __this_cpu_preempt_check+0x13/0x20
[  512.871800] Code: 70 0b 74 05 3b 70 74 74 27 48 83 c2 01 39 d1 7f e0 31 c0 c3 55 48 c7 c6 e8 9a 44 a0 48 c7 c7 ef 10 43 a0 48 89 e5 e8 32 19 d7 e0 <0f> ff 5d 31 c0 f3 c3 83 78 70 0b 74 f8 31 c0 85 d2 74 ad eb f0 
[  512.871959] ---[ end trace 5c2003d0da3aab48 ]---
[  514.029039] WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[  514.029093] ------------[ cut here ]------------
[  514.029180] WARNING: CPU: 10 PID: 4548 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
[  514.029192] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm i915 vgem x86_pkg_temp_thermal intel_powerclamp ax88179_178a usbnet mii coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid [last unloaded: i915]
[  514.029511] CPU: 10 PID: 4548 Comm: drv_module_relo Tainted: G     U  W       4.14.0-rc4-CI-CI_DRM_3206+ #1
[  514.029524] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
[  514.029537] task: ffff8803fa845440 task.stack: ffffc90000cf0000
[  514.029617] RIP: 0010:get_saved_enc+0x6f/0x90 [i915]
[  514.029631] RSP: 0018:ffffc90000cf3850 EFLAGS: 00010282
[  514.029656] RAX: 0000000000000032 RBX: ffff88044f8b0000 RCX: 0000000000000006
[  514.029668] RDX: 00000000000020a3 RSI: ffffffff81d0e3b4 RDI: ffffffff81cc212e
[  514.029681] RBP: ffffc90000cf3850 R08: ffff8803fa845e98 R09: 0000000000000000
[  514.029693] R10: ffffc90000cf3850 R11: 0000000000000000 R12: ffff88044f8b8128
[  514.029801] R13: ffff880454300bd8 R14: 0000000000000001 R15: ffff880454300bd0
[  514.029816] FS:  00007f1f088968c0(0000) GS:ffff88045d480000(0000) knlGS:0000000000000000
[  514.029829] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  514.029845] CR2: 0000559184eb8040 CR3: 000000044f29f004 CR4: 00000000003606e0
[  514.029858] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  514.029874] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  514.029888] Call Trace:
[  514.029985]  i915_audio_component_get_eld+0x4c/0x160 [i915]
[  514.030034]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[  514.030074]  hdmi_present_sense+0xaa/0x390 [snd_hda_codec_hdmi]
[  514.030100]  ? rcu_read_lock_sched_held+0x7a/0x90
[  514.030146]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.030175]  generic_hdmi_resume+0x4d/0x60 [snd_hda_codec_hdmi]
[  514.030210]  hda_call_codec_resume+0xba/0x110 [snd_hda_codec]
[  514.030245]  hda_codec_runtime_resume+0x35/0x50 [snd_hda_codec]
[  514.030274]  __rpm_callback+0xb9/0x1e0
[  514.030310]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.030343]  rpm_callback+0x24/0x80
[  514.030374]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.030402]  rpm_resume+0x4ed/0x780
[  514.030447]  __pm_runtime_resume+0x4e/0x90
[  514.030480]  device_release_driver_internal+0xf7/0x220
[  514.030514]  device_release_driver+0x12/0x20
[  514.030538]  bus_remove_device+0x100/0x180
[  514.030569]  device_del+0x1e5/0x310
[  514.030611]  snd_hdac_device_unregister+0x21/0x40 [snd_hda_core]
[  514.030647]  snd_hda_codec_dev_free+0x1d/0x40 [snd_hda_codec]
[  514.030676]  __snd_device_free+0x56/0xa0
[  514.030701]  snd_device_free_all+0x30/0x50
[  514.030824]  release_card_device+0x1e/0x80
[  514.030853]  device_release+0x32/0x90
[  514.030886]  kobject_put+0xa2/0x190
[  514.030920]  put_device+0x17/0x20
[  514.030950]  snd_card_free+0x7e/0xa0
[  514.031020]  azx_remove+0x4f/0x60 [snd_hda_intel]
[  514.031051]  pci_device_remove+0x39/0xb0
[  514.031081]  device_release_driver_internal+0x15d/0x220
[  514.031114]  device_release_driver+0x12/0x20
[  514.031138]  unbind_store+0x10f/0x160
[  514.031164]  drv_attr_store+0x25/0x30
[  514.031182]  sysfs_kf_write+0x45/0x60
[  514.031203]  kernfs_fop_write+0x124/0x1c0
[  514.031224]  __vfs_write+0x28/0x130
[  514.031238]  ? rcu_read_lock_sched_held+0x7a/0x90
[  514.031254]  ? rcu_sync_lockdep_assert+0x2f/0x60
[  514.031271]  ? __sb_start_write+0x108/0x200
[  514.031292]  vfs_write+0xcb/0x1c0
[  514.031312]  SyS_write+0x49/0xb0
[  514.031335]  entry_SYSCALL_64_fastpath+0x1c/0xb1
[  514.031351] RIP: 0033:0x7f1f0707c670
[  514.031364] RSP: 002b:00007ffc6a14b5d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[  514.031390] RAX: ffffffffffffffda RBX: ffffffff81493f33 RCX: 00007f1f0707c670
[  514.031403] RDX: 000000000000000c RSI: 0000560e948e4e73 RDI: 0000000000000003
[  514.031416] RBP: ffffc90000cf3f88 R08: 0000560e948e4e73 R09: 000000000000002f
[  514.031428] R10: 0000000000000073 R11: 0000000000000246 R12: 0000560e93f1a788
[  514.031441] R13: 00007ffc6a14b5e0 R14: 00007ffc6a14b670 R15: 0000560e948e4e73
[  514.031462]  ? __this_cpu_preempt_check+0x13/0x20
[  514.031487] Code: 70 0b 74 05 3b 70 74 74 27 48 83 c2 01 39 d1 7f e0 31 c0 c3 55 48 c7 c6 e8 9a 44 a0 48 c7 c7 ef 10 43 a0 48 89 e5 e8 32 19 d7 e0 <0f> ff 5d 31 c0 f3 c3 83 78 70 0b 74 f8 31 c0 85 d2 74 ad eb f0 
[  514.032136] ---[ end trace 5c2003d0da3aab49 ]---
[  514.032195] WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[  514.032203] ------------[ cut here ]------------
[  514.032218] WARNING: CPU: 10 PID: 4548 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
[  514.032221] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm i915 vgem x86_pkg_temp_thermal intel_powerclamp ax88179_178a usbnet mii coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid [last unloaded: i915]
[  514.032293] CPU: 10 PID: 4548 Comm: drv_module_relo Tainted: G     U  W       4.14.0-rc4-CI-CI_DRM_3206+ #1
[  514.032295] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
[  514.032298] task: ffff8803fa845440 task.stack: ffffc90000cf0000
[  514.032313] RIP: 0010:get_saved_enc+0x6f/0x90 [i915]
[  514.032316] RSP: 0018:ffffc90000cf3850 EFLAGS: 00010282
[  514.032321] RAX: 0000000000000032 RBX: ffff88044f8b0000 RCX: 0000000000000006
[  514.032324] RDX: 00000000000020a3 RSI: ffffffff81d0e3b4 RDI: ffffffff81cc212e
[  514.032327] RBP: ffffc90000cf3850 R08: ffff8803fa845e98 R09: 0000000000000000
[  514.032330] R10: ffffc90000cf3850 R11: 0000000000000000 R12: ffff88044f8b8128
[  514.032332] R13: ffff880454300bd8 R14: 0000000000000002 R15: ffff880454300bd0
[  514.032336] FS:  00007f1f088968c0(0000) GS:ffff88045d480000(0000) knlGS:0000000000000000
[  514.032338] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  514.032341] CR2: 0000559184eb8040 CR3: 000000044f29f004 CR4: 00000000003606e0
[  514.032344] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  514.032347] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  514.032349] Call Trace:
[  514.032364]  i915_audio_component_get_eld+0x4c/0x160 [i915]
[  514.032371]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[  514.032376]  hdmi_present_sense+0xaa/0x390 [snd_hda_codec_hdmi]
[  514.032379]  ? rcu_read_lock_sched_held+0x7a/0x90
[  514.032385]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.032389]  generic_hdmi_resume+0x4d/0x60 [snd_hda_codec_hdmi]
[  514.032394]  hda_call_codec_resume+0xba/0x110 [snd_hda_codec]
[  514.032399]  hda_codec_runtime_resume+0x35/0x50 [snd_hda_codec]
[  514.032403]  __rpm_callback+0xb9/0x1e0
[  514.032408]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.032412]  rpm_callback+0x24/0x80
[  514.032417]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.032421]  rpm_resume+0x4ed/0x780
[  514.032427]  __pm_runtime_resume+0x4e/0x90
[  514.032431]  device_release_driver_internal+0xf7/0x220
[  514.032436]  device_release_driver+0x12/0x20
[  514.032439]  bus_remove_device+0x100/0x180
[  514.032443]  device_del+0x1e5/0x310
[  514.032449]  snd_hdac_device_unregister+0x21/0x40 [snd_hda_core]
[  514.032454]  snd_hda_codec_dev_free+0x1d/0x40 [snd_hda_codec]
[  514.032458]  __snd_device_free+0x56/0xa0
[  514.032462]  snd_device_free_all+0x30/0x50
[  514.032465]  release_card_device+0x1e/0x80
[  514.032469]  device_release+0x32/0x90
[  514.032474]  kobject_put+0xa2/0x190
[  514.032478]  put_device+0x17/0x20
[  514.032481]  snd_card_free+0x7e/0xa0
[  514.032491]  azx_remove+0x4f/0x60 [snd_hda_intel]
[  514.032495]  pci_device_remove+0x39/0xb0
[  514.032499]  device_release_driver_internal+0x15d/0x220
[  514.032504]  device_release_driver+0x12/0x20
[  514.032507]  unbind_store+0x10f/0x160
[  514.032512]  drv_attr_store+0x25/0x30
[  514.032515]  sysfs_kf_write+0x45/0x60
[  514.032519]  kernfs_fop_write+0x124/0x1c0
[  514.032524]  __vfs_write+0x28/0x130
[  514.032527]  ? rcu_read_lock_sched_held+0x7a/0x90
[  514.032530]  ? rcu_sync_lockdep_assert+0x2f/0x60
[  514.032534]  ? __sb_start_write+0x108/0x200
[  514.032539]  vfs_write+0xcb/0x1c0
[  514.032543]  SyS_write+0x49/0xb0
[  514.032548]  entry_SYSCALL_64_fastpath+0x1c/0xb1
[  514.032551] RIP: 0033:0x7f1f0707c670
[  514.032554] RSP: 002b:00007ffc6a14b5d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[  514.032559] RAX: ffffffffffffffda RBX: ffffffff81493f33 RCX: 00007f1f0707c670
[  514.032562] RDX: 000000000000000c RSI: 0000560e948e4e73 RDI: 0000000000000003
[  514.032565] RBP: ffffc90000cf3f88 R08: 0000560e948e4e73 R09: 000000000000002f
[  514.032568] R10: 0000000000000073 R11: 0000000000000246 R12: 0000560e93f1a788
[  514.032571] R13: 00007ffc6a14b5e0 R14: 00007ffc6a14b670 R15: 0000560e948e4e73
[  514.032575]  ? __this_cpu_preempt_check+0x13/0x20
[  514.032581] Code: 70 0b 74 05 3b 70 74 74 27 48 83 c2 01 39 d1 7f e0 31 c0 c3 55 48 c7 c6 e8 9a 44 a0 48 c7 c7 ef 10 43 a0 48 89 e5 e8 32 19 d7 e0 <0f> ff 5d 31 c0 f3 c3 83 78 70 0b 74 f8 31 c0 85 d2 74 ad eb f0 
[  514.032804] ---[ end trace 5c2003d0da3aab4a ]---
[  514.032863] WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[  514.032872] ------------[ cut here ]------------
[  514.032887] WARNING: CPU: 10 PID: 4548 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x6f/0x90 [i915]
[  514.032891] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm i915 vgem x86_pkg_temp_thermal intel_powerclamp ax88179_178a usbnet mii coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e ptp pps_core prime_numbers i2c_hid [last unloaded: i915]
[  514.032967] CPU: 10 PID: 4548 Comm: drv_module_relo Tainted: G     U  W       4.14.0-rc4-CI-CI_DRM_3206+ #1
[  514.032970] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWX1.R00.X104.A03.1709140524 09/14/2017
[  514.032973] task: ffff8803fa845440 task.stack: ffffc90000cf0000
[  514.033000] RIP: 0010:get_saved_enc+0x6f/0x90 [i915]
[  514.033003] RSP: 0018:ffffc90000cf3850 EFLAGS: 00010282
[  514.033008] RAX: 0000000000000032 RBX: ffff88044f8b0000 RCX: 0000000000000006
[  514.033011] RDX: 00000000000020a3 RSI: ffffffff81d0e3b4 RDI: ffffffff81cc212e
[  514.033014] RBP: ffffc90000cf3850 R08: ffff8803fa845e98 R09: 0000000000000000
[  514.033017] R10: ffffc90000cf3850 R11: 0000000000000000 R12: ffff88044f8b8128
[  514.033019] R13: ffff880454300bd8 R14: 0000000000000003 R15: ffff880454300bd0
[  514.033023] FS:  00007f1f088968c0(0000) GS:ffff88045d480000(0000) knlGS:0000000000000000
[  514.033025] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  514.033028] CR2: 0000559184eb8040 CR3: 000000044f29f004 CR4: 00000000003606e0
[  514.033031] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  514.033034] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  514.033036] Call Trace:
[  514.033051]  i915_audio_component_get_eld+0x4c/0x160 [i915]
[  514.033057]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[  514.033062]  hdmi_present_sense+0xaa/0x390 [snd_hda_codec_hdmi]
[  514.033065]  ? rcu_read_lock_sched_held+0x7a/0x90
[  514.033072]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.033076]  generic_hdmi_resume+0x4d/0x60 [snd_hda_codec_hdmi]
[  514.033080]  hda_call_codec_resume+0xba/0x110 [snd_hda_codec]
[  514.033085]  hda_codec_runtime_resume+0x35/0x50 [snd_hda_codec]
[  514.033089]  __rpm_callback+0xb9/0x1e0
[  514.033094]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.033098]  rpm_callback+0x24/0x80
[  514.033103]  ? hda_call_codec_resume+0x110/0x110 [snd_hda_codec]
[  514.033107]  rpm_resume+0x4ed/0x780
[  514.033113]  __pm_runtime_resume+0x4e/0x90
[  514.033117]  device_release_driver_internal+0xf7/0x220
[  514.033122]  device_release_driver+0x12/0x20
[  514.033126]  bus_remove_device+0x100/0x180
[  514.033130]  device_del+0x1e5/0x310
[  514.033136]  snd_hdac_device_unregister+0x21/0x40 [snd_hda_core]
[  514.033140]  snd_hda_codec_dev_free+0x1d/0x40 [snd_hda_codec]
[  514.033145]  __snd_device_free+0x56/0xa0
[  514.033148]  snd_device_free_all+0x30/0x50
[  514.033152]  release_card_device+0x1e/0x80
[  514.033156]  device_release+0x32/0x90
[  514.033160]  kobject_put+0xa2/0x190
[  514.033164]  put_device+0x17/0x20
[  514.033168]  snd_card_free+0x7e/0xa0
[  514.033177]  azx_remove+0x4f/0x60 [snd_hda_intel]
[  514.033181]  pci_device_remove+0x39/0xb0
[  514.033185]  device_release_driver_internal+0x15d/0x220
[  514.033190]  device_release_driver+0x12/0x20
[  514.033193]  unbind_store+0x10f/0x160
[  514.033197]  drv_attr_store+0x25/0x30
[  514.033201]  sysfs_kf_write+0x45/0x60
[  514.033205]  kernfs_fop_write+0x124/0x1c0
[  514.033209]  __vfs_write+0x28/0x130
[  514.033212]  ? rcu_read_lock_sched_held+0x7a/0x90
[  514.033216]  ? rcu_sync_lockdep_assert+0x2f/0x60
[  514.033220]  ? __sb_start_write+0x108/0x200
[  514.033224]  vfs_write+0xcb/0x1c0
[  514.033228]  SyS_write+0x49/0xb0
[  514.033233]  entry_SYSCALL_64_fastpath+0x1c/0xb1
[  514.033236] RIP: 0033:0x7f1f0707c670
[  514.033239] RSP: 002b:00007ffc6a14b5d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[  514.033245] RAX: ffffffffffffffda RBX: ffffffff81493f33 RCX: 00007f1f0707c670
[  514.033247] RDX: 000000000000000c RSI: 0000560e948e4e73 RDI: 0000000000000003
[  514.033251] RBP: ffffc90000cf3f88 R08: 0000560e948e4e73 R09: 000000000000002f
[  514.033253] R10: 0000000000000073 R11: 0000000000000246 R12: 0000560e93f1a788
[  514.033256] R13: 00007ffc6a14b5e0 R14: 00007ffc6a14b670 R15: 0000560e948e4e73
[  514.033260]  ? __this_cpu_preempt_check+0x13/0x20
[  514.033266] Code: 70 0b 74 05 3b 70 74 74 27 48 83 c2 01 39 d1 7f e0 31 c0 c3 55 48 c7 c6 e8 9a 44 a0 48 c7 c7 ef 10 43 a0 48 89 e5 e8 32 19 d7 e0 <0f> ff 5d 31 c0 f3 c3 83 78 70 0b 74 f8 31 c0 85 d2 74 ad eb f0 
[  514.033438] ---[ end trace 5c2003d0da3aab4b ]---

https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_3206/fi-cfl-s/igt@drv_module_reload@basic-reload.html
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_3206/fi-cfl-s/igt@drv_module_reload@basic-no-display.html
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_3206/fi-cfl-s/igt@drv_module_reload@basic-reload-inject.html
Comment 1 Ville Syrjala 2017-10-11 18:58:52 UTC
This looks like a bug in the audio driver. I wonder what pipe number it's actually requesting here?
Comment 2 Chris Wilson 2017-10-11 19:06:14 UTC
(In reply to Ville Syrjala from comment #1)
> This looks like a bug in the audio driver. I wonder what pipe number it's
> actually requesting here?

* places a large bet on -1.
Comment 3 Chris Wilson 2017-10-11 19:10:29 UTC
Although, RAX: 0000000000000032 suggests 50.
Comment 4 Mika Kahola 2017-10-12 06:03:38 UTC
When we run test with disable display the num_pipes is set to 0. This is set checked in get_saved_enc() function. The function assumes that we have more than 0 pipes available. I'm testing a patch that caches maximum number of available pipes and uses this value instead of num_pipes. I'm waiting for the intel-trybot results at the moment.
Comment 5 Jani Saarinen 2017-10-12 06:18:48 UTC
fix in trybot good?
https://patchwork.freedesktop.org/series/31745/
Comment 6 Jani Nikula 2017-10-12 06:58:17 UTC
The bug is that intel_device_info_runtime_init() gets called too late, and num_pipes gets set to 0 too late, and audio component gets registered despite no display.

N.b. -1 is a valid value for pipe in the component interface, but that's besides the point.
Comment 7 Jani Nikula 2017-10-12 07:00:26 UTC
Audio component init already has

	if (INTEL_INFO(dev_priv)->num_pipes == 0)
		return;

but it has no effect because see comment #6.
Comment 8 Elizabeth 2017-11-01 18:32:03 UTC
Quick note: still hit on CFL with IGT-Version: 1.20-g7aac0e8 (x86_64) (Linux: 4.14.0-rc7-drm-intel-qa-ww44-commit-ec9f758+ x86_64)
Comment 9 Elizabeth 2017-11-01 19:45:00 UTC
(In reply to Elizabeth from comment #8)
> Quick note: still hit on CFL with IGT-Version: 1.20-g7aac0e8 (x86_64)
> (Linux: 4.14.0-rc7-drm-intel-qa-ww44-commit-ec9f758+ x86_64)
igt@drv_module_reload@basic-no-display
igt@drv_module_reload@basic-reload-inject
igt@drv_module_reload@basic-reload
Forgot tests, sorry for the spam.
Comment 10 Daniel Vetter 2017-11-08 10:19:10 UTC
Adding Vinod, this is something the audio team broke. We're currently freezing the snd-next tree in drm-tip because of this issue, which might be something that you want to avoid (since iirc audio QA still tests drm-tip).
Comment 11 vinod.koul 2017-11-08 10:50:14 UTC
(In reply to Daniel Vetter from comment #10)
> Adding Vinod, this is something the audio team broke. We're currently
> freezing the snd-next tree in drm-tip because of this issue, which might be
> something that you want to avoid (since iirc audio QA still tests drm-tip).

add Takashi as well

RIP: 0010:get_saved_enc+0x6f/0x90 [i915]

sounds like a problem in i915 :)

Well if the system has no display should we (audio ppl) check for that? maybe a new call? or when audio requests power_up display should return error so that we don't go further. should we fix audio component to not get registered despite no display. 

Also FWIW, I do not think anything in sound-next would have broken this, Takashi?
Comment 12 Takashi Iwai 2017-11-08 15:10:06 UTC
(In reply to Daniel Vetter from comment #10)
> Adding Vinod, this is something the audio team broke. We're currently
> freezing the snd-next tree in drm-tip because of this issue, which might be
> something that you want to avoid (since iirc audio QA still tests drm-tip).

Well, there has been no change in the fundamental HD-audio code over months, so I don't think it's the audio side that broke -- at least, not in an obvious manner.

At which commit of sound git tree did it still work?  We can check it by comparing with the broken tree.
Comment 13 Mika Kahola 2017-11-09 10:59:27 UTC
I proposed a patch

https://patchwork.freedesktop.org/series/33506/

which checks if pipes are available when reading out eld. This should fix CFL dmesg warnings. Reviews and comments are warmly welcomed :)
Comment 14 Jani Saarinen 2017-11-17 08:39:41 UTC
Dropping priority as other CI system works 
https://intel-gfx-ci.01.org/tree/drm-tip/fi-cfl-s2.html
Comment 15 Jani Saarinen 2017-11-17 09:12:28 UTC
Now need to check still with eDP connected.
Comment 16 vinod.koul 2017-11-22 08:01:20 UTC
Created attachment 135660 [details]
attachment-19634-0.html

Thanks for your email

I am on vacation till Nov 26th
Please expect delayed response.

Regards
--
~Vinod
Comment 17 Marta Löfstedt 2017-11-22 11:45:18 UTC
(In reply to Jani Saarinen from comment #14)
> Dropping priority as other CI system works 
> https://intel-gfx-ci.01.org/tree/drm-tip/fi-cfl-s2.html

Jani, could you comment as to why this is set to invalid?
Comment 18 Mika Kahola 2017-11-22 11:52:10 UTC
It turned out that cfl-s had CNP PCH internal which meant that one of the pipes was fused of. The cfl-s2 has CNP PCH external which has all three pipes enabled. For gen9 only we can fuse off pipes.
Comment 19 Marta Löfstedt 2017-11-22 12:02:03 UTC
(In reply to Mika Kahola from comment #18)
> It turned out that cfl-s had CNP PCH internal which meant that one of the
> pipes was fused of. The cfl-s2 has CNP PCH external which has all three
> pipes enabled. For gen9 only we can fuse off pipes.

OK, let's sweep it under the carpet and hope no one else does this type of crazy CFL home builds.
Comment 20 Elizabeth 2017-12-04 20:39:55 UTC
*** Bug 104025 has been marked as a duplicate of this bug. ***
Comment 21 Jani Nikula 2018-01-19 14:19:06 UTC
There were reports about this in the wild on non-CNP, pushed

commit 0b7029b7e43fda1304c181a3ade0b429b9edcd9d
Author: Mika Kahola <mika.kahola@intel.com>
Date:   Mon Dec 18 10:04:03 2017 +0200

    drm/i915: Check for fused or unused pipes
Comment 22 Peter Frühberger 2018-02-04 14:43:16 UTC
This issue still happens on Linux 4.15.1 running on a ASRock Mini 110 STX board.

[    4.986273] WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
[    4.986293] WARNING: CPU: 4 PID: 1203 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x81/0x90 [i915]
[    4.986293] Modules linked in: xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables input_leds iptable_filter hid_generic snd_usb_audio usbhid hid snd_usbmidi_lib cm109 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic nls_iso8859_1 snd_hda_intel snd_hda_codec intel_rapl snd_hda_core x86_pkg_temp_thermal intel_powerclamp snd_hwdep snd_pcm kvm_intel kvm snd_seq_midi irqbypass snd_seq_midi_event crct10dif_pclmul crc32_pclmul snd_rawmidi ghash_clmulni_intel pcbc snd_seq snd_seq_device snd_timer aesni_intel uas aes_x86_64 crypto_simd glue_helper cryptd intel_cstate snd intel_rapl_perf
[    4.986306]  usb_storage mei_me mei soundcore intel_pch_thermal shpchp acpi_pad mac_hid tpm_crb coretemp parport_pc ppdev lp parport ip_tables x_tables autofs4 i915 i2c_algo_bit drm_kms_helper e1000e syscopyarea sysfillrect sysimgblt fb_sys_fops ptp ahci drm pps_core libahci video
[    4.986313] CPU: 4 PID: 1203 Comm: pulseaudio Tainted: G        W        4.15.1-linus1+ #1
[    4.986313] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./H110M-STX, BIOS P7.50 01/10/2018
[    4.986323] RIP: 0010:get_saved_enc+0x81/0x90 [i915]
[    4.986324] RSP: 0018:ffffb0f7c40cf830 EFLAGS: 00010282
[    4.986325] RAX: 0000000000000000 RBX: 0000000000000100 RCX: ffffffff9ca626c8
[    4.986325] RDX: 0000000000000001 RSI: 0000000000000086 RDI: 0000000000000247
[    4.986325] RBP: ffffb0f7c40cf830 R08: 0000000000000032 R09: 0000000000000415
[    4.986326] R10: ffffffffc053ec20 R11: 0000000000000000 R12: ffff9c893e048000
[    4.986326] R13: ffff9c89427f3a10 R14: ffff9c893e04cee0 R15: ffff9c89427f3a08
[    4.986327] FS:  00007f510e5708c0(0000) GS:ffff9c896ed00000(0000) knlGS:0000000000000000
[    4.986327] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    4.986327] CR2: 0000555c3cc40308 CR3: 0000000847c08001 CR4: 00000000003606e0
[    4.986328] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    4.986328] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    4.986328] Call Trace:
[    4.986338]  i915_audio_component_get_eld+0x4a/0x160 [i915]
[    4.986340]  snd_hdac_acomp_get_eld+0x64/0x80 [snd_hda_core]
[    4.986342]  hdmi_present_sense+0xa6/0x370 [snd_hda_codec_hdmi]
[    4.986343]  ? regmap_unlock_mutex+0xe/0x10
[    4.986346]  ? snd_hda_multi_out_analog_open+0x130/0x130 [snd_hda_codec]
[    4.986347]  generic_hdmi_resume+0x4d/0x60 [snd_hda_codec_hdmi]
[    4.986349]  hda_call_codec_resume+0xce/0x120 [snd_hda_codec]
[    4.986351]  hda_codec_runtime_resume+0x35/0x50 [snd_hda_codec]
[    4.986352]  __rpm_callback+0xc4/0x200
[    4.986354]  ? snd_hda_multi_out_analog_open+0x130/0x130 [snd_hda_codec]
[    4.986355]  rpm_callback+0x24/0x80
[    4.986357]  ? snd_hda_multi_out_analog_open+0x130/0x130 [snd_hda_codec]
[    4.986358]  rpm_resume+0x4db/0x7c0
[    4.986359]  __pm_runtime_resume+0x4e/0x80
[    4.986361]  snd_hdac_power_up+0x13/0x20 [snd_hda_core]
[    4.986363]  azx_pcm_open+0x1e8/0x370 [snd_hda_codec]
[    4.986366]  snd_pcm_open_substream+0x7b/0x130 [snd_pcm]
[    4.986367]  snd_pcm_open+0xb8/0x230 [snd_pcm]
[    4.986369]  ? snd_card_file_add+0x2c/0xe0 [snd]
[    4.986370]  ? wake_up_q+0x80/0x80
[    4.986372]  snd_pcm_playback_open+0x44/0x70 [snd_pcm]
[    4.986374]  snd_open+0xb3/0x180 [snd]
[    4.986375]  chrdev_open+0xc1/0x1a0
[    4.986376]  do_dentry_open+0x1bf/0x300
[    4.986377]  ? __inode_permission+0x5b/0x160
[    4.986378]  ? cdev_put.part.3+0x20/0x20
[    4.986379]  vfs_open+0x4f/0x70
[    4.986380]  path_openat+0x616/0x16a0
[    4.986381]  ? fsnotify_destroy_event.part.3+0x44/0x50
[    4.986382]  ? fsnotify_destroy_event+0x1c/0x20
[    4.986384]  do_filp_open+0x9b/0x110
[    4.986385]  ? __check_object_size+0xaf/0x1b0
[    4.986386]  ? __alloc_fd+0x46/0x170
[    4.986386]  do_sys_open+0x1ba/0x250
[    4.986387]  ? do_sys_open+0x1ba/0x250
[    4.986388]  SyS_openat+0x14/0x20
[    4.986389]  entry_SYSCALL_64_fastpath+0x24/0x87
[    4.986389] RIP: 0033:0x7f510c6dce0c
[    4.986390] RSP: 002b:00007fff28e61d10 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
[    4.986390] RAX: ffffffffffffffda RBX: 000000000000001e RCX: 00007f510c6dce0c
[    4.986391] RDX: 0000000000080802 RSI: 00007fff28e61ed0 RDI: ffffffffffffff9c
[    4.986391] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000011
[    4.986391] R10: 0000000000000000 R11: 0000000000000293 R12: 00007fff28e61fc8
[    4.986392] R13: 0000000000000000 R14: 0000000000000001 R15: 0000555c3cbbef08
[    4.986392] Code: 48 83 c2 08 48 39 ca 75 e4 31 c0 c3 83 78 70 0b 75 c1 f3 c3 55 48 c7 c6 a0 50 55 c0 48 c7 c7 c2 d3 56 c0 48 89 e5 e8 8f 41 1e db <0f> ff 31 c0 5d c3 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 
[    4.986407] ---[ end trace 17eb80a9a265f6df ]---
Comment 23 Peter Frühberger 2018-02-04 14:45:10 UTC
Created attachment 137165 [details]
Linux 4.15.1 dmesg running on Asrock Deskmini H110 STX
Comment 24 Jani Saarinen 2018-02-28 08:55:41 UTC
Resolved in drm-tip, please test with that.
Comment 25 vinod.koul 2018-02-28 08:56:19 UTC
Created attachment 137684 [details]
attachment-11199-0.html

Thanks for your email

I am on long medical leave
Please expect delayed response.

Regards
--
~Vinod
Comment 26 Juan Simón 2018-03-11 13:04:31 UTC
It still fails on 4.15.8:

mar 11 13:10:41 arch-juan kernel: ------------[ cut here ]------------
mar 11 13:10:41 arch-juan kernel: WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
mar 11 13:10:41 arch-juan kernel: WARNING: CPU: 6 PID: 298 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x7d/0x90 [i915]
mar 11 13:10:41 arch-juan kernel: Modules linked in: snd_hda_codec_hdmi(+) uvcvideo(+) hid_logitech_dj(+) hid_generic(+) videobuf2_vmalloc videobuf2_memops snd_usb_audio(+) videobuf2_v4l2 videobuf2_core videodev nls_iso8859_1 snd_usbmidi_>
mar 11 13:10:41 arch-juan kernel:  rtc_cmos pinctrl_intel evdev mac_hid vboxnetflt(O) vboxnetadp(O) vboxpci(O) vboxdrv(O) crypto_user ip_tables x_tables f2fs fscrypto sd_mod ahci xhci_pci libahci xhci_hcd libata crc32_pclmul usbcore scsi_>
mar 11 13:10:41 arch-juan kernel: CPU: 6 PID: 298 Comm: systemd-udevd Tainted: G           O     4.15.7-1-ARCH #1
mar 11 13:10:41 arch-juan kernel: Hardware name: ECS H110I-C4P/H110I-C4P, BIOS 5.12 12/12/2016
mar 11 13:10:41 arch-juan kernel: RIP: 0010:get_saved_enc+0x7d/0x90 [i915]
mar 11 13:10:41 arch-juan kernel: RSP: 0018:ffffa54b420afa78 EFLAGS: 00010286
mar 11 13:10:41 arch-juan kernel: RAX: 0000000000000000 RBX: 0000000000000100 RCX: 0000000000000001
mar 11 13:10:41 arch-juan kernel: RDX: 0000000080000001 RSI: 0000000000000082 RDI: 0000000000000293
mar 11 13:10:41 arch-juan kernel: RBP: ffff8a58e9d68000 R08: 001265049b8b6e12 R09: 0000000000000333
mar 11 13:10:41 arch-juan kernel: R10: ffffffffc0241db0 R11: 0000000000000000 R12: ffff8a58e9e8c210
mar 11 13:10:41 arch-juan kernel: R13: ffff8a58e9d6cee0 R14: 0000000000000001 R15: ffff8a58e9e8c208
mar 11 13:10:41 arch-juan kernel: FS:  00007f07232658c0(0000) GS:ffff8a58fed80000(0000) knlGS:0000000000000000
mar 11 13:10:41 arch-juan kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
mar 11 13:10:41 arch-juan kernel: CR2: 00007f072322c20f CR3: 000000042ad8e001 CR4: 00000000003606e0
mar 11 13:10:41 arch-juan kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
mar 11 13:10:41 arch-juan kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
mar 11 13:10:41 arch-juan kernel: Call Trace:
mar 11 13:10:41 arch-juan kernel:  i915_audio_component_get_eld+0x48/0x150 [i915]
mar 11 13:10:41 arch-juan kernel:  hdmi_present_sense+0x9a/0x370 [snd_hda_codec_hdmi]
mar 11 13:10:41 arch-juan kernel:  generic_hdmi_build_controls+0x146/0x1e0 [snd_hda_codec_hdmi]
mar 11 13:10:41 arch-juan kernel:  snd_hda_codec_build_controls+0x63/0x210 [snd_hda_codec]
mar 11 13:10:41 arch-juan kernel:  hda_codec_driver_probe+0xc6/0x100 [snd_hda_codec]
mar 11 13:10:41 arch-juan kernel:  driver_probe_device+0x315/0x480
mar 11 13:10:41 arch-juan kernel:  __driver_attach+0xa0/0xe0
mar 11 13:10:41 arch-juan kernel:  ? driver_probe_device+0x480/0x480
mar 11 13:10:41 arch-juan kernel:  bus_for_each_dev+0x6b/0xb0
mar 11 13:10:41 arch-juan kernel:  bus_add_driver+0x1c2/0x260
mar 11 13:10:41 arch-juan kernel:  ? 0xffffffffc0927000
mar 11 13:10:41 arch-juan kernel:  driver_register+0x57/0xc0
mar 11 13:10:41 arch-juan kernel:  ? 0xffffffffc0927000
mar 11 13:10:41 arch-juan kernel:  do_one_initcall+0x4e/0x190
mar 11 13:10:41 arch-juan kernel:  ? free_unref_page_commit+0x66/0xf0
mar 11 13:10:41 arch-juan kernel:  ? kmem_cache_alloc_trace+0xa1/0x1c0
mar 11 13:10:41 arch-juan kernel:  do_init_module+0x5b/0x205
mar 11 13:10:41 arch-juan kernel:  load_module+0x26ad/0x2b30
mar 11 13:10:41 arch-juan kernel:  ? kmem_cache_alloc_node_trace+0xe5/0x1d0
mar 11 13:10:41 arch-juan kernel:  ? vmap_page_range_noflush+0x27b/0x380
mar 11 13:10:41 arch-juan kernel:  ? SyS_init_module+0x163/0x1a0
mar 11 13:10:41 arch-juan kernel:  SyS_init_module+0x163/0x1a0
mar 11 13:10:41 arch-juan kernel:  do_syscall_64+0x74/0x190
mar 11 13:10:41 arch-juan kernel:  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
mar 11 13:10:41 arch-juan kernel: RIP: 0033:0x7f0722ba16ca
mar 11 13:10:41 arch-juan kernel: RSP: 002b:00007ffde5180408 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
mar 11 13:10:41 arch-juan kernel: RAX: ffffffffffffffda RBX: 0000557ae06ff810 RCX: 00007f0722ba16ca
mar 11 13:10:41 arch-juan kernel: RDX: 00007f0722458cb5 RSI: 000000000001fc40 RDI: 0000557ae0f53a60
mar 11 13:10:41 arch-juan kernel: RBP: 00007f0722458cb5 R08: 0000000000000005 R09: 00007ffde517fee0
mar 11 13:10:41 arch-juan kernel: R10: 0000000000000005 R11: 0000000000000246 R12: 0000557ae0f53a60
mar 11 13:10:41 arch-juan kernel: R13: 0000557ae0711910 R14: 0000000000020000 R15: 00007ffde5180f00
mar 11 13:10:41 arch-juan kernel: Code: 70 74 74 12 48 83 c2 08 48 39 ca 75 e4 31 c0 c3 83 78 70 0b 75 c1 f3 c3 48 c7 c6 60 13 30 c0 48 c7 c7 1c f4 2e c0 e8 d3 90 e3 e1 <0f> 0b 31 c0 c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 
mar 11 13:10:41 arch-juan kernel: ---[ end trace fe237e517a3f3783 ]---

mar 11 13:10:41 arch-juan kernel: ------------[ cut here ]------------
mar 11 13:10:41 arch-juan kernel: WARN_ON(pipe >= intel_info((dev_priv))->num_pipes)
mar 11 13:10:41 arch-juan kernel: WARNING: CPU: 6 PID: 298 at drivers/gpu/drm/i915/intel_audio.c:757 get_saved_enc+0x7d/0x90 [i915]
mar 11 13:10:41 arch-juan kernel: Modules linked in: snd_hda_codec_hdmi(+) uvcvideo(+) hid_logitech_dj(+) hid_generic(+) videobuf2_vmalloc videobuf2_memops snd_usb_audio(+) videobuf2_v4l2 videobuf2_core videodev nls_iso8859_1 snd_usbmidi_>
mar 11 13:10:41 arch-juan kernel:  rtc_cmos pinctrl_intel evdev mac_hid vboxnetflt(O) vboxnetadp(O) vboxpci(O) vboxdrv(O) crypto_user ip_tables x_tables f2fs fscrypto sd_mod ahci xhci_pci libahci xhci_hcd libata crc32_pclmul usbcore scsi_>
mar 11 13:10:41 arch-juan kernel: CPU: 6 PID: 298 Comm: systemd-udevd Tainted: G        W  O     4.15.7-1-ARCH #1
mar 11 13:10:41 arch-juan kernel: Hardware name: ECS H110I-C4P/H110I-C4P, BIOS 5.12 12/12/2016
mar 11 13:10:41 arch-juan kernel: RIP: 0010:get_saved_enc+0x7d/0x90 [i915]
mar 11 13:10:41 arch-juan kernel: RSP: 0018:ffffa54b420afa78 EFLAGS: 00010286
mar 11 13:10:41 arch-juan kernel: RAX: 0000000000000000 RBX: 0000000000000100 RCX: 0000000000000001
mar 11 13:10:41 arch-juan kernel: RDX: 0000000080000001 RSI: 0000000000000082 RDI: 0000000000000293
mar 11 13:10:41 arch-juan kernel: RBP: ffff8a58e9d68000 R08: 001265049b9c9712 R09: 000000000000039d
mar 11 13:10:41 arch-juan kernel: R10: ffffffffc0241db0 R11: 0000000000000000 R12: ffff8a58e9e8c210
mar 11 13:10:41 arch-juan kernel: R13: ffff8a58e9d6cee0 R14: 0000000000000003 R15: ffff8a58e9e8c208
mar 11 13:10:41 arch-juan kernel: FS:  00007f07232658c0(0000) GS:ffff8a58fed80000(0000) knlGS:0000000000000000
mar 11 13:10:41 arch-juan kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
mar 11 13:10:41 arch-juan kernel: CR2: 00007f072322c20f CR3: 000000042ad8e001 CR4: 00000000003606e0
mar 11 13:10:41 arch-juan kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
mar 11 13:10:41 arch-juan kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
mar 11 13:10:41 arch-juan kernel: Call Trace:
mar 11 13:10:41 arch-juan kernel:  i915_audio_component_get_eld+0x48/0x150 [i915]
mar 11 13:10:41 arch-juan kernel:  hdmi_present_sense+0x9a/0x370 [snd_hda_codec_hdmi]
mar 11 13:10:41 arch-juan kernel:  generic_hdmi_build_controls+0x146/0x1e0 [snd_hda_codec_hdmi]
mar 11 13:10:41 arch-juan kernel:  snd_hda_codec_build_controls+0x63/0x210 [snd_hda_codec]
mar 11 13:10:41 arch-juan kernel:  hda_codec_driver_probe+0xc6/0x100 [snd_hda_codec]
mar 11 13:10:41 arch-juan kernel:  driver_probe_device+0x315/0x480
mar 11 13:10:41 arch-juan kernel:  __driver_attach+0xa0/0xe0
mar 11 13:10:41 arch-juan kernel:  ? driver_probe_device+0x480/0x480
mar 11 13:10:41 arch-juan kernel:  bus_for_each_dev+0x6b/0xb0
mar 11 13:10:41 arch-juan kernel:  bus_add_driver+0x1c2/0x260
mar 11 13:10:41 arch-juan kernel:  ? 0xffffffffc0927000
mar 11 13:10:41 arch-juan kernel:  driver_register+0x57/0xc0
mar 11 13:10:41 arch-juan kernel:  ? 0xffffffffc0927000
mar 11 13:10:41 arch-juan kernel:  do_one_initcall+0x4e/0x190
mar 11 13:10:41 arch-juan kernel:  ? free_unref_page_commit+0x66/0xf0
mar 11 13:10:41 arch-juan kernel:  ? kmem_cache_alloc_trace+0xa1/0x1c0
mar 11 13:10:41 arch-juan kernel:  do_init_module+0x5b/0x205
mar 11 13:10:41 arch-juan kernel:  load_module+0x26ad/0x2b30
mar 11 13:10:41 arch-juan kernel:  ? kmem_cache_alloc_node_trace+0xe5/0x1d0
mar 11 13:10:41 arch-juan kernel:  ? vmap_page_range_noflush+0x27b/0x380
mar 11 13:10:41 arch-juan kernel:  ? SyS_init_module+0x163/0x1a0
mar 11 13:10:41 arch-juan kernel:  SyS_init_module+0x163/0x1a0
mar 11 13:10:41 arch-juan kernel:  do_syscall_64+0x74/0x190
mar 11 13:10:41 arch-juan kernel:  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
mar 11 13:10:41 arch-juan kernel: RIP: 0033:0x7f0722ba16ca
mar 11 13:10:41 arch-juan kernel: RSP: 002b:00007ffde5180408 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
mar 11 13:10:41 arch-juan kernel: RAX: ffffffffffffffda RBX: 0000557ae06ff810 RCX: 00007f0722ba16ca
mar 11 13:10:41 arch-juan kernel: RDX: 00007f0722458cb5 RSI: 000000000001fc40 RDI: 0000557ae0f53a60
mar 11 13:10:41 arch-juan kernel: RBP: 00007f0722458cb5 R08: 0000000000000005 R09: 00007ffde517fee0
mar 11 13:10:41 arch-juan kernel: R10: 0000000000000005 R11: 0000000000000246 R12: 0000557ae0f53a60
mar 11 13:10:41 arch-juan kernel: R13: 0000557ae0711910 R14: 0000000000020000 R15: 00007ffde5180f00
mar 11 13:10:41 arch-juan kernel: Code: 70 74 74 12 48 83 c2 08 48 39 ca 75 e4 31 c0 c3 83 78 70 0b 75 c1 f3 c3 48 c7 c6 60 13 30 c0 48 c7 c7 1c f4 2e c0 e8 d3 90 e3 e1 <0f> 0b 31 c0 c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 
mar 11 13:10:41 arch-juan kernel: ---[ end trace fe237e517a3f3785 ]---
Comment 27 Mika Kahola 2018-03-19 14:05:08 UTC
This https://patchwork.freedesktop.org/patch/204657/ has not yet been backported to 4.15.8 kernel. Could you try kernel 4.16-rc4 or later, please?
Comment 28 Jani Saarinen 2018-04-18 10:14:21 UTC
Has been in drm-tip a while already´.


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.