summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2024-02-13 16:43:50 +0100
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2024-02-13 18:59:49 +0100
commit18bc97fb4a0c5920580ee3973cf0b7c6192dc7e9 (patch)
tree2dd7f3f84d8e45a7d8d21bb3898d01254a305ba3
parentdrm/xe/vf: Don't try to capture engine data unavailable to VF (diff)
downloadlinux-18bc97fb4a0c5920580ee3973cf0b7c6192dc7e9.tar.xz
linux-18bc97fb4a0c5920580ee3973cf0b7c6192dc7e9.zip
drm/xe/vf: Don't program MOCS if VF
MOCS programming may only be done by the PF driver. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240213154355.1221-4-michal.wajdeczko@intel.com
-rw-r--r--drivers/gpu/drm/xe/xe_mocs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
index d205d684d809..609d997b3e9b 100644
--- a/drivers/gpu/drm/xe/xe_mocs.c
+++ b/drivers/gpu/drm/xe/xe_mocs.c
@@ -13,6 +13,7 @@
#include "xe_gt_mcr.h"
#include "xe_mmio.h"
#include "xe_platform_types.h"
+#include "xe_sriov.h"
#include "xe_step_types.h"
#if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
@@ -539,6 +540,9 @@ void xe_mocs_init(struct xe_gt *gt)
struct xe_mocs_info table;
unsigned int flags;
+ if (IS_SRIOV_VF(gt_to_xe(gt)))
+ return;
+
/*
* MOCS settings are split between "GLOB_MOCS" and/or "LNCFCMOCS"
* registers depending on platform.