]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pf: Add top level functions to control VFs
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 30 Sep 2025 23:35:19 +0000 (01:35 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 2 Oct 2025 21:58:28 +0000 (23:58 +0200)
commitc97cdf7686138a60ba09bde360eb9f459953c1e2
treeb4428fa43a9324d70bc69893e7e31cdc8871bb45
parent846a81abbee3e6cfd238c350658a32199c39313d
drm/xe/pf: Add top level functions to control VFs

We already have control functions that we use to control the VF
state on the per-GT basis, but that is low level detail from the
user point of view, who rather expects VF-level functions.

For now add simple functions that just iterate over all GTs and
call per-GT control function. We will soon allow to use some of
them from the user facing interfaces like debugfs.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Link: https://lore.kernel.org/r/20250930233525.201263-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_pci_sriov.c
drivers/gpu/drm/xe/xe_sriov_pf_control.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sriov_pf_control.h [new file with mode: 0644]