Skip to content

Commit 8be5f23

Browse files
Yogayaojiagregkh
authored andcommitted
drm/xe/guc_ads: use uncached mapping for UM queue BO
commit 8d5134a upstream. 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. Fixes: 9c57bc0 ("drm/xe/lnl: Drop force_probe requirement") Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com> Cc: Matthew Auld <matthew.auld@intel.com> Cc: <stable@vger.kernel.org> # v6.12+ Signed-off-by: Jia Yao <jia.yao@intel.com> Reviewed by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Link: https://patch.msgid.link/20260804165057.129529-4-jia.yao@intel.com (cherry picked from commit 8d5134a) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a65b52f commit 8be5f23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/xe/xe_guc_ads.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)
405405
u32 um_flags = XE_BO_FLAG_VRAM_IF_DGFX(tile) |
406406
XE_BO_FLAG_GGTT |
407407
XE_BO_FLAG_GGTT_INVALIDATE |
408-
XE_BO_FLAG_PINNED_NORESTORE;
408+
XE_BO_FLAG_PINNED_NORESTORE |
409+
XE_BO_FLAG_NEEDS_UC;
409410

410411
bo = xe_managed_bo_create_pin_map(xe, tile, um_size, um_flags);
411412
if (IS_ERR(bo))

0 commit comments

Comments
 (0)