Kernel upgrade (:latest) breaking suspend with AMDGPU

Hello @here! (or is @there?!)

I am somewhat new to fedora… Well, actually I’ve just recently installed the f40 and never really did use it before with exception of short period some 10 years ago when my class was given a DVD of it (could you believe it?! :wink:)

Can you please share your ideas with me on this problem? :slight_smile:

BEHAVIOR: Computer seemingly doesn’t suspend. Keyboard/mouse light is on. Fans keep going. Activity LED is shining (instead of blinking). No video output, no reaction to any shortcuts/presses/shouting/insults leaving the computer open for hard reset (AFAIK)

I might’ve stumbled into a pickle that I am unable to solve myself.
3 days ago I did run $ sudo dnf upgrade --refresh (knowing possible consequences) and ended up going from kernel 6.8.11-300 --> kernel-6.9.4-200

Dnf history:

Return-Code    : Success
Releasever     : 40
Command Line   : upgrade --refresh
Comment        : 
Packages Altered:
    Install  kernel-6.9.4-200.fc40.x86_64                  @updates
    Install  kernel-core-6.9.4-200.fc40.x86_64             @updates
    Install  kernel-modules-6.9.4-200.fc40.x86_64          @updates
    Install  kernel-modules-core-6.9.4-200.fc40.x86_64     @updates
    Install  kernel-modules-extra-6.9.4-200.fc40.x86_64    @updates
    Upgrade  alsa-lib-1.2.12-1.fc40.i686                   @updates
    Upgraded alsa-lib-1.2.11-2.fc40.i686                   @@System
    Upgrade  alsa-lib-1.2.12-1.fc40.x86_64                 @updates
    Upgraded alsa-lib-1.2.11-2.fc40.x86_64                 @@System
    Upgrade  alsa-ucm-1.2.12-1.fc40.noarch                 @updates
    Upgraded alsa-ucm-1.2.11-2.fc40.noarch                 @@System
    Upgrade  alsa-utils-1.2.12-1.fc40.x86_64               @updates
    Upgraded alsa-utils-1.2.11-1.fc40.x86_64               @@System
    Upgrade  glibc-2.39-15.fc40.i686                       @updates
    Upgraded glibc-2.39-13.fc40.i686                       @@System
    Upgrade  glibc-2.39-15.fc40.x86_64                     @updates
    Upgraded glibc-2.39-13.fc40.x86_64                     @@System
    Upgrade  glibc-all-langpacks-2.39-15.fc40.x86_64       @updates
    Upgraded glibc-all-langpacks-2.39-13.fc40.x86_64       @@System
    Upgrade  glibc-common-2.39-15.fc40.x86_64              @updates
    Upgraded glibc-common-2.39-13.fc40.x86_64              @@System
    Upgrade  glibc-devel-2.39-15.fc40.x86_64               @updates
    Upgraded glibc-devel-2.39-13.fc40.x86_64               @@System
    Upgrade  glibc-gconv-extra-2.39-15.fc40.i686           @updates
    Upgraded glibc-gconv-extra-2.39-13.fc40.i686           @@System
    Upgrade  glibc-gconv-extra-2.39-15.fc40.x86_64         @updates
    Upgraded glibc-gconv-extra-2.39-13.fc40.x86_64         @@System
    Upgrade  glibc-headers-x86-2.39-15.fc40.noarch         @updates
    Upgraded glibc-headers-x86-2.39-13.fc40.noarch         @@System
    Upgrade  kernel-headers-6.9.4-200.fc40.x86_64          @updates
    Upgraded kernel-headers-6.8.3-300.fc40.x86_64          @@System
    Upgrade  libdav1d-1.4.3-1.fc40.i686                    @updates
    Upgraded libdav1d-1.4.0-1.fc40.i686                    @@System
    Upgrade  libdav1d-1.4.3-1.fc40.x86_64                  @updates
    Upgraded libdav1d-1.4.0-1.fc40.x86_64                  @@System
    Upgrade  libevdev-1.13.2-2.fc40.x86_64                 @updates
    Upgraded libevdev-1.13.1-4.fc40.x86_64                 @@System
    Upgrade  libnsl-2.39-15.fc40.i686                      @updates
    Upgraded libnsl-2.39-13.fc40.i686                      @@System
    Upgrade  libnsl-2.39-15.fc40.x86_64                    @updates
    Upgraded libnsl-2.39-13.fc40.x86_64                    @@System
    Upgrade  libxml2-2.12.8-1.fc40.i686                    @updates
    Upgraded libxml2-2.12.7-1.fc40.i686                    @@System
    Upgrade  libxml2-2.12.8-1.fc40.x86_64                  @updates
    Upgraded libxml2-2.12.7-1.fc40.x86_64                  @@System
    Upgrade  nspr-4.35.0-24.fc40.i686                      @updates
    Upgraded nspr-4.35.0-23.fc40.i686                      @@System
    Upgrade  nspr-4.35.0-24.fc40.x86_64                    @updates
    Upgraded nspr-4.35.0-23.fc40.x86_64                    @@System
    Upgrade  nss-3.101.0-1.fc40.i686                       @updates
    Upgraded nss-3.100.0-1.fc40.i686                       @@System
    Upgrade  nss-3.101.0-1.fc40.x86_64                     @updates
    Upgraded nss-3.100.0-1.fc40.x86_64                     @@System
    Upgrade  nss-softokn-3.101.0-1.fc40.i686               @updates
    Upgraded nss-softokn-3.100.0-1.fc40.i686               @@System
    Upgrade  nss-softokn-3.101.0-1.fc40.x86_64             @updates
    Upgraded nss-softokn-3.100.0-1.fc40.x86_64             @@System
    Upgrade  nss-softokn-freebl-3.101.0-1.fc40.i686        @updates
    Upgraded nss-softokn-freebl-3.100.0-1.fc40.i686        @@System
    Upgrade  nss-softokn-freebl-3.101.0-1.fc40.x86_64      @updates
    Upgraded nss-softokn-freebl-3.100.0-1.fc40.x86_64      @@System
    Upgrade  nss-sysinit-3.101.0-1.fc40.x86_64             @updates
    Upgraded nss-sysinit-3.100.0-1.fc40.x86_64             @@System
    Upgrade  nss-util-3.101.0-1.fc40.i686                  @updates
    Upgraded nss-util-3.100.0-1.fc40.i686                  @@System
    Upgrade  nss-util-3.101.0-1.fc40.x86_64                @updates
    Upgraded nss-util-3.100.0-1.fc40.x86_64                @@System
    Upgrade  paps-0.8.0-9.fc40.x86_64                      @updates
    Upgraded paps-0.8.0-8.fc40.x86_64                      @@System
    Upgrade  thunderbird-115.12.0-2.fc40.x86_64            @updates
    Upgraded thunderbird-115.11.0-1.fc40.x86_64            @@System
    Upgrade  thunderbird-librnp-rnp-115.12.0-2.fc40.x86_64 @updates
    Upgraded thunderbird-librnp-rnp-115.11.0-1.fc40.x86_64 @@System

Problem Reporting:

> Suspend Stats
success: 1
fail: 1
failed_freeze: 1
failed_prepare: 0
failed_suspend: 0
failed_suspend_late: 0
failed_suspend_noirq: 0
failed_resume_noirq: 0
failed_resume_early: 0
failed_resume: 1
failures:
  last_failed_dev:	0000:03:00.0
			
  last_failed_errno:	-16
			0
  last_failed_step:	resume
			freeze

lspci

03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] (rev c8) (prog-if 00 [VGA controller])
	Subsystem: XFX Limited RX-79XMERCB9 [SPEEDSTER MERC 310 RX 7900 XTX]
	Flags: bus master, fast devsel, latency 0, IRQ 98, IOMMU group 14
	Memory at f000000000 (64-bit, prefetchable) [size=32G]
	Memory at f800000000 (64-bit, prefetchable) [size=256M]
	I/O ports at f000 [size=256]
	Memory at f6b00000 (32-bit, non-prefetchable) [size=1M]
	Expansion ROM at f6c00000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

Drivers

 dnf list --installed | grep -E 'mesa|amdgpu'                                                                                                                                                                                                                                                                           
mesa-demos.x86_64                                    9.0.0-6.fc40                        @fedora                 
mesa-dri-drivers.i686                                24.1.1-5.fc40                       @updates                
mesa-dri-drivers.x86_64                              24.1.1-5.fc40                       @updates                
mesa-filesystem.i686                                 24.1.1-5.fc40                       @updates                
mesa-filesystem.x86_64                               24.1.1-5.fc40                       @updates                
mesa-libEGL.i686                                     24.1.1-5.fc40                       @updates                
mesa-libEGL.x86_64                                   24.1.1-5.fc40                       @updates                
mesa-libGL.i686                                      24.1.1-5.fc40                       @updates                
mesa-libGL.x86_64                                    24.1.1-5.fc40                       @updates                
mesa-libGLU.x86_64                                   9.0.3-4.fc40                        @fedora                 
mesa-libOSMesa.i686                                  24.1.1-5.fc40                       @updates                
mesa-libOSMesa.x86_64                                24.1.1-5.fc40                       @updates                
mesa-libgbm.i686                                     24.1.1-5.fc40                       @updates                
mesa-libgbm.x86_64                                   24.1.1-5.fc40                       @updates                
mesa-libglapi.i686                                   24.1.1-5.fc40                       @updates                
mesa-libglapi.x86_64                                 24.1.1-5.fc40                       @updates                
mesa-va-drivers.i686                                 24.1.1-5.fc40                       @updates                
mesa-va-drivers.x86_64                               24.1.1-5.fc40                       @updates                
mesa-vulkan-drivers.i686                             24.1.1-5.fc40                       @updates                
mesa-vulkan-drivers.x86_64                           24.1.1-5.fc40                       @updates 

Errors that I think might be relevant:

dmesg
[    4.734501] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000003d, smu fw if version = 0x00000040, smu fw program = 0, smu fw version = 0x004e7e00 (78.126.0)
[    4.734504] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
journalctl
čen 20 20:19:48 heim kernel: [drm:amdgpu_device_ip_suspend_phase2 [amdgpu]] *ERROR* suspend of IP block <smu> failed -22
čen 20 20:19:50 heim kernel: [drm:amdgpu_device_ip_suspend_phase2 [amdgpu]] *ERROR* suspend of IP block <psp> failed -22

Did anyone face something similar? Any educated guesses whether I might be on the right track? Anything appreciated really! Also ask of me anything and I shall provide! :slight_smile:

I didn’t try any special workaround in particular due to not being able to google anything sensible.

Removed optical-media, radeon

Hi can you try to boot the previous kernel? And if you can’t, or just want to check on 6.9.4, try pressing escape key when seemingly hung after suspend, to get the text output of the resume command. If it’s waiting indefinitely then you need to modify one of your kernel arg’s. If you can boot into the previous kernel then you will need to modify the commandline arguements

Thanks for the quick reply (much appreciated :slight_smile: )

Switched to older kernel

uname -r                                                                                                                                                                                                                                            
6.8.11-300.fc40.x86_64

When I go to suspend now, monitors go immediately blank and followed by “no signal” quite fast.

There is no response to pressing escape. (I assume we’d like to see terminal output)
However the system doesn’t really go to suspend…

But there is big change - System returns to desktop after a while

čen 20 23:41:46 heim systemd-logind[1089]: The system will suspend now!
čen 20 23:41:46 heim ModemManager[1201]: <msg> [sleep-monitor-systemd] system is about to suspend
čen 20 23:41:46 heim systemd[1]: Starting systemd-suspend.service - System Suspend...
čen 20 23:41:46 heim systemd-sleep[13059]: Performing sleep operation 'suspend'...
čen 20 23:41:46 heim kernel: PM: suspend entry (deep)
čen 20 23:42:06 heim kernel: PM: suspend exit
čen 20 23:42:06 heim kernel: PM: suspend entry (s2idle)
čen 20 23:42:26 heim kernel: PM: suspend exit
čen 20 23:42:26 heim systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
čen 20 23:42:26 heim systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
čen 20 23:42:26 heim systemd[1]: Failed to start systemd-suspend.service - System Suspend.
čen 20 23:42:26 heim systemd[1]: Dependency failed for suspend.target - Suspend.
čen 20 23:42:26 heim systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'.
čen 20 23:42:26 heim audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
čen 20 23:42:26 heim systemd[1]: systemd-suspend.service: Consumed 1.113s CPU time.
čen 20 23:42:26 heim systemd-logind[1089]: Operation 'suspend' finished.

Hi please try cat /proc/cmdline then post the result here using the </> button

BOOT_IMAGE=(hd4,gpt2)/vmlinuz-6.8.11-300.fc40.x86_64 root=UUID=6ca1c3c9-d91d-47c1-a56c-7c8aff0f56a9 ro rootflags=subvol=root rhgb quiet amdgpu.ppfeaturemask=0xffffffff

It’s worth mentioning that I have this problem both with and without amdgpu.ppfeaturemask=0xffffffff (tested that one)

I doubt this is specific to Fedora, so you should report this issue at https://gitlab.freedesktop.org/drm/amd/-/issues/.

1 Like