diff options
author | Fei Yang <[email protected]> | 2023-09-27 21:43:35 -0700 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:41:21 -0500 |
commit | 9be79251813d113f9157e92cd8b0eb8563253a09 (patch) | |
tree | b3832e06dbf37e4422f53504a3818b43a90c6169 | |
parent | 909faaa66c5ec0d789b6620127329f2b17b01602 (diff) |
drm/xe: set PTE_AE for all platforms supporting it
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 <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/xe_vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index 6ab115df9c4e..2bb0a1669a96 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -901,7 +901,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 (GRAPHICS_VER(vm->xe) >= 20 || vm->xe->info.platform == XE_PVC) vma->gpuva.flags |= XE_VMA_ATOMIC_PTE_BIT; if (bo) { |