FAILED: patch "[PATCH] drm/xe/guc_ads: use uncached mapping for UM queue BO" failed to apply to 6.12-stable tree
Subsystems (3)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-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-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x 9daa302a82590eeee7bdc68023ddad302df4b88c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 9daa302a82590eeee7bdc68023ddad302df4b88c Mon Sep 17 00:00:00 2001
From: Jia Yao <[email protected]>
Date: Tue, 4 Aug 2026 16:50:57 +0000
Subject: [PATCH] drm/xe/guc_ads: use uncached mapping for UM queue BO
On Pre-Xe3p platform, the GAM write the UM queue through DPA using UC. if GuC reads the queue via GGTT (WB), stale data may be observed when the cacheline has been polluted by another agent.
To match the GAM's UC writes, configure the GuC mapping as UC as well.
Reviewed by: Matthew Auld <[email protected]>
--- drivers/gpu/drm/xe/xe_guc_ads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_guc_ads.c +2 -1
@@ -458,7 +458,8 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)u32 um_flags =XE_BO_FLAG_VRAM_IF_DGFX (tile) |XE_BO_FLAG_GGTT |XE_BO_FLAG_GGTT_INVALIDATE | -XE_BO_FLAG_PINNED_NORESTORE ; +XE_BO_FLAG_PINNED_NORESTORE | +XE_BO_FLAG_NEEDS_UC ; bo =xe_managed_bo_create_pin_map (xe, tile, um_size, um_flags);if (IS_ERR (bo))
Signature · 1 line
2.53.0
I checked include/drm/intel/xe_pciids.h in Linux 6.12. The highest Xe generation defined there is Xe2, the patch is for Xe3, so the patch is not needed.
Thanks,
Jia
Quoted 74 lines
-----Original Message-----
From: Sasha Levin <[email protected]>
Sent: Saturday, November 7, 2026 2:16 AM
To: Yao, Jia <[email protected]>; Mun, Gwan-gyeong <gwan- [email protected]>; Auld, Matthew <[email protected]>
Cc: [email protected]
Subject: FAILED: patch "[PATCH] drm/xe/guc_ads: use uncached mapping for UM queue BO" failed to apply to 6.12-stable treeThe patch below does not apply to the 6.12-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-6.12.y git checkoutFETCH_HEADgit cherry-pick -x9daa302a82590eeee7bdc68023ddad302df4b88c
# <resolve conflicts, build, test, etc.> git commit -s git send-email --to '<[email protected]>' --in-reply-to '20261107051619-failed-6.12- [email protected]' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'Thanks,
Sasha------------------ original commit in Linus's tree ------------------
From
9daa302a82590eeee7bdc68023ddad302df4b88cMon Sep 17 00:00:00 2001
From: Jia Yao <[email protected]>
Date: Tue, 4 Aug 2026 16:50:57 +0000
Subject: [PATCH] drm/xe/guc_ads: use uncached mapping for UM queue BOOn Pre-Xe3p platform, the GAM write the UM queue through DPA using UC. if GuC reads the queue via GGTT (WB), stale data may be observed when the cacheline has been polluted by another agent.
To match the GAM's UC writes, configure the GuC mapping as UC as well.
Fixes 9c57bc08652a ("drm/xe/lnl: Drop force_probe requirement")Cc Gwan-gyeong Mun <[email protected]>Cc Matthew Auld <[email protected]>Cc <[email protected]> # v6.12+Signed-off-by Jia Yao <[email protected]> Reviewed by: Matthew AuldSigned-off-by Matthew Auld <[email protected]>--- drivers/gpu/drm/xe/xe_guc_ads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/gpu/drm/xe/xe_guc_ads.cindex77429ff4d2a9a..ff8eee3831aa2100644drivers/gpu/drm/xe/xe_guc_ads.c +2
-1@@ -458,7 +458,8 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)u32 um_flags =XE_BO_FLAG_VRAM_IF_DGFX (tile) |XE_BO_FLAG_GGTT |XE_BO_FLAG_GGTT_INVALIDATE | -XE_BO_FLAG_PINNED_NORESTORE ; +XE_BO_FLAG_PINNED_NORESTORE | +XE_BO_FLAG_NEEDS_UC ; bo =xe_managed_bo_create_pin_map (xe, tile, um_size, um_flags);if (
IS_ERR(bo))
--
2.53.0