"Failed to pin framebuffer with error -12" messages and "BUG: kernel NULL pointer dereference, address: 0000000000000038"
Running kernel 6.1rc6 + the single patch from @agd5f (#2213 (comment 1643062)) likely fixing the suspend/resume issues I observe issues when just connecting to an external USB-C monitor (incl. KVM).
This is the dmesg of a few hours of machine runtime:
thinkpad_lockups_kernel_6_1_rc6__patched__framebuffer_with_error_-12.log
The machine was booted up with the external monitor (4k, 120hz) connected at boot and there were no issues.
at Nov 22 12:30:02 thinkpadt14s kernel: usb 6-1.1: USB disconnect, device number 4
the external monitor went into power save due to inactivity.
and work was resumed at around Nov 22 12:59:22 thinkpadt14s kernel: usb 6-1: new high-speed USB device number 13 using xhci_hcd
, again with no issues.
At Nov 22 14:05:51 thinkpadt14s kernel: usb 6-1: USB disconnect, device number 13
I unplugged / plugged the USB-C cable twice and saw some of the mentioned messages "Failed to pin framebuffer with error -12":
Nov 22 14:06:13 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 000000003c99f659 pin failed
Nov 22 14:06:13 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:06:13 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fc27d962 pin failed
Nov 22 14:06:13 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:06:14 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000d0094231 pin failed
Nov 22 14:06:14 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:06:14 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fc27d962 pin failed
Nov 22 14:06:14 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
I then switched between laptop LCD and external monitor via the Fn+F7 key (the kde_osd_ser crash is a known bug - https://bugs.kde.org/show_bug.cgi?id=461068 - btw) and then saw a constant burst of the mentioned error messages:
Nov 22 14:08:44 thinkpadt14s kernel: kscreen_osd_ser[77534]: segfault at 55007669348d ip 00007faca75426ff sp 00007fff74844608 error 4 in libQt5Gui.so.5.15.7[7faca74f7000+45e000] likely on CPU 2 (core 1, socket 0)
Nov 22 14:08:44 thinkpadt14s kernel: Code: 8b 44 24 68 eb d5 90 0f 1f 40 00 f3 0f 1e fa 48 8b 47 08 89 70 58 c3 0f 1f 40 00 f3 0f 1e fa 48 8b 7f 08 40 0f b6 f6 48 8b 07 <ff> 60 20 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48
Nov 22 14:08:51 thinkpadt14s kernel: kscreen_osd_ser[77705]: segfault at 20 ip 00007fb46a9426ff sp 00007fff5256ee78 error 4 in libQt5Gui.so.5.15.7[7fb46a8f7000+45e000] likely on CPU 9 (core 4, socket 0)
Nov 22 14:08:51 thinkpadt14s kernel: Code: 8b 44 24 68 eb d5 90 0f 1f 40 00 f3 0f 1e fa 48 8b 47 08 89 70 58 c3 0f 1f 40 00 f3 0f 1e fa 48 8b 7f 08 40 0f b6 f6 48 8b 07 <ff> 60 20 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48
Nov 22 14:08:57 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000328cb1ea pin failed
Nov 22 14:08:57 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:08:57 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fa895d70 pin failed
Nov 22 14:08:57 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:08:57 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000b6ddc6b1 pin failed
Nov 22 14:08:57 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:08:57 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fa895d70 pin failed
Nov 22 14:08:57 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:08:58 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000e7e19a14 pin failed
Nov 22 14:08:58 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:08:58 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fa895d70 pin failed
Nov 22 14:08:58 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:09:00 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 0000000095f335c9 pin failed
Nov 22 14:09:00 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:09:00 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fa895d70 pin failed
Nov 22 14:09:00 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:09:00 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fa895d70 pin failed
Nov 22 14:09:00 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:09:00 thinkpadt14s kernel: amdgpu 0000:06:00.0: amdgpu: 00000000fa895d70 pin failed
[...]
Nov 22 14:09:36 thinkpadt14s kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12
Nov 22 14:48:41 thinkpadt14s kernel: kauditd_printk_skb: 14 callbacks suppressed
Nov 22 14:49:32 thinkpadt14s kernel: kauditd_printk_skb: 14 callbacks suppressed
Nov 22 14:49:37 thinkpadt14s kernel: wlp3s0: deauthenticating from 9a:9b:cb:92:17:65 by local choice (Reason: 3=DEAUTH_LEAVING)
Nov 22 14:49:37 thinkpadt14s kernel: kauditd_printk_skb: 25 callbacks suppressed
Nov 22 14:49:38 thinkpadt14s kernel: watchdog: watchdog0: watchdog did not stop!
First the machine seemed to work fine, but X froze around 14:48 (I was able to switch to another TTY and reboot the machine though.