• Jonathan Kim's avatar
    drm/amdkfd: add debug set flags operation · 103d5f08
    Jonathan Kim authored
    
    
    Allow the debugger to set single memory and single ALU operations.
    
    Some exceptions are imprecise (memory violations, address watch) in the
    sense that a trap occurs only when the exception interrupt occurs and
    not at the non-halting faulty instruction.  Trap temporaries 0 & 1 save
    the program counter address, which means that these values will not point
    to the faulty instruction address but to whenever the interrupt was
    raised.
    
    Setting the Single Memory Operations flag will inject an automatic wait
    on every memory operation instruction forcing imprecise memory exceptions
    to become precise at the cost of performance.  This setting is not
    permitted on debug devices that support only a global setting of this
    option.
    
    Return the previous set flags to the debugger as well.
    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>
    103d5f08
kfd_debug.h 4.22 KB