]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pm: Assert on runtime suspend if VFs are enabled
authorRaag Jadav <raag.jadav@intel.com>
Thu, 30 Oct 2025 12:23:56 +0000 (17:53 +0530)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Thu, 27 Nov 2025 17:05:24 +0000 (09:05 -0800)
commite6d2fe31a76d4960b0005e8fcb5eb66d00ed2e14
treeb0428c8feb99e8be677df0dce23b78b4c5514f58
parent726ceb5716da7657a65e01270c494ecd4cb0b242
drm/xe/pm: Assert on runtime suspend if VFs are enabled

We hold an additional reference to the runtime PM to keep PF in D0
during VFs lifetime, as our VFs do not implement the PM capability.
This means we should never be runtime suspending as long as VFs are
enabled.

v8: Add !IS_SRIOV_VF() assert (Matthew Brost)

Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patch.msgid.link/20251030122357.128825-4-raag.jadav@intel.com
drivers/gpu/drm/xe/xe_pci.c