Bug 98510 - Kernel panic (?) when turning off HDMI2 via xrandr after kexec reboot with 4.8.5
Summary: Kernel panic (?) when turning off HDMI2 via xrandr after kexec reboot with 4.8.5
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 01:27 UTC by Sverd Johnsen
Modified: 2017-07-27 16:51 UTC (History)
1 user (show)

See Also:
i915 platform: SKL
i915 features: display/HDMI


Attachments

Description Sverd Johnsen 2016-10-31 01:27:09 UTC
Kernel 4.8.5
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
Model name:            Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz


After kexec using xrandr to turn off HDMI2 (DVI output connected via HDMI cable) causes the kernel to apparently crash.. unfortunately I dont even get anything in pstore so I dont have more info.

Pretty sure this worked for me in 4.7.x

Screen 0: minimum 8 x 8, current 4480 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected primary 2560x1080+1920+0 (normal left inverted right x axis y axis) 580mm x 240mm
   2560x1080     60.00*+
   1920x1080     60.00    50.00    59.94    30.00    29.97  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1400x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI3 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 1 Sverd Johnsen 2016-11-30 23:47:10 UTC
Tried this today with 4.9-rc7 (next-20161130) and seems to work again. 

I only get some messages now rather than hard crash:

[   46.931290] ------------[ cut here ]------------
[   46.931310] WARNING: CPU: 2 PID: 591 at drivers/gpu/drm/i915/intel_runtime_pm.c:1719 intel_display_power_put+0x131/0x140
[   46.931311] Use count on domain AUDIO is already zero
[   46.931313] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack nft_log nft_counter nft_meta nft_set_hash nft_set_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 ecb algif_skcipher af_alg af_packet uas usb_storage kvm_intel vhost_net tun vhost macvtap macvlan kvm intel_pch_thermal psmouse atkbd libps2 x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate intel_uncore intel_rapl_perf shpchp mei_me mei fan thermal battery i8042 tpm_infineon tpm_tis tpm_tis_core tpm acpi_pad
[   46.931394] CPU: 2 PID: 591 Comm: Xorg Tainted: G        W       4.9.0-1-next-20161130-next #1
[   46.931396] Call Trace:
[   46.931403]  dump_stack+0x4d/0x63
[   46.931409]  __warn+0xc1/0xe0
[   46.931413]  warn_slowpath_fmt+0x5a/0x80
[   46.931422]  ? intel_pin_eld_notify+0x61/0x70
[   46.931427]  intel_display_power_put+0x131/0x140
[   46.931430]  intel_disable_ddi+0x4d/0x80
[   46.931435]  intel_encoders_disable.isra.76+0x7f/0x90
[   46.931439]  haswell_crtc_disable+0x55/0x170
[   46.931444]  intel_atomic_commit_tail+0x10c/0xfd0
[   46.931449]  ? intel_prepare_plane_fb+0x148/0x280
[   46.931454]  intel_atomic_commit+0x3b8/0x4e0
[   46.931461]  ? drm_atomic_set_crtc_for_connector+0xdc/0xf0
[   46.931467]  drm_atomic_commit+0x46/0x50
[   46.931473]  drm_atomic_helper_set_config+0x7d/0xe0
[   46.931477]  drm_mode_set_config_internal+0x60/0x110
[   46.931480]  drm_mode_setcrtc+0x432/0x530
[   46.931485]  ? unix_stream_recvmsg+0x4f/0x70
[   46.931490]  drm_ioctl+0x216/0x4b0
[   46.931494]  ? drm_mode_getcrtc+0x140/0x140
[   46.931500]  ? handle_mm_fault+0x6eb/0x1170
[   46.931504]  do_vfs_ioctl+0x9e/0x5f0
[   46.931509]  ? __fget+0x72/0xa0
[   46.931512]  SyS_ioctl+0x74/0x80
[   46.931515]  do_syscall_64+0x48/0xb0
[   46.931521]  entry_SYSCALL64_slow_path+0x25/0x25
[   46.931524] RIP: 0033:0x7f9686f3cf57
[   46.931527] RSP: 002b:00007ffeb8433708 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   46.931531] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9686f3cf57
[   46.931533] RDX: 00007ffeb8433740 RSI: 00000000c06864a2 RDI: 000000000000000a
[   46.931535] RBP: 00007ffeb8433740 R08: 0000000000000001 R09: 0000000000000000
[   46.931537] R10: 0000000000000001 R11: 0000000000000246 R12: 00000000c06864a2
[   46.931539] R13: 000000000000000a R14: 00000000026e8be0 R15: 00000000026e89e0
[   46.931542] ---[ end trace cfa83528fda45952 ]---
[   46.959955] ------------[ cut here ]------------
[   46.959962] WARNING: CPU: 2 PID: 591 at drivers/gpu/drm/i915/intel_runtime_pm.c:168 intel_display_power_put+0x107/0x140
[   46.959963] Use count on power well power well 2 is already zero
[   46.959963] Modules linked in:
[   46.959964]  nls_iso8859_1 nls_cp437 vfat fat xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack nft_log nft_counter nft_meta nft_set_hash nft_set_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 ecb algif_skcipher af_alg af_packet uas usb_storage kvm_intel vhost_net tun vhost macvtap macvlan kvm intel_pch_thermal psmouse atkbd libps2 x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate intel_uncore intel_rapl_perf shpchp mei_me mei fan thermal battery i8042 tpm_infineon tpm_tis tpm_tis_core tpm acpi_pad
[   46.959999] CPU: 2 PID: 591 Comm: Xorg Tainted: G        W       4.9.0-1-next-20161130-next #1
[   46.960000] Call Trace:
[   46.960003]  dump_stack+0x4d/0x63
[   46.960005]  __warn+0xc1/0xe0
[   46.960007]  warn_slowpath_fmt+0x5a/0x80
[   46.960009]  ? intel_runtime_pm_put+0x69/0xa0
[   46.960011]  intel_display_power_put+0x107/0x140
[   46.960014]  intel_atomic_commit_tail+0x4b9/0xfd0
[   46.960016]  ? intel_prepare_plane_fb+0x148/0x280
[   46.960018]  intel_atomic_commit+0x3b8/0x4e0
[   46.960021]  ? drm_atomic_set_crtc_for_connector+0xdc/0xf0
[   46.960023]  drm_atomic_commit+0x46/0x50
[   46.960026]  drm_atomic_helper_set_config+0x7d/0xe0
[   46.960028]  drm_mode_set_config_internal+0x60/0x110
[   46.960029]  drm_mode_setcrtc+0x432/0x530
[   46.960031]  ? unix_stream_recvmsg+0x4f/0x70
[   46.960033]  drm_ioctl+0x216/0x4b0
[   46.960034]  ? drm_mode_getcrtc+0x140/0x140
[   46.960037]  ? handle_mm_fault+0x6eb/0x1170
[   46.960038]  do_vfs_ioctl+0x9e/0x5f0
[   46.960040]  ? __fget+0x72/0xa0
[   46.960042]  SyS_ioctl+0x74/0x80
[   46.960043]  do_syscall_64+0x48/0xb0
[   46.960046]  entry_SYSCALL64_slow_path+0x25/0x25
[   46.960047] RIP: 0033:0x7f9686f3cf57
[   46.960048] RSP: 002b:00007ffeb8433708 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   46.960050] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9686f3cf57
[   46.960051] RDX: 00007ffeb8433740 RSI: 00000000c06864a2 RDI: 000000000000000a
[   46.960051] RBP: 00007ffeb8433740 R08: 0000000000000001 R09: 0000000000000000
[   46.960052] R10: 0000000000000001 R11: 0000000000000246 R12: 00000000c06864a2
[   46.960053] R13: 000000000000000a R14: 00000000026ec3b0 R15: 00000000026e96b0
[   46.960054] ---[ end trace cfa83528fda45953 ]---
[   46.960059] ------------[ cut here ]------------
[   46.960061] WARNING: CPU: 2 PID: 591 at drivers/gpu/drm/i915/intel_runtime_pm.c:168 intel_display_power_put+0x107/0x140
[   46.960062] Use count on power well DC off is already zero
[   46.960063] Modules linked in:
[   46.960063]  nls_iso8859_1 nls_cp437 vfat fat xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack nft_log nft_counter nft_meta nft_set_hash nft_set_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 ecb algif_skcipher af_alg af_packet uas usb_storage kvm_intel vhost_net tun vhost macvtap macvlan kvm intel_pch_thermal psmouse atkbd libps2 x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate intel_uncore intel_rapl_perf shpchp mei_me mei fan thermal battery i8042 tpm_infineon tpm_tis tpm_tis_core tpm acpi_pad
[   46.960089] CPU: 2 PID: 591 Comm: Xorg Tainted: G        W       4.9.0-1-next-20161130-next #1
[   46.960090] Call Trace:
[   46.960092]  dump_stack+0x4d/0x63
[   46.960094]  __warn+0xc1/0xe0
[   46.960095]  warn_slowpath_fmt+0x5a/0x80
[   46.960098]  ? __wake_up_locked+0xe/0x10
[   46.960100]  ? complete_all+0x3d/0x50
[   46.960102]  intel_display_power_put+0x107/0x140
[   46.960104]  intel_atomic_commit_tail+0xbc8/0xfd0
[   46.960106]  ? intel_prepare_plane_fb+0x148/0x280
[   46.960108]  intel_atomic_commit+0x3b8/0x4e0
[   46.960110]  ? drm_atomic_set_crtc_for_connector+0xdc/0xf0
[   46.960112]  drm_atomic_commit+0x46/0x50
[   46.960114]  drm_atomic_helper_set_config+0x7d/0xe0
[   46.960116]  drm_mode_set_config_internal+0x60/0x110
[   46.960117]  drm_mode_setcrtc+0x432/0x530
[   46.960119]  ? unix_stream_recvmsg+0x4f/0x70
[   46.960121]  drm_ioctl+0x216/0x4b0
[   46.960122]  ? drm_mode_getcrtc+0x140/0x140
[   46.960124]  ? handle_mm_fault+0x6eb/0x1170
[   46.960125]  do_vfs_ioctl+0x9e/0x5f0
[   46.960127]  ? __fget+0x72/0xa0
[   46.960128]  SyS_ioctl+0x74/0x80
[   46.960129]  do_syscall_64+0x48/0xb0
[   46.960132]  entry_SYSCALL64_slow_path+0x25/0x25
[   46.960132] RIP: 0033:0x7f9686f3cf57
[   46.960133] RSP: 002b:00007ffeb8433708 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   46.960135] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9686f3cf57
[   46.960135] RDX: 00007ffeb8433740 RSI: 00000000c06864a2 RDI: 000000000000000a
[   46.960136] RBP: 00007ffeb8433740 R08: 0000000000000001 R09: 0000000000000000
[   46.960137] R10: 0000000000000001 R11: 0000000000000246 R12: 00000000c06864a2
[   46.960138] R13: 000000000000000a R14: 00000000026ec3b0 R15: 00000000026e96b0
[   46.960139] ---[ end trace cfa83528fda45954 ]---
[   46.960139] ------------[ cut here ]------------
[   46.960141] WARNING: CPU: 2 PID: 591 at drivers/gpu/drm/i915/intel_runtime_pm.c:168 intel_display_power_put+0x107/0x140
[   46.960142] Use count on power well always-on is already zero
[   46.960142] Modules linked in:
[   46.960143]  nls_iso8859_1 nls_cp437 vfat fat xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack nft_log nft_counter nft_meta nft_set_hash nft_set_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 ecb algif_skcipher af_alg af_packet uas usb_storage kvm_intel vhost_net tun vhost macvtap macvlan kvm intel_pch_thermal psmouse atkbd libps2 x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate intel_uncore intel_rapl_perf shpchp mei_me mei fan thermal battery i8042 tpm_infineon tpm_tis tpm_tis_core tpm acpi_pad
[   46.960168] CPU: 2 PID: 591 Comm: Xorg Tainted: G        W       4.9.0-1-next-20161130-next #1
[   46.960169] Call Trace:
[   46.960170]  dump_stack+0x4d/0x63
[   46.960172]  __warn+0xc1/0xe0
[   46.960174]  warn_slowpath_fmt+0x5a/0x80
[   46.960176]  ? __wake_up_locked+0xe/0x10
[   46.960178]  ? complete_all+0x3d/0x50
[   46.960179]  intel_display_power_put+0x107/0x140
[   46.960181]  intel_atomic_commit_tail+0xbc8/0xfd0
[   46.960183]  ? intel_prepare_plane_fb+0x148/0x280
[   46.960185]  intel_atomic_commit+0x3b8/0x4e0
[   46.960187]  ? drm_atomic_set_crtc_for_connector+0xdc/0xf0
[   46.960189]  drm_atomic_commit+0x46/0x50
[   46.960192]  drm_atomic_helper_set_config+0x7d/0xe0
[   46.960193]  drm_mode_set_config_internal+0x60/0x110
[   46.960194]  drm_mode_setcrtc+0x432/0x530
[   46.960196]  ? unix_stream_recvmsg+0x4f/0x70
[   46.960198]  drm_ioctl+0x216/0x4b0
[   46.960199]  ? drm_mode_getcrtc+0x140/0x140
[   46.960201]  ? handle_mm_fault+0x6eb/0x1170
[   46.960202]  do_vfs_ioctl+0x9e/0x5f0
[   46.960204]  ? __fget+0x72/0xa0
[   46.960205]  SyS_ioctl+0x74/0x80
[   46.960206]  do_syscall_64+0x48/0xb0
[   46.960208]  entry_SYSCALL64_slow_path+0x25/0x25
[   46.960209] RIP: 0033:0x7f9686f3cf57
[   46.960210] RSP: 002b:00007ffeb8433708 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   46.960211] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9686f3cf57
[   46.960212] RDX: 00007ffeb8433740 RSI: 00000000c06864a2 RDI: 000000000000000a
[   46.960212] RBP: 00007ffeb8433740 R08: 0000000000000001 R09: 0000000000000000
[   46.960213] R10: 0000000000000001 R11: 0000000000000246 R12: 00000000c06864a2
[   46.960214] R13: 000000000000000a R14: 00000000026ec3b0 R15: 00000000026e96b0
[   46.960243] ---[ end trace cfa83528fda45955 ]---
Comment 2 Jari Tahvanainen 2017-03-27 12:09:17 UTC
Hello Sverd - I'm really sorry about this delay until getting back to you. I would propose this bug to be mark as resolved due to comment 2 and new one to be created, if the problem described in comment 2 still exists. If possible please check if failure still exist with the latest drm-tip and provide new dmesg (as attachment).
Comment 3 Jari Tahvanainen 2017-05-23 12:59:20 UTC
Marking resolved+fixed, as stated in previous comment. Please open a new bug for the symptoms on comment 2, if still applicable with the latest kernels (preferable from drm-tip).


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.