New: amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
https://bugzilla.kernel.org/show_bug.cgi?id=215648
Bug ID: 215648
Summary: amdgpu: Changing monitor configuration
(plug/unplug/wake from DPMS) causes kernel panic
Product: Drivers
Version: 2.5
Kernel Version: 5.15.12
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: NoHi!
My Lenovo T14s (AMD) crashes with a panic (https://imgur.com/a/P6Twvov) when I unplug/replug any monitor. This also happens when an external display wakes from DPMS.
I have bisected the issue to the same 0f591d17e36e08313b0c440b99b0e57b47e01a9a as Jose Mestre did in #215511. The patch proposed there (that is already mainlined, if I see that correctly) does not help. Alex Deucher asked me to open this as a new bug.
I have tried all kernel up to 5.15.24 -- I cannot try 5.16 as I use zfs as root device the and zfs module is not (yet) compatible with 5.16.
Is there anything you would like me to try or should my issue be fixed in 5.16+?
Cheers,
Philipp
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215648] amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
https://bugzilla.kernel.org/show_bug.cgi?id=215648
Alex Deucher ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Alex Deucher ([email protected]) ---
Can you attach your full dmesg output when the issue happens? Is it actually a segfault or just a warning?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215648] amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215648
--- Comment #2 from Philipp Riederer ([email protected]) --- Hey,
this is the log I could recover:
Quoted 86 lines
<4>[ 70.829010] RSP: 0018:ffffad060ad67838 EFLAGS: 00000202 <4>[ 70.829013] RAX: 0000000000000000 RBX: ffff92c82ff28000 RCX: 00000000000001f5 <4>[ 70.829014] RDX: ffffffffc2fc3970 RSI: ffffffffc3047f09 RDI: 0000000000000000 <4>[ 70.829014] RBP: 0000000000000012 R08: 0000000000000000 R09: ffffad060ad67610 <4>[ 70.829015] R10: ffffad060ad67608 R11: ffffffff9b743bc8 R12: ffff92c827b30c00 <4>[ 70.829016] R13: ffff92c7e0b35000 R14: ffff92c82c8c0000 R15: ffff92c82c8c0b58 <4>[ 70.829017] FS: 0000000000000000(0000) GS:ffff92cabf900000(0000) knlGS:0000000000000000 <4>[ 70.829018] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 <4>[ 70.829018] CR2: 00007f2afe48ef20 CR3: 000000014a5b4000 CR4: 0000000000350ee0 <0>[ 70.829020] Kernel panic - not syncing: Fatal exception in interrupt <0>[ 70.829047] Kernel Offset: 0x19000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) <4>[ 70.741431] ---[ end trace d042cf4ec67f5116 ]--- <4>[ 70.829001] RIP: 0010:kgdb_breakpoint+0x10/0x20 <4>[ 70.829009] Code: c0 c3 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 31 c0 c3 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 f0 ff 05 fc f9 f3 01 0f ae f8 cc <0f> ae f8 f0 ff 0d ee f9 f3 01 c3 0f 1f 44 00 00 0f 1f 44 00 00 48 <4>[ 70.702654] videodev snd_hda_core ecdh_generic drm_kms_helper ecc
snd_hwdepcdc_acmjoydev mcthinkpad_acpisp5100_tcosnd_rn_pci_acp3xserio_rawefi_pstorek10temp cfg80211snd_pcmi2c_piix4nvram cecrtsx_pcisnd_pci_acp3xccpsnd_timerrc_coreipmi_devintfledtrig_audioucsi_acpiplatform_profilemfd_coreipmi_msghandlertypec_ucsisnd rolesmac_hidtypec soundcore rfkill wmi videoi2c_designware_platformi2c_scmipinctrl_amdamd_pmci2c_designware_coreacpi_cpufreqvboxnetadp(OE) vboxnetflt(OE) nfsdauth_rpcgssvboxdrv(OE) drmnfs_acllockd grace backlight fusei2c_coreconfigfs sunrpcbpf_preloadefivarfs zfs(POE) zunicode(POE) zzstd(OE) zlua(OE) zavl(POE) icp(POE)crc32_pclmulcrc32c_intelzcommon(POE) znvpair(POE) spl(OE)xhci_pcixhci_pci_renesasaesni_intelr8169crypto_simdrealtek cryptdxhci_hcdmdio_devresehci_pcilibphyehci_hcd<4>[ 70.702619] ? set_kthread_struct+0x40/0x40 <4>[ 70.702620] ret_from_fork+0x22/0x30 <4>[ 70.702623] </TASK> <4>[ 70.702623] Modules linked in: ccm xt_mark xt_comment tun xt_CHECKSUM
xt_MASQUERADExt_conntrackipt_REJECTnf_reject_ipv4ip6table_mangleip6table_natip6table_filterip6_tablesiptable_mangleiptable_natnf_natnf_conntracknf_defrag_ipv6nf_defrag_ipv4libcrc32ciptable_filterip_tablesbridge stp llc cmacalgif_skcipherbnepintel_rapl_msrintel_rapl_commonsnd_acp3x_rnsnd_soc_dmicsnd_acp3x_pdm_dmasnd_soc_coresnd_compressrtsx_pci_sdmmcedac_mce_amdsnd_pcm_dmaenginemmc_coreac97_buswmi_bmofkvm_amdsnd_ctl_lediwlmvmsnd_hda_codec_realtekamdgpu mac80211snd_hda_codec_generickvmsnd_hda_codec_hdmiuvcvideo btusb libarc4 btrtl irqbypass btbcmdrm_ttm_helpercdc_ethersnd_hda_intelbtintelvideobuf2_vmalloccrct10dif_pclmulvideobuf2_memopsttmsnd_intel_dspcfgsnd_usb_audiousbnetsnd_intel_sdw_acpighash_clmulni_intelvideobuf2_v4l2iommu_v2snd_usbmidi_libgpu_schedbluetooth iwlwifisnd_hda_codecr8152videobuf2_commonsnd_rawmidirapli2c_algo_bitmiisnd_seq_device<4>[ 70.702134] ? dc_validate_global_state+0x321/0x3c0 [amdgpu] <4>[ 70.702259] ? dm_plane_helper_prepare_fb+0x231/0x2b0 [amdgpu] <4>[ 70.702382] ? __cond_resched+0x16/0x40 <4>[ 70.702385] ? __wait_for_common+0x3b/0x160 <4>[ 70.702386] ? __raw_callee_save___native_queued_spin_unlock+0x11/0x1e <4>[ 70.702390] commit_tail+0x94/0x120 [drm_kms_helper] <4>[ 70.702401] drm_atomic_helper_commit+0x113/0x140 [drm_kms_helper] <4>[ 70.702412] drm_client_modeset_commit_atomic+0x1e4/0x220 [drm] <4>[ 70.702430] drm_client_modeset_commit_locked+0x56/0x150 [drm] <4>[ 70.702444] drm_client_modeset_commit+0x24/0x40 [drm] <4>[ 70.702458] drm_fb_helper_set_par+0xa5/0xd0 [drm_kms_helper] <4>[ 70.702468] drm_fb_helper_hotplug_event.part.0+0xa8/0xc0 [drm_kms_helper] <4>[ 70.702476] drm_kms_helper_hotplug_event+0x26/0x30 [drm_kms_helper] <4>[ 70.702486] handle_hpd_irq+0x12b/0x160 [amdgpu] <4>[ 70.702611] process_one_work+0x1f1/0x390 <4>[ 70.702614] worker_thread+0x53/0x3e0 <4>[ 70.702615] ? process_one_work+0x390/0x390 <4>[ 70.702617] kthread+0x127/0x150 <4>[ 70.701096] RBP: 0000000000000012 R08: 0000000000000000 R09: ffffad060ad67610 <4>[ 70.701096] R10: ffffad060ad67608 R11: ffffffff9b743bc8 R12: ffff92c827b30c00 <4>[ 70.701097] R13: ffff92c7e0b35000 R14: ffff92c82c8c0000 R15: ffff92c82c8c0b58 <4>[ 70.701098] FS: 0000000000000000(0000) GS:ffff92cabf900000(0000) knlGS:0000000000000000 <4>[ 70.701099] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 <4>[ 70.701099] CR2: 00007f2afe48ef20 CR3: 000000003f610000 CR4: 0000000000350ee0 <4>[ 70.701100] Call Trace: <4>[ 70.701102] <TASK> <4>[ 70.701103] mpc2_assert_idle_mpcc+0xaf/0xf0 [amdgpu]
Quoted 8 lines
<4>[ 70.701242] dcn20_program_front_end_for_ctx+0x70f/0xd40 [amdgpu] <4>[ 70.701373] dc_commit_state+0x49c/0xa60 [amdgpu] <4>[ 70.701507] amdgpu_dm_atomic_commit_tail+0x55c/0x2630 [amdgpu] <4>[ 70.701635] ? dcn21_validate_bandwidth_fp+0x109/0x700 [amdgpu] <4>[ 70.701760] ? kfree+0xba/0x400 <4>[ 70.701764] ? dcn21_validate_bandwidth_fp+0xc1/0x700 [amdgpu] <4>[ 70.701886] ? dc_fpu_end+0x70/0x80 [amdgpu] <4>[ 70.702010] ? dcn21_validate_bandwidth+0x44/0x50 [amdgpu]
The system is locked down hard after this.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215648] amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215648
--- Comment #3 from Alex Deucher ([email protected]) --- Thanks. Can you get the dmesg output from boot prior to the hang?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215648] amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215648
--- Comment #4 from Philipp Riederer ([email protected]) --- Created attachment 300517
--> https://bugzilla.kernel.org/attachment.cgi?id=300517&action=edit
dmesg from boot using kernel 5.15.12@94ba5b0fb52d6dbf1f200351876a839afb74aedd
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215648] amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215648
--- Comment #5 from Philipp Riederer ([email protected]) --- Hey,
Thank you for working on this!
I added the dmesg as attachment to the bug. Please note that this is from the working kernel (commit 94ba5b0fb52d6dbf1f200351876a839afb74aedd) as that is the one I have running now. If it helps, I can also provide the messages from a non-working kernel later.
Cheers,
Philipp
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215648] amdgpu: Changing monitor configuration (plug/unplug/wake from DPMS) causes kernel panic
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215648
Philipp Riederer ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |UNREPRODUCIBLE--- Comment #6 from Philipp Riederer ([email protected]) --- I can no longer reproduce this issue with 5.16.14.
Sorry for the noise.
Regards,
Philipp
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.