drm/amdgpu/gfx8: Return error when testing all rings

The gfx_v8_0_cp_test_all_rings() function should return success
only when all ring tests were successful.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Timur Kristóf 2026-06-17 21:14:24 +02:00 committed by Alex Deucher
parent a25d644890
commit 1a92c648fb

View File

@ -4703,12 +4703,14 @@ static int gfx_v8_0_cp_test_all_rings(struct amdgpu_device *adev)
if (r)
return r;
r = 0;
for (i = 0; i < adev->gfx.num_compute_rings; i++) {
ring = &adev->gfx.compute_ring[i];
amdgpu_ring_test_helper(ring);
r |= amdgpu_ring_test_helper(ring);
}
return 0;
return r;
}
static int gfx_v8_0_cp_resume(struct amdgpu_device *adev)