summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_sriov_pf.h
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2024-04-10 19:03:34 +0200
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2024-04-12 16:23:26 +0200
commit0bdd5b16ba0444f41d538f5927cb9b995d684594 (patch)
tree74d86aea98256cb83d0d5f4f07ed86eb00caeb62 /drivers/gpu/drm/xe/xe_sriov_pf.h
parentMerge drm/drm-next into drm-xe-next (diff)
downloadlinux-0bdd5b16ba0444f41d538f5927cb9b995d684594.tar.xz
linux-0bdd5b16ba0444f41d538f5927cb9b995d684594.zip
drm/xe/pf: Introduce mutex to protect VFs configurations
PF driver will maintain configurations and resources for every VF and this data could span multiple tiles and/or GTs. Prepare mutex to protect data that we will add in upcoming patches. Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240410170338.1199-2-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_sriov_pf.h')
-rw-r--r--drivers/gpu/drm/xe/xe_sriov_pf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_sriov_pf.h b/drivers/gpu/drm/xe/xe_sriov_pf.h
index ebef2e01838a..d1220e70e1c0 100644
--- a/drivers/gpu/drm/xe/xe_sriov_pf.h
+++ b/drivers/gpu/drm/xe/xe_sriov_pf.h
@@ -13,12 +13,18 @@ struct xe_device;
#ifdef CONFIG_PCI_IOV
bool xe_sriov_pf_readiness(struct xe_device *xe);
+int xe_sriov_pf_init_early(struct xe_device *xe);
void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p);
#else
static inline bool xe_sriov_pf_readiness(struct xe_device *xe)
{
return false;
}
+
+static inline int xe_sriov_pf_init_early(struct xe_device *xe)
+{
+ return 0;
+}
#endif
#endif