• Jonathan Kim's avatar
    drm/amdkfd: add debug wave launch override operation · 101827e1
    Jonathan Kim authored
    This operation allows the debugger to override the enabled HW
    exceptions on the device.
    
    On debug devices that only support the debugging of a single process,
    the HW exceptions are global and set through the SPI_GDBG_TRAP_MASK
    register.
    Because they are global, only address watch exceptions are allowed to
    be enabled.  In other words, the debugger must preserve all non-address
    watch exception states in normal mode operation by barring a full
    replacement override or a non-address watch override request.
    
    For multi-process debugging, all HW exception overrides are per-VMID so
    all exceptions can be overridden or fully replaced.
    
    In order for the debugger to know what is permissible, returned the
    supported override mask back to the debugger along with the previously
    enable overrides.
    Signed-off-by: default avatarJonathan Kim <jonathan.kim@amd.com>
    Reviewed-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    101827e1
amdgpu_amdkfd_gfx_v10.h 2.07 KB