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?
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.
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