FAILED: patch "[PATCH] drm/xe/rtp: (De-)whitelist OA registers for all hwe's for a" failed to apply to 7.1-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 7.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y
git checkout FETCH_HEAD
git cherry-pick -x ebba7ce65252a4ab0e3794ff14854df2afca5c08
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026072903-strongly-dagger-4666@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From ebba7ce65252a4ab0e3794ff14854df2afca5c08 Mon Sep 17 00:00:00 2001
From: Ashutosh Dixit <[email protected]>
Date: Mon, 15 Jun 2026 15:42:25 -0700
Subject: [PATCH] drm/xe/rtp: (De-)whitelist OA registers for all hwe's for a
gt
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Whitelist or de-whitelist OA registers for all hwe's on the gt on which the OA stream is opened. This simplifies the case where an oa unit has 0 attached hwe's (but which monitors OA events on the associated GT).
drivers/gpu/drm/xe/xe_reg_whitelist.c +31 -1
@@ -229,7 +229,7 @@ void xe_reg_whitelist_process_engine(struct xe_hw_engine *hwe)whitelist_apply_to_hwe (hwe, &hwe->oa_whitelist, &hwe->reg_sr, first_oa_slot); } -__maybe_unused static void __whitelist_oa_regs (struct xe_hw_engine *hwe,bool whitelist) +static void __whitelist_oa_regs (struct xe_hw_engine *hwe,bool whitelist) {struct xe_reg_sr_entry *entry;unsigned long reg;
@@ -244,6 +244,36 @@ __maybe_unused static void __whitelist_oa_regs(struct xe_hw_engine *hwe, bool whxe_reg_sr_apply_mmio (&hwe->oa_sr, hwe->gt); } +/** +* xe_reg_whitelist_oa_regs - whitelist oa registers for gt +* @gt: gt to whitelist oa registers for +* +* Whitelist OA registers by resetting RING_FORCE_TO_NONPRIV_DENY +*/ +void xe_reg_whitelist_oa_regs (struct xe_gt *gt) +{ +struct xe_hw_engine *hwe; +enum xe_hw_engine_id id; + +for_each_hw_engine (hwe, gt, id) +__whitelist_oa_regs (hwe, true); +} + +/** +* xe_reg_dewhitelist_oa_regs - dewhitelist oa registers for gt +* @gt: gt to dewhitelist oa registers for +* +* Dewhitelist OA registers by setting RING_FORCE_TO_NONPRIV_DENY +*/ +void xe_reg_dewhitelist_oa_regs (struct xe_gt *gt) +{ +struct xe_hw_engine *hwe; +enum xe_hw_engine_id id; + +for_each_hw_engine (hwe, gt, id) +__whitelist_oa_regs (hwe, false); +} +/** * xe_reg_whitelist_print_entry - print one whitelist entry * @p: DRM printer
drivers/gpu/drm/xe/xe_reg_whitelist.h +4 -0
@@ -9,12 +9,16 @@#include <linux/types.h> struct drm_printer ; +struct xe_gt ;struct xe_hw_engine ;struct xe_reg_sr ;struct xe_reg_sr_entry ;void xe_reg_whitelist_process_engine (struct xe_hw_engine *hwe); +void xe_reg_whitelist_oa_regs (struct xe_gt *gt); +void xe_reg_dewhitelist_oa_regs (struct xe_gt *gt); +void xe_reg_whitelist_print_entry (struct drm_printer *p,unsigned int indent,u32 reg,struct xe_reg_sr_entry *entry);