Skip to content

drm/amdgpu: update userqueue BOs and PDs

This patch updates the VM_IOCTL to allow userspace to synchronize the mapping/unmapping of a BO in the page table.

The major changes are:

  • it adds a drm_timeline object as an input parameter to the VM IOCTL.
  • this object is used by the kernel to sync the update of the BO in the page table during the mapping of the object.
  • the kernel also synchronizes the tlb flush of the page table entry of this object during the unmapping (Added in this series: https://patchwork.freedesktop.org/series/131276/ and https://patchwork.freedesktop.org/patch/584182/)
  • the userspace can wait on this timeline, and then the BO is ready to be consumed by the GPU.

V2:

  • remove the eviction fence coupling

V3:

  • added the drm timeline support instead of input/output fence (Christian)

Cc: Alex Deucher alexander.deucher@amd.com Cc: Christian Koenig christian.koenig@amd.com Cc: Felix Kuehling felix.kuehling@amd.com Signed-off-by: Arvind Yadav arvind.yadav@amd.com Signed-off-by: Shashank Sharma shashank.sharma@amd.com

Merge request reports