diff options
author | 2023-05-16 17:34:17 +0800 | |
---|---|---|
committer | 2023-06-09 10:38:19 -0400 | |
commit | 6c47a79b3b8ba91faf89f9866da2ec16aac979e7 (patch) | |
tree | 12ac37a38cfb500ad2a3ebb8b829a7335ac895a1 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
parent | drm/amd/amdgpu: Fix errors & warnings in amdgpu_vcn.c (diff) | |
download | linux-6c47a79b3b8ba91faf89f9866da2ec16aac979e7.tar.gz linux-6c47a79b3b8ba91faf89f9866da2ec16aac979e7.tar.bz2 linux-6c47a79b3b8ba91faf89f9866da2ec16aac979e7.zip |
drm/amdgpu: perform mode2 reset for sdma fed error on gfx v11_0_3
perform mode2 reset for sdma fed error on gfx v11_0_3.
Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index bc43f7db17cc..46bf1889a9d7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -339,6 +339,8 @@ enum amdgpu_ras_ret { #define AMDGPU_RAS_ERR_STATUS_VALID (1 << 1) #define AMDGPU_RAS_ERR_ADDRESS_VALID (1 << 2) +#define AMDGPU_RAS_GPU_RESET_MODE2_RESET (0x1 << 0) + struct amdgpu_ras_err_status_reg_entry { uint32_t hwip; uint32_t ip_inst; @@ -427,6 +429,9 @@ struct amdgpu_ras { /* Indicates smu whether need update bad channel info */ bool update_channel_flag; + + /* Record special requirements of gpu reset caller */ + uint32_t gpu_reset_flags; }; struct ras_fs_data { |