Thinkpad P14s Gen 4 won't boot with 6.11+

I have Thinkpad P14s Gen 4 with AMD CPU and since kernel 6.11 and newer, the laptop won’t boot unless nomodesetting is added in GRUB. Recent update removed kernel 6.10, which worked, so now the laptop is basically a brick because it cannot be used with GPU properly working. I tried to get logs using journalctl -b -1, but boots without nomodesetting don’t leave any logs. Regular boot stops printing out messages right after kernel modesetting started appears. CapsLock is responsive but screen is stuck. Sometimes CapsLock starts blinking, which might suggest maybe kernel panic. What can I do to get some logs and resolve this?

CPU: AMD Ryzen 7 PRO 7840U
GPU: AMD Radeon 780M

Edit the kernel command options from the edit option in the grub menu and add the “nomodeset” for your boot.

Once booted then add that option to all the installed kernels for booting with
sudo grubby --args="nomodeset" --update-kernel=ALL
Grubby updates all the appropriate locations and the entry would be available and used for the next boot.

That will just make the workaround I am using permanent, right? I need to somehow diagnose the issue and I do not know how, because I cannot get any logs from the boot without nomodeset.

Can you enable ssh then try booting and when it fails connect via ssh from another system to collect the output from sudo dmesg and journalctl -b 0 to peruse for what is happening.

The symptom seems to indicate a graphics problem and if you were to post the output of
inxi -Fzxx it probably would assist in troubleshooting.
Please post that output as preformatted text. Paste the text then highlight it and click the </> button to retain the on-screen formatting.

I should have think of that. It worked. It took quite some time for it to get to the point it got IP address.

System:
  Kernel: 6.12.11-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
  Console: pty pts/1 DM: GDM Distro: Fedora Linux 41 (Workstation Edition)
Machine:
  Type: Laptop System: LENOVO product: 21K5000DCK v: ThinkPad P14s Gen 4 serial: <filter> Chassis:
    type: 10 serial: <filter>
  Mobo: LENOVO model: 21K5000DCK v: SDK0T76530 WIN serial: <filter>
    part-nu: LENOVO_MT_21K5_BU_Think_FM_ThinkPad P14s Gen 4 UEFI: LENOVO v: R2FET61W (1.41 )
    date: 11/15/2024
Battery:
  ID-1: BAT0 charge: 46.2 Wh (87.2%) condition: 53.0/52.5 Wh (101.0%) volts: 16.6 min: 15.4
    model: Celxpert 5B10W51866 serial: <filter> status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics bits: 64 type: MT MCP
    arch: Zen 4 rev: 1 cache: L1: 512 KiB L2: 8 MiB L3: 16 MiB
  Speed (MHz): avg: 400 min/max: 400/5132 boost: enabled cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400 14: 400 15: 400 16: 400
    bogomips: 105397
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Phoenix1 vendor: Lenovo driver: N/A arch: RDNA-3
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 64:00.0 chip-ID: 1002:15bf
  Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 bus-ID: 3-1:2 chip-ID: 04f2:b7c0
  Display: server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4 driver: X: loaded: radeon
    unloaded: modesetting alternate: fbdev,vesa gpu: N/A tty: 131x91
  API: OpenGL Message: GL data unavailable in console for root.
  API: EGL Message: EGL data unavailable in console, eglinfo missing.
  Info: Tools: api: glxinfo gpu: radeontop x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt Radeon High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 64:00.1
    chip-ID: 1002:1640
  Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
    driver: snd_pci_ps v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 64:00.5 chip-ID: 1022:15e2
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 64:00.6
    chip-ID: 1022:15e3
  API: ALSA v: k6.12.11-200.fc41.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.2.7 status: off with: 1: pipewire-pulse status: off 2: wireplumber
    status: off 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet vendor: Lenovo
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 6000 bus-ID: 01:00.0
    chip-ID: 10ec:8168
  IF: enp1s0f0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Qualcomm QCNFA765 Wireless Network Adapter vendor: Lenovo driver: ath11k_pci
    v: kernel pcie: speed: 8 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 17cb:1103
  IF: wlp2s0 state: down mac: <filter>
  IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
Bluetooth:
  Device-1: USI driver: btusb v: 0.8 type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 1-3.1:4
    chip-ID: 10ab:9309
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.3 lmp-v: 12
Drives:
  Local Storage: total: 1.86 TiB used: 404.17 GiB (21.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL22T0HDLB-00BLL size: 1.86 TiB speed: 63.2 Gb/s
    lanes: 4 serial: <filter> temp: 36.9 C
Partition:
  ID-1: / size: 959.22 GiB used: 404.12 GiB (42.1%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 49.9 MiB (19.5%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 977 MiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p6
Sensors:
  Src: /sys System Temperatures: cpu: 36.8 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 56 GiB note: est. available: 54.56 GiB used: 1.23 GiB (2.2%)
  Processes: 272 Power: uptime: 7m wakeups: 0 Init: systemd v: 256 target: graphical (5)
    default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 57 Compilers: clang: 19.1.7
    alt: 17 gcc: 14.2.1 Shell: Sudo v: 1.9.15p5 running-in: pty pts/1 inxi: 3.3.37

dmesg shows this
journalctl -b 0 shows this

This shows one GPU (AMD) and that no driver is loaded.
Please show us the output of lspci -nnk | grep -i -A4 vga

The part of dmesg that begins here and applies to the gpu is the only relevant part for this discussion and I asked that you look at it and send what was relevant. Note that this is only a quick look and not the full applicable info.

[    3.859731] amdgpu 0000:64:00.0: amdgpu: Fetched VBIOS from VFCT
[    3.861407] amdgpu: ATOM BIOS: 113-PHXGENERIC-001
[    3.867701] EXT4-fs (nvme0n1p5): orphan cleanup on readonly fs
[    3.868906] EXT4-fs (nvme0n1p5): mounted filesystem 45532d50-8c0c-4bdf-8342-3c938f14cf4c ro with ordered data mode. Quota mode: none.
[    3.878267] Console: switching to colour dummy device 80x25
[    3.888786] amdgpu 0000:64:00.0: vgaarb: deactivate vga console
[    3.888799] amdgpu 0000:64:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled
[    3.888860] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[    3.888886] amdgpu 0000:64:00.0: amdgpu: VRAM: 8192M 0x0000008000000000 - 0x00000081FFFFFFFF (8192M used)
[    3.888891] amdgpu 0000:64:00.0: amdgpu: GART: 512M 0x00007FFF00000000 - 0x00007FFF1FFFFFFF
[    3.888951] [drm] Detected VRAM RAM=8192M, BAR=8192M
[    3.888962] [drm] RAM width 128bits LPDDR5
[    3.889471] [drm] amdgpu: 8192M of VRAM memory ready
[    3.889481] [drm] amdgpu: 27933M of GTT memory ready.
[    3.889522] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    3.890009] [drm] PCIE GART of 512M enabled (table at 0x00000081FFD00000).
[    3.890511] [drm] Loading DMUB firmware via PSP: version=0x08001D00
[    3.890881] [drm] Found VCN firmware Version ENC: 1.10 DEC: 5 VEP: 0 Revision: 0
[    3.915329] amdgpu 0000:64:00.0: amdgpu: reserve 0x4000000 from 0x81f8000000 for PSP TMR
[    4.424637] amdgpu 0000:64:00.0: amdgpu: RAS: optional ras ta ucode is not available
[    4.432320] amdgpu 0000:64:00.0: amdgpu: RAP: optional rap ta ucode is not available
[    4.432330] amdgpu 0000:64:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[    4.462670] amdgpu 0000:64:00.0: amdgpu: SMU is initialized successfully!
[    4.462682] [drm] Seamless boot condition check passed
[    4.463932] [drm] Display Core v3.2.301 initialized on DCN 3.1.4
[    4.463938] [drm] DP-HDMI FRL PCON supported
[    4.466099] [drm] DMUB hardware initialized: version=0x08001D00
[    4.536119] [drm] PSR support 1, DC PSR ver 0, sink PSR ver 1 DPCD caps 0x30 su_y_granularity 4
[    7.694363] amdgpu 0000:64:00.0: amdgpu: MES failed to respond to msg=SET_HW_RSRC
[    7.694384] [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* hw_init of IP block <gfx_v11_0> failed -110
[    7.695859] amdgpu 0000:64:00.0: amdgpu: amdgpu_device_ip_init failed
[    7.695874] amdgpu 0000:64:00.0: amdgpu: Fatal error during GPU init
[    7.695914] amdgpu 0000:64:00.0: amdgpu: amdgpu: finishing device.
[    7.696603] [drm] pre_validate_dsc:1589 MST_DSC dsc precompute is not needed
[    7.696710] ------------[ cut here ]------------
[    7.696719] WARNING: CPU: 11 PID: 535 at drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:631 amdgpu_irq_put+0x46/0x70 [amdgpu]
[    7.697505] Modules linked in: amdgpu(+) amdxcp i2c_algo_bit drm_ttm_helper ttm drm_exec gpu_sched drm_suballoc_helper drm_buddy drm_display_helper cec crct10dif_pclmul crc32_pclmul crc32c_intel nvme polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 ucsi_acpi typec_ucsi sha256_ssse3 nvme_core sha1_ssse3 typec video sp5100_tco nvme_auth wmi serio_raw pkcs8_key_parser fuse
[    7.697621] CPU: 11 UID: 0 PID: 535 Comm: (udev-worker) Not tainted 6.12.11-200.fc41.x86_64 #1
[    7.697638] Hardware name: LENOVO 21K5000DCK/21K5000DCK, BIOS R2FET61W (1.41 ) 11/15/2024
[    7.697651] RIP: 0010:amdgpu_irq_put+0x46/0x70 [amdgpu]
[    7.698434] Code: c0 74 33 48 8b 4e 10 48 83 39 00 74 29 89 d1 48 8d 04 88 8b 08 85 c9 74 11 f0 ff 08 74 07 

Here it is:

pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
64:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev dd)
	Subsystem: Lenovo Device [17aa:50da]
	Kernel modules: amdgpu
64:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
	Subsystem: Lenovo Device [17aa:50d9]