Regression: Extreme render spikes (500ms+) of the whole GPU (including compositor and cursor) while running GPU-heavy games (Git commit bisected) - AMD Renoir
Problematic commit (found via git bisect):
commit 3cfdcabc781a6ee1b9221190ae577ae57c50b729
Author: Jiadong Zhu <Jiadong.Zhu@amd.com>
Date: Sat May 6 17:35:05 2023 +0800
ac: enable SHADOW_GLOBAL_CONFIG for preemptible ib
SHADOW_GLOBAL_CONFIG is mandatory for mid command buffer preemmption.
Fixes: 69014d8c94f (radeonsi: implement CP register shadowing)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22916>
src/amd/common/ac_shadowed_regs.c | 3 ++-
Description: GPU-heavy games cause the whole iGPU (compositor + game, including hardware cursor) hang for about 300-500ms.
Tested on KDE6 Wayland and Gnome Wayland, same result
Seems to work absolutely fine on X11.
Video recorded with camera: bug
All tested games (specified below) perform much better before this commit.
Tested games:
- Minecraft with Iris + Complementary shaders (OpenGL)
- Subnautica (DXVK)
- Voices of the Void (DXVK)
inxi:
System:
Host: archlinux Kernel: 6.5.9-arch2-1 arch: x86_64 bits: 64 compiler: gcc
v: 13.2.1 Desktop: KDE Plasma v: 5.90.0 tk: Qt v: 5.15.11 wm: kwin_wayland
dm: 1: GDM 2: LightDM note: stopped 3: SDDM note: stopped
Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64
type: MT MCP arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
Speed (MHz): avg: 1561 high: 1800 min/max: 1400/4370 boost: disabled
cores: 1: 1655 2: 1800 3: 1534 4: 1397 5: 1372 6: 1800 7: 1255 8: 1800
9: 1800 10: 1800 11: 1492 12: 1397 13: 1291 14: 1800 15: 1407 16: 1386
bogomips: 57506
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Lucienne vendor: CLEVO/KAPOK driver: amdgpu v: kernel
arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1
empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:164c temp: 44.0 C
Device-2: Bison BisonCam NB Pro driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 3-4:3 chip-ID: 5986:9102
Display: wayland server: X.org v: 1.21.1.9 with: Xwayland v: 23.2.2
compositor: kwin_wayland driver: X: loaded: amdgpu
unloaded: modesetting,radeon,vesa alternate: fbdev dri: radeonsi
gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
surfaceless: drv: radeonsi wayland: drv: radeonsi x11: drv: radeonsi
inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd v: N/A glx-v: 1.4
direct-render: yes renderer: AMD Radeon Graphics (renoir LLVM 16.0.6 DRM
3.54 6.5.9-arch2-1) device-ID: 1002:164c display-ID: :0.0
API: Vulkan v: 1.3.269 surfaces: xcb,xlib,wayland device: 0
type: integrated-gpu driver: mesa radv device-ID: 1002:164c device: 1
type: integrated-gpu driver: mesa radv device-ID: 1002:164c device: 2
type: cpu driver: mesa llvmpipe device-ID: 10005:0000 device: 3 type: cpu
driver: mesa llvmpipe device-ID: 10005:0000
Edited by Aleksander