aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2025-06-04 04:06:09 +0000
committerAlex Deucher <[email protected]>2025-06-18 16:19:18 +0000
commit3bdf8dd84e55e9ea0806eb62bd4437c8c7746521 (patch)
tree1511537b2a6b1ff12063800b37863cc858f2a3fe /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amdgpu/gfx9: drop reset_kgq (diff)
downloadkernel-3bdf8dd84e55e9ea0806eb62bd4437c8c7746521.tar.gz
kernel-3bdf8dd84e55e9ea0806eb62bd4437c8c7746521.zip
drm/amdgpu: Clear reset flags from ras context
Once RAS errors are cleared with appropriate recovery mechanism, clear reset flags also from RAS context. Otherwise, stale flag values could affect the subsequent RAS reset handling on the device. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index de0944947eaf..e91d4d37b5b3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -4414,8 +4414,10 @@ void amdgpu_ras_clear_err_state(struct amdgpu_device *adev)
struct amdgpu_ras *ras;
ras = amdgpu_ras_get_context(adev);
- if (ras)
+ if (ras) {
ras->ras_err_state = 0;
+ ras->gpu_reset_flags = 0;
+ }
}
void amdgpu_ras_set_err_poison(struct amdgpu_device *adev,