From: Michal Wajdeczko Date: Tue, 11 Mar 2025 10:52:21 +0000 (+0100) Subject: drm/xe/vf: Unblock xe_rtp_process_to_sr for VFs X-Git-Tag: v6.16-rc1~144^2~18^2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92a5bd302458a1663daaad36994373e2ff0df5be;p=thirdparty%2Fkernel%2Flinux.git drm/xe/vf: Unblock xe_rtp_process_to_sr for VFs In commit 9632dfb0def4 ("drm/xe/vf: Don't run any save-restore RTP actions if VF") we disabled processing of all RTP rules if we were running as a VFs, since many of the RTP actions were trying to access registers unaccessible for VFs. This also included all of LRC WA rules, since some of them were implemented in a way that required RMW pattern. Now, as we can program LRC WAs without accessing such registers from the driver, relying on the MI_MATH instruction instead, we can unblock xe_rtp_process_to_sr() for VFs. Signed-off-by: Michal Wajdeczko Cc: Matt Roper Reviewed-by: Matt Roper Link: https://patchwork.freedesktop.org/patch/msgid/20250311105221.1910-1-michal.wajdeczko@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_rtp.c b/drivers/gpu/drm/xe/xe_rtp.c index 13bb62d3e615e..29e694bb1219e 100644 --- a/drivers/gpu/drm/xe/xe_rtp.c +++ b/drivers/gpu/drm/xe/xe_rtp.c @@ -258,9 +258,6 @@ void xe_rtp_process_to_sr(struct xe_rtp_process_ctx *ctx, rtp_get_context(ctx, &hwe, >, &xe); - if (IS_SRIOV_VF(xe)) - return; - xe_assert(xe, entries); for (entry = entries; entry - entries < n_entries; entry++) {