ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
934 stars 45 forks source link

[BUG] GPU hangs on waking the headset (compositing & VRR) #519

Open dsalt opened 2 years ago

dsalt commented 2 years ago

A GPU hang will occur when the headset display is activated (i.e. vrcompositor becomes active) if VRR is in use. I have only tested with xfwm4 with compositing enabled.

(I'm not certain whether this qualifies as a vrcompositor bug, an xfwm4 bug, a kernel bug or some combination of these.)

To reproduce

At this point, there will be a GPU hang. GPU reset should succeed, but X will need to be restarted.

System information

Additional context Kernel log text extract

X config note: xf86-video-amdgpu 22.0 is in use; VariableRefresh & AsyncFlipSecondaries are enabled.

kisak-valve commented 2 years ago

Hello @dsalt, this issue should also be mentioned to your video driver vendor.

dsalt commented 2 years ago

As it looks more like an amdgpu problem than a Mesa bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2020

dsalt commented 2 years ago

Some work has been done on tracking this down – https://gitlab.freedesktop.org/drm/amd/-/issues/1980 has a comment which describes a fix (basically, revert one patch in Mesa). That works fine here (I've tested under the conditions which caused the problem here), though it apparently exposes a different problem on Navi 2x.