[PATCH 0/3] Enable device atomics with a VM bind flag

Nirmoy Das nirmoy.das at intel.com
Wed Apr 10 17:03:05 UTC 2024


Currently device atomics in SMEM only buffer is not supported and
given that simultaneous usage of device atomics and CPU atomics on
the same SMEM buffer is not guaranteed to function without migration,
and UMD expects no migration for SMEM-only buffer objects, so this
provide a way to set device atomics when UMD is certain to use the
buffer only for device atomics.

Test-with: 20240410170041.24963-1-nirmoy.das at intel.com
Cc: Balasubramani Vivekanandan <balasubramani.vivekanandan at intel.com>
Cc: Brian Welty <brian.welty at intel.com>
Cc: Fei Yang <fei.yang at intel.com>
Cc: Lionel G Landwerlin <lionel.g.landwerlin at intel.com>
Cc: Matt Roper <matthew.d.roper at intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>
Cc: Michal Mrozek <michal.mrozek at intel.com>
Cc: Oak Zeng <oak.zeng at intel.com>
Cc: Thomas Hellstr_m <thomas.hellstrom at linux.intel.com>

Nirmoy Das (3):
  drm/xe: Consolidate setting PTE_AE into one place
  drm/xe: Add function to check if BO has single placement
  drm/xe/uapi: Introduce VMA bind flag for device atomics

 drivers/gpu/drm/xe/xe_bo.c       | 14 ++++++++++++++
 drivers/gpu/drm/xe/xe_bo.h       |  1 +
 drivers/gpu/drm/xe/xe_pt.c       |  4 +---
 drivers/gpu/drm/xe/xe_vm.c       | 32 ++++++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_vm_types.h |  2 ++
 include/uapi/drm/xe_drm.h        |  9 +++++----
 6 files changed, 51 insertions(+), 11 deletions(-)

-- 
2.42.0



More information about the Intel-xe mailing list