Increased game crashing since Fedora 40 upgrade (LLVM)

Since upgrading my system to Fedora 40, I’ve been noticing increased issues with playing games on Steam.

Most of the time, gameplay is fine but the rate of crashes occurring has increased from almost never to frequently.

The games typically crash to desktop and do not cause any other system stability, so this is more an annoyance than a critical issue.

When I take a look at my dmesg I can see a few things frequently occur, with a sequence like this one usually appearing immediately after a crash:

[   54.810318] traps: gldriverquery[4305] general protection fault ip:7f84e158b73f sp:7ffe5b4983e0 error:0 in libLLVM.so.18.1[7f84e120c000+3af8000]
[   55.781810] gldriverquery[4486]: segfault at 83e58965 ip 00000000e9570552 sp 00000000ffd6a560 error 4 in libLLVM.so.18.1[e9226000+3dc9000] likely on CPU 23 (core 13, socket 0)
[   55.781826] Code: e9 09 31 c1 4f 21 f9 8d 04 ca 89 44 24 0c 8b 04 ca 39 c3 75 60 8b 44 24 0c 8b 4d 0c 89 48 04 83 c6 04 3b 74 24 18 74 aa 8b 06 <8b> 58 10 89 5c 24 34 8b 45 08 f6 80 d4 00 00 00 01 8b 90 dc 00 00

This doesn’t mean a whole lot to me, other than the fact something involving libllvm appears broken, and that the crash is always invoked bygldriverquery.

For a bit of additional insight, here is some of my hardware information:

System Details Report


Report details

  • Date generated: 2024-05-15 11:06:01

Hardware Information:

  • Hardware Model: ASRock B450M Steel Legend
  • Memory: 32.0 GiB
  • Processor: AMD Ryzen™ 9 5900X × 24
  • Graphics: AMD Radeon™ RX 6600 XT
  • Disk Capacity: 2.5 TB

Software Information:

  • Firmware Version: P3.60
  • OS Name: Fedora Linux 40 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.8.9-300.fc40.x86_64

vulkaninfo --summary

==========
VULKANINFO

Vulkan Instance Version: 1.3.280

Instance Extensions: count = 23

VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 10
VK_EXT_debug_utils : extension revision 2
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_EXT_surface_maintenance1 : extension revision 1
VK_EXT_swapchain_colorspace : extension revision 4
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_protected_capabilities : extension revision 1
VK_KHR_wayland_surface : extension revision 6
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
VK_LUNARG_direct_driver_loading : extension revision 1

Instance Layers: count = 7

VK_LAYER_FROG_gamescope_wsi_x86_64 Gamescope WSI (XWayland Bypass) Layer (x86_64) 1.3.221 version 1
VK_LAYER_MESA_device_select Linux device selection layer 1.3.211 version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207 version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207 version 1
VK_LAYER_VALVE_steam_overlay_32 Steam Overlay Layer 1.3.207 version 1
VK_LAYER_VALVE_steam_overlay_64 Steam Overlay Layer 1.3.207 version 1
VK_LAYER_VKBASALT_post_processing a post processing layer 1.3.223 version 1

Devices:

GPU0:
apiVersion = 1.3.274
driverVersion = 24.0.7
vendorID = 0x1002
deviceID = 0x73ff
deviceType = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
deviceName = AMD Radeon RX 6600 XT (RADV NAVI23)
driverID = DRIVER_ID_MESA_RADV
driverName = radv
driverInfo = Mesa 24.0.7
conformanceVersion = 1.3.0.0
deviceUUID = [redacted]
driverUUID = [redacted]
GPU1:
apiVersion = 1.3.274
driverVersion = 0.0.1
vendorID = 0x10005
deviceID = 0x0000
deviceType = PHYSICAL_DEVICE_TYPE_CPU
deviceName = llvmpipe (LLVM 18.1.1, 256 bits)
driverID = DRIVER_ID_MESA_LLVMPIPE
driverName = llvmpipe
driverInfo = Mesa 24.0.7 (LLVM 18.1.1)
conformanceVersion = 1.3.1.1
deviceUUID = [redacted]
driverUUID = [redacted]


If anyone could give me any pointers in how I can investigate this further, I would be very appreciative.

Hai,

I think the 6.8.9 kernel is the problem. My games are crashing after this update aswell.
https://gitlab.freedesktop.org/drm/amd/-/issues/3343 addresses this issue.

There is a fix, but don’t know when it’s available for us.
https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.8/drm-amdgpu-fix-doorbell-regression.patch

A workaround for me is booting into a previous kernel (6.8.5 in my case). Another work around is to enable Resizable BAR in the bios (the function is not there on older motherboards).

3 Likes

Perfect, thank you for the info and providing some links. It’s good to know the issue is known.

I enabled resizable bar but the issue is not resolved on my end. - also went to kernel 6.8.6 to no avail.

Is the issue you are experiencing identical to the one I initially posted here?

Enabling resize BAR in my BIOS fixed the issues for me, and I didn’t roll back my kernel.