Skip to content

platforms/drm: Fix explicitGpus check

Amir Maimon requested to merge (removed):fix-explicit-gpus-check into master

The check for explicitGpus in udev event handler was limited to new GPUs, and didn't consider changes to the GPU driver, eg. from vfio-pci to amdgpu

It fixes the issue of:

  • Having a GPU denylisted in KWIN_DRM_DEVICES, that also boots with a normal driver (not vfio-pci or pci-stub via kernel parameters)
  • After boot, plasma doesn't add the GPU
  • Pass the GPU to VM (it changes to vfio-pci)
  • Shutdown VM (it changes back to the normal driver)
  • Plasma adds the GPU
Edited by Amir Maimon

Merge request reports

Loading