Commit 18bc97fb authored by Michal Wajdeczko's avatar Michal Wajdeczko

drm/xe/vf: Don't program MOCS if VF

MOCS programming may only be done by the PF driver.
Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240213154355.1221-4-michal.wajdeczko@intel.com
parent aec14e33
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "xe_gt_mcr.h" #include "xe_gt_mcr.h"
#include "xe_mmio.h" #include "xe_mmio.h"
#include "xe_platform_types.h" #include "xe_platform_types.h"
#include "xe_sriov.h"
#include "xe_step_types.h" #include "xe_step_types.h"
#if IS_ENABLED(CONFIG_DRM_XE_DEBUG) #if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
...@@ -539,6 +540,9 @@ void xe_mocs_init(struct xe_gt *gt) ...@@ -539,6 +540,9 @@ void xe_mocs_init(struct xe_gt *gt)
struct xe_mocs_info table; struct xe_mocs_info table;
unsigned int flags; unsigned int flags;
if (IS_SRIOV_VF(gt_to_xe(gt)))
return;
/* /*
* MOCS settings are split between "GLOB_MOCS" and/or "LNCFCMOCS" * MOCS settings are split between "GLOB_MOCS" and/or "LNCFCMOCS"
* registers depending on platform. * registers depending on platform.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment