[Intel-xe] [PATCH 2/2] drm/xe: Enable device scope atomics with vm madvise
Nirmoy Das
nirmoy.das at intel.com
Wed Jul 26 07:43:00 UTC 2023
Set XE_VMA_ATOMIC_PTE_BIT if user hints about device
scoped atomics for a vma which will in turn set AE pte
bit if atomics supported by the HW on the vma.
Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
---
drivers/gpu/drm/xe/xe_vm_madvise.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/xe/xe_vm_madvise.c b/drivers/gpu/drm/xe/xe_vm_madvise.c
index b4e661576d08..3a710a080e76 100644
--- a/drivers/gpu/drm/xe/xe_vm_madvise.c
+++ b/drivers/gpu/drm/xe/xe_vm_madvise.c
@@ -154,6 +154,7 @@ static int madvise_device_atomic(struct xe_device *xe, struct xe_vm *vm,
if (err)
return err;
bo->props.device_atomic = !!value;
+ vmas[i]->gpuva.flags |= XE_VMA_ATOMIC_PTE_BIT;
xe_bo_unlock(bo, &ww);
}
--
2.39.0
More information about the Intel-xe
mailing list