Skip to content

Commit 9632dfb

Browse files
committed
drm/xe/vf: Don't run any save-restore RTP actions if VF
There are no RTP save-restore actions applicable for VFs on current platforms. If any future platform will require some, we will need to update the RTP framework to support VF_READY or VF_ONLY actions. In the meantime, just skip all actions if we are running as VF driver. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Lucas De Marchi <lucas.demarchi@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-3-michal.wajdeczko@intel.com
1 parent 65336c3 commit 9632dfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/xe/xe_rtp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "xe_gt_topology.h"
1414
#include "xe_macros.h"
1515
#include "xe_reg_sr.h"
16+
#include "xe_sriov.h"
1617

1718
/**
1819
* DOC: Register Table Processing
@@ -257,6 +258,9 @@ void xe_rtp_process_to_sr(struct xe_rtp_process_ctx *ctx,
257258

258259
rtp_get_context(ctx, &hwe, &gt, &xe);
259260

261+
if (IS_SRIOV_VF(xe))
262+
return;
263+
260264
for (entry = entries; entry && entry->name; entry++) {
261265
bool match = false;
262266

0 commit comments

Comments
 (0)