Skip to content

backends/drm: don't wait for pending pageflips on gpu hotunplug

Xaver Hugl requested to merge work/zamundaaa/gpu-unplug into master

The pageflip event may never arrive, as the GPU to trigger it is gone. It also doesn't make a difference, as the GPU is unaccessible anyways, so KWin can't affect the relevant output(s) anymore

The first commit cleans up the commit ownership a bit, so that we don't leak the object when the pageflip event doesn't arrive (in this situation and when driver bugs happen that cause this)

With this, except for some amdgpu warnings / failures in dmesg, GPU hotunplug seems to work perfectly for me (with a rx 6800XT).

Merge request reports