• Jonathan Kim's avatar
    drm/amdgpu: add gfx9 hw debug mode enable and disable calls · cde2e087
    Jonathan Kim authored
    Implement the per-device calls to enable or disable HW debug mode for
    GFX9 prior to GFX9.4.1.
    
    GFX9.4.1 and onward will require their own enable/disable sequence as
    follow on patches.
    
    When hardware debug mode setting is requested, waves will inherit
    these settings in the Shader Processor Input's (SPI) Sequencer Global
    Block (SQG). This means that the KGD must drain all waves from the SPI
    into SQG (approximately 96 SPI clock cycles) prior to debug mode setting
    to ensure that the order of operations that the debugger expects with
    regards to debug mode setting transaction requests and wave inheritence
    of that mode is upheld.
    
    Also ensure that exception overrides are reset to their original state
    prior to debug enable or disable.
    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>
    cde2e087
amdgpu_amdkfd_gfx_v9.c 30.7 KB