[Intel-xe] [PATCH] drm/xe: Allow atomic operations in pages for Xe2
José Roberto de Souza
jose.souza at intel.com
Wed Oct 4 21:06:24 UTC 2023
Without this if a atomic operations is executed it causes engine
memory catastrophic error.
This bit was already being added in the pte_encode_vma() path but not
in the pde_encode_bo() path.
This fixes at least the 3 failures in piglit sanity and 2 failures in
crucible.
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
---
drivers/gpu/drm/xe/xe_vm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index ea17d026546cd..6be5d92706932 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -1261,6 +1261,9 @@ static u64 xelp_pte_encode_bo(struct xe_bo *bo, u64 bo_offset,
pte |= pte_encode_cache(xe, cache);
pte |= pte_encode_ps(pt_level);
+ if (GRAPHICS_VERx100(xe) >= 20)
+ pte |= XE_USM_PPGTT_PTE_AE;
+
if (xe_bo_is_vram(bo) || xe_bo_is_stolen_devmem(bo))
pte |= XE_PPGTT_PTE_DM;
--
2.42.0
More information about the Intel-xe
mailing list