<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:11pt;color:#0078D7;margin:5pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Please try the latest patch set on this bug:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://gitlab.freedesktop.org/drm/amd/-/issues/1230#note_844139" id="LPlnk">https://gitlab.freedesktop.org/drm/amd/-/issues/1230</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alex<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Harvey <harv@gmx.de><br>
<b>Sent:</b> Wednesday, March 17, 2021 12:20 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> Amdgpu kernel oops and freezing on system suspend and hibernate</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello,<br>
<br>
I own a laptop, a MSI Bravo 17 A4DDR/MS-17FK<br>
with Ryzen 7 4800U and hybrid graphics on a Radeon RX 5500M.<br>
<br>
DMI: Micro-Star International Co., Ltd. Bravo 17 A4DDR/MS-17FK, BIOS <br>
E17FKAMS.117 10/29/2020<br>
<br>
The system does not hibernate, it just freezes. Starting after a reset <br>
it then resumes from the swap partition and gets the system up, but <br>
shortly after that freezes again.<br>
<br>
Even suspending is not working properly - on archlinux with kernel <br>
5.11.6 and on 5.12-rc1 I see the following kernel oopses after resume:<br>
<br>
The output of dmesg -l err,warn is:<br>
<br>
[11020.188925] ------------[ cut here ]------------<br>
[11020.188929] WARNING: CPU: 0 PID: 7736 at <br>
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:2574 <br>
dc_link_set_backlight_level+0x8a/0xf0 [amdgpu]<br>
[11020.189314] Modules linked in: rfcomm snd_hda_codec_realtek <br>
snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi cmac algif_hash <br>
algif_skcipher af_alg bnep intel_rapl_msr intel_rapl_common iwlmvm <br>
snd_hda_intel snd_intel_dspcfg soundwire_intel <br>
soundwire_generic_allocation soundwire_cadence nls_iso8859_1 vfat <br>
mac80211 snd_hda_codec fat edac_mce_amd uvcvideo btusb snd_hda_core <br>
kvm_amd btrtl libarc4 videobuf2_vmalloc btbcm snd_hwdep videobuf2_memops <br>
hid_multitouch soundwire_bus videobuf2_v4l2 btintel pktcdvd iwlwifi <br>
snd_soc_core kvm videobuf2_common bluetooth snd_compress videodev <br>
ac97_bus snd_pcm_dmaengine snd_pcm snd_timer irqbypass msi_wmi <br>
ecdh_generic joydev mousedev cfg80211 mc ecc rapl snd psmouse <br>
snd_rn_pci_acp3x pcspkr sparse_keymap k10temp i2c_piix4 snd_pci_acp3x <br>
soundcore rfkill tpm_crb tpm_tis tpm_tis_core pinctrl_amd i2c_hid <br>
acpi_cpufreq mac_hid soc_button_array vboxnetflt(OE) vboxnetadp(OE) <br>
vboxdrv(OE) usbip_host usbip_core sg fuse crypto_user bpf_preload <br>
ip_tables x_tables<br>
[11020.189400]  ext4 crc32c_generic crc16 mbcache jbd2 sr_mod cdrom uas <br>
usb_storage dm_crypt cbc encrypted_keys dm_mod trusted tpm <br>
crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel <br>
aesni_intel crypto_simd cryptd glue_helper serio_raw ccp xhci_pci <br>
xhci_pci_renesas rng_core wmi video usbhid r8168(OE) amdgpu <br>
drm_ttm_helper ttm gpu_sched i2c_algo_bit drm_kms_helper syscopyarea <br>
sysfillrect sysimgblt fb_sys_fops cec drm agpgart<br>
[11020.189445] CPU: 0 PID: 7736 Comm: systemd-sleep Tainted: G <br>
  OE     5.11.6-arch1-1 #1<br>
[11020.189450] Hardware name: Micro-Star International Co., Ltd. Bravo <br>
17 A4DDR/MS-17FK, BIOS E17FKAMS.117 10/29/2020<br>
[11020.189453] RIP: 0010:dc_link_set_backlight_level+0x8a/0xf0 [amdgpu]<br>
[11020.189792] Code: 88 03 00 00 31 c0 48 8d 96 f0 01 00 00 48 8b 0a 48 <br>
85 c9 74 06 48 3b 59 08 74 20 83 c0 01 48 81 c2 d0 04 00 00 83 f8 06 75 <br>
e3 <0f> 0b 45 31 e4 5b 44 89 e0 5d 41 5c 41 5d 41 5e c3 48 98 48 69 c0<br>
[11020.189795] RSP: 0018:ffffc1f003373c38 EFLAGS: 00010246<br>
[11020.189799] RAX: 0000000000000006 RBX: ffff9e244e0ea800 RCX: <br>
0000000000000000<br>
[11020.189802] RDX: ffff9e2582fe1ed0 RSI: ffff9e2582fe0000 RDI: <br>
0000000000000000<br>
[11020.189804] RBP: ffff9e244e0f0000 R08: 00000000000000f9 R09: <br>
ffff9e244323a000<br>
[11020.189806] R10: ffff9e244323ae40 R11: 0000000001320122 R12: <br>
000000000000fa01<br>
[11020.189808] R13: 0000000000000000 R14: 000000000000fa42 R15: <br>
0000000000000003<br>
[11020.189810] FS:  00007f6219470a40(0000) GS:ffff9e275f600000(0000) <br>
knlGS:0000000000000000<br>
[11020.189813] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br>
[11020.189815] CR2: 00007fb7a8980180 CR3: 0000000109cae000 CR4: <br>
0000000000350ef0<br>
[11020.189818] Call Trace:<br>
[11020.189828]  amdgpu_dm_backlight_update_status+0xb4/0xc0 [amdgpu]<br>
[11020.190185]  backlight_suspend+0x6a/0x80<br>
[11020.190192]  ? brightness_store+0x80/0x80<br>
[11020.190197]  dpm_run_callback+0x4c/0x150<br>
[11020.190202]  __device_suspend+0x11c/0x4d0<br>
[11020.190205]  dpm_suspend+0xef/0x230<br>
[11020.190209]  dpm_suspend_start+0x77/0x80<br>
[11020.190213]  suspend_devices_and_enter+0x109/0x800<br>
[11020.190219]  pm_suspend.cold+0x329/0x374<br>
[11020.190225]  state_store+0x71/0xd0<br>
[11020.190230]  kernfs_fop_write_iter+0x124/0x1b0<br>
[11020.190236]  new_sync_write+0x159/0x1f0<br>
[11020.190241]  vfs_write+0x1fc/0x2a0<br>
[11020.190245]  ksys_write+0x67/0xe0<br>
[11020.190249]  do_syscall_64+0x33/0x40<br>
[11020.190255]  entry_SYSCALL_64_after_hwframe+0x44/0xa9<br>
[11020.190261] RIP: 0033:0x7f6219de10f7<br>
[11020.190265] Code: 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f <br>
1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f <br>
05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24<br>
[11020.190268] RSP: 002b:00007fff7ae91318 EFLAGS: 00000246 ORIG_RAX: <br>
0000000000000001<br>
[11020.190272] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: <br>
00007f6219de10f7<br>
[11020.190275] RDX: 0000000000000004 RSI: 00007fff7ae91400 RDI: <br>
0000000000000004<br>
[11020.190276] RBP: 00007fff7ae91400 R08: 000055e3a1261b70 R09: <br>
00007f6219e770c0<br>
[11020.190278] R10: 00007f6219e76fc0 R11: 0000000000000246 R12: <br>
0000000000000004<br>
[11020.190280] R13: 000055e3a125d3c0 R14: 0000000000000004 R15: <br>
00007f6219eb3700<br>
[11020.190284] ---[ end trace e7dfefa87a0c3feb ]---<br>
[11020.853160] IRQ 85: no longer affine to CPU1<br>
[11020.856648] IRQ 86: no longer affine to CPU2<br>
[11020.859859] IRQ 87: no longer affine to CPU3<br>
[11020.862584] IRQ 88: no longer affine to CPU4<br>
[11020.865211] IRQ 89: no longer affine to CPU5<br>
[11020.867656] IRQ 90: no longer affine to CPU6<br>
[11020.870520] IRQ 91: no longer affine to CPU7<br>
[11020.873539] IRQ 92: no longer affine to CPU8<br>
[11020.876530] IRQ 93: no longer affine to CPU9<br>
[11020.879551] IRQ 94: no longer affine to CPU10<br>
[11023.064667] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not <br>
matched<br>
<br>
the lspci -k output is:<br>
<br>
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex<br>
        Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex<br>
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU<br>
        Subsystem: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU<br>
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe <br>
Dummy Host Bridge<br>
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP <br>
Bridge<br>
        Kernel driver in use: pcieport<br>
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe <br>
Dummy Host Bridge<br>
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP <br>
Bridge<br>
        Kernel driver in use: pcieport<br>
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP <br>
Bridge<br>
        Kernel driver in use: pcieport<br>
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP <br>
Bridge<br>
        Kernel driver in use: pcieport<br>
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe <br>
Dummy Host Bridge<br>
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal <br>
PCIe GPP Bridge to Bus<br>
        Kernel driver in use: pcieport<br>
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal <br>
PCIe GPP Bridge to Bus<br>
        Kernel driver in use: pcieport<br>
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller <br>
(rev 51)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: piix4_smbus<br>
        Kernel modules: i2c_piix4, sp5100_tco<br>
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge <br>
(rev 51)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 0<br>
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 1<br>
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 2<br>
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 3<br>
        Kernel driver in use: k10temp<br>
        Kernel modules: k10temp<br>
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 4<br>
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 5<br>
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 6<br>
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device <br>
24: Function 7<br>
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL <br>
Upstream Port of PCI Express Switch (rev c1)<br>
        Kernel driver in use: pcieport<br>
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL <br>
Downstream Port of PCI Express Switch<br>
        Kernel driver in use: pcieport<br>
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi <br>
14 [Radeon RX 5500/5500M / Pro 5500M] (rev c1)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: amdgpu<br>
        Kernel modules: amdgpu<br>
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 <br>
HDMI Audio<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: snd_hda_intel<br>
        Kernel modules: snd_hda_intel<br>
04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)<br>
        Subsystem: Intel Corporation Device 0084<br>
        Kernel driver in use: iwlwifi<br>
        Kernel modules: iwlwifi<br>
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. <br>
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: r8168<br>
        Kernel modules: r8169, r8168<br>
06:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe <br>
SSD Controller SM981/PM981/PM983<br>
        Subsystem: Samsung Electronics Co Ltd Device a801<br>
        Kernel driver in use: nvme<br>
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. <br>
[AMD/ATI] Renoir (rev c6)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: amdgpu<br>
        Kernel modules: amdgpu<br>
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family <br>
17h (Models 10h-1fh) Platform Security Processor<br>
        Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models <br>
10h-1fh) Platform Security Processor<br>
        Kernel driver in use: ccp<br>
        Kernel modules: ccp<br>
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: xhci_hcd<br>
        Kernel modules: xhci_pci<br>
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: xhci_hcd<br>
        Kernel modules: xhci_pci<br>
07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] <br>
Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x<br>
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h <br>
(Models 10h-1fh) HD Audio Controller<br>
        DeviceName: HD Audio Controller<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: snd_hda_intel<br>
        Kernel modules: snd_hda_intel<br>
08:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA <br>
Controller [AHCI mode] (rev 81)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: ahci<br>
08:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA <br>
Controller [AHCI mode] (rev 81)<br>
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12ac<br>
        Kernel driver in use: ahci<br>
<br>
I suppose the amdgpu module is at fault here?<br>
<br>
Greetings<br>
Harvey<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>