On 11/17/26 23:46, Dave Airlie wrote: > On Tue, 17 Nov 2026 at 22:50, Natalie Vock <[email protected]> wrote: >> >> This new ioctl is a modernized version of AMDGPU_GEM_VA, with the >> main changes being support for many operations batched in one ioctl, >> and a better sync model that allows passing multiple syncobjs for >> both wait and signal. Timeline syncobj are now properly supported in >> both wait and signal cases. >> >> One breaking change compared to AMDGPU_GEM_VA is that >> synchronization is now explicit (where possible), meaning that >> previous submissions are not necessarily waited on. >> >> Using this ioctl allows applications that hammer lots of sparse >> operations, particularly some games running under Proton, to see >> significant reductions in stuttering. >> >> Signed-off-by: Natalie Vock <[email protected]> >> --- >> drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +- >> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 348 >> +++++++++++++++++++++++++++++++- >> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h | 2 + >> include/uapi/drm/amdgpu_drm.h | 46 +++++ >> 4 files changed, 396 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c >> b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c >> index 72b3710462824..188c8ec234c02 100644 >> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c >> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c >> @@ -3124,7 +3124,8 @@ const struct drm_ioctl_desc amdgpu_ioctls_kms[] = { >> DRM_IOCTL_DEF_DRV(AMDGPU_USERQ_WAIT, amdgpu_userq_wait_ioctl, >> DRM_AUTH|DRM_RENDER_ALLOW), >> DRM_IOCTL_DEF_DRV(AMDGPU_GEM_LIST_HANDLES, >> amdgpu_gem_list_handles_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), >> DRM_IOCTL_DEF_DRV(AMDGPU_PROC_OPTIONS, amdgpu_proc_options_ioctl, >> DRM_AUTH|DRM_RENDER_ALLOW), >> - DRM_IOCTL_DEF_DRV(AMDGPU_UALINK_HANDLE, >> amdgpu_gem_ualink_handle_ioctl, DRM_AUTH|DRM_RENDER_ALLOW) >> + DRM_IOCTL_DEF_DRV(AMDGPU_UALINK_HANDLE, >> amdgpu_gem_ualink_handle_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), >> + DRM_IOCTL_DEF_DRV(AMDGPU_GEM_VA2, amdgpu_gem_va2_ioctl, >> DRM_AUTH|DRM_RENDER_ALLOW), >> }; > > Can we just call it VM_BIND for consistency with xe and nouveau? > > Ideally of course we'd use gpuvm for amd, but even without that it > would be good to at least have somewhat consistent naming just so > grepping find things.
Completely agree. I'm still hugely in favor to have a driver independent VM_BIND. That would have avoided quite a lot of the mess we have. I mean there is a huge part of the interface which is vendor specific but at least to me it looks like that should be abstract able. Christian. > > Dave.
