]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/xe/vf: Don't apply tile workarounds if VF
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 19 Jun 2024 21:45:51 +0000 (23:45 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 20 Jun 2024 17:49:36 +0000 (19:49 +0200)
The VF drivers can't apply any workarounds as they don't have
access to related registers. Since xe_wa_apply_tile_workarounds()
function is not using RTP yet, we have to add early return.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619214557.905-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_wa.c

index 21b55462779268035ba55714134d037790a88b83..c7bf0862b23188a393aca0c8e950c5fcc8a89954 100644 (file)
@@ -21,6 +21,7 @@
 #include "xe_mmio.h"
 #include "xe_platform_types.h"
 #include "xe_rtp.h"
+#include "xe_sriov.h"
 #include "xe_step.h"
 
 /**
@@ -865,6 +866,9 @@ void xe_wa_apply_tile_workarounds(struct xe_tile *tile)
 {
        struct xe_gt *mmio = tile->primary_gt;
 
+       if (IS_SRIOV_VF(tile->xe))
+               return;
+
        if (XE_WA(mmio, 22010954014))
                xe_mmio_rmw32(mmio, XEHP_CLOCK_GATE_DIS, 0, SGSI_SIDECLK_DIS);
 }