On Wed, Nov 18, 2026 at 3:21 AM Srinivasan Shanmugam <[email protected]> wrote: > > From: Lijo Lazar <[email protected]> > > Add the core trap handling infrastructure required for AMDGPU user > queues. > > This includes support for Compute Wave Save Restore (CWSR), > integration with the user queue path, userspace interfaces required > for trap and save area configuration, and the infrastructure required > for second-level trap handlers (SLTH). > > The implementation provides first-level trap handler management, > trap buffer allocation and validation, trap state allocation and > management, save area sizing and validation, and the infrastructure > required for second-level userspace trap handlers. > > The common trap handling implementation is provided through > amdgpu_trap.c and associated helpers while preserving the CWSR > functionality required for user queue preemption and recovery. > > Suggested-by: Christian König <[email protected]> > Suggested-by: Alex Deucher <[email protected]> > Cc: Felix Kuehling <[email protected]> > Cc: Lancelot Six <[email protected]> > Cc: James Zhu <[email protected]> > Cc: Lijo Lazar <[email protected]> > Cc: Samuel Pitoiset <[email protected]> > Cc: Natalie Vock <[email protected]> > Cc: Timur Kristóf <[email protected]> > Cc: Pierre-Eric Pelloux-Prayer <[email protected]> > Signed-off-by: Lijo Lazar <[email protected]> > Co-developed-by: Srinivasan Shanmugam <[email protected]> > Signed-off-by: Srinivasan Shanmugam <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 + > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 + > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 20 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 31 + > drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 8 + > drivers/gpu/drm/amd/amdgpu/amdgpu_trap.c | 764 +++++++++++++++++++++ > drivers/gpu/drm/amd/amdgpu/amdgpu_trap.h | 143 ++++ > drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 24 + > drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h | 7 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 13 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h | 22 + > drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 14 + > drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 107 ++- > include/uapi/drm/amdgpu_drm.h | 27 +
This patch adds UAPI. Can you drop this? Alex
