diff options
author | Le Ma <le.ma@amd.com> | 2019-10-25 17:19:38 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-12-05 16:26:11 -0500 |
commit | 00eaa57172a02edddbf445112409e807e0caacd9 (patch) | |
tree | 84a3d113de36d8c33060fcffb9838487f8c44204 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
parent | b823821f2244add19a71e7fe6c8f8550a29d672d (diff) | |
download | linux-stable-00eaa57172a02edddbf445112409e807e0caacd9.tar.gz linux-stable-00eaa57172a02edddbf445112409e807e0caacd9.tar.bz2 linux-stable-00eaa57172a02edddbf445112409e807e0caacd9.zip |
drm/amdgpu: clear err_event_athub flag after reset exit
Otherwise next err_event_athub error cannot call gpu reset. And following
resume sequence will not be affected by this flag.
v2: create function to clear amdgpu_ras_in_intr for modularity of ras driver
Signed-off-by: Le Ma <le.ma@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 a2c1ac1b9572..d4ade4739245 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -621,6 +621,11 @@ static inline bool amdgpu_ras_intr_triggered(void) return !!atomic_read(&amdgpu_ras_in_intr); } +static inline void amdgpu_ras_intr_cleared(void) +{ + atomic_set(&amdgpu_ras_in_intr, 0); +} + void amdgpu_ras_global_ras_isr(struct amdgpu_device *adev); #endif |