[Intel-xe] [PATCH 1/1] drm/xe: set PTE_AE for all platforms supporting it
fei.yang at intel.com
fei.yang at intel.com
Thu Sep 28 04:43:35 UTC 2023
From: Fei Yang <fei.yang at intel.com>
Atomic access is supported by PVC, and became a common feature for all
platforms starting from Xe2. To enable that XE_VMA_ATOMIC_PTE_BIT needs
to be set, then pte encode will eventually set PTE_AE for devmem.
Signed-off-by: Fei Yang <fei.yang at intel.com>
---
drivers/gpu/drm/xe/xe_vm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index beffbb1039d3..5f700c0d5ef9 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -897,7 +897,7 @@ static struct xe_vma *xe_vma_create(struct xe_vm *vm,
vma->tile_mask |= 0x1 << id;
}
- if (vm->xe->info.platform == XE_PVC)
+ if (vm->xe->info.platform == XE_PVC || GRAPHICS_VER(vm->xe) >= 20)
vma->gpuva.flags |= XE_VMA_ATOMIC_PTE_BIT;
if (bo) {
--
2.25.1
More information about the Intel-xe
mailing list