]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:25 +0000 (08:58 +0200)
commit17640f044dcabd49dbfcf78da5afa7f61c940bfe
tree0ec4f9901f15e672cbd4eb5ad0d8c6db3e90dad9
parent0710347fd6e89165bd37d21d72b58325eac1dee9
drm/amdgpu: Increase reset counter only on success

commit 86790e300d8b7bbadaad5024e308c52f1222128f upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c