drm/amdgpu: Increase reset counter only on success
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 14 Jul 2025 05:07:00 +0000 (10:37 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Jul 2025 20:49:04 +0000 (16:49 -0400)
commit86790e300d8b7bbadaad5024e308c52f1222128f
treea51c7a6738ce3ded08a66becdf30709148870743
parent4c1a0fc2aeb8486956f37cad4433e4d18b45821d
drm/amdgpu: Increase reset counter only on success

Increment the reset counter only if soft recovery succeeded. This is
consistent with a ring hard reset behaviour where counter gets
incremented only if hard reset succeeded.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 25c314aa3ec3d30e4ee282540e2096b5c66a2437)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c