drm/amdgpu/gfx7: Return error code when failing to start GFX ring

Return an error code instead of silently failing.

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-07-21 13:43:17 +02:00
committed by Alex Deucher
parent c93962a688
commit 3c6eba1c14

View File

@@ -2577,7 +2577,10 @@ static int gfx_v7_0_cp_gfx_resume(struct amdgpu_device *adev)
WREG32(mmCP_RB0_BASE_HI, upper_32_bits(rb_addr));
/* start the ring */
gfx_v7_0_cp_gfx_start(adev);
r = gfx_v7_0_cp_gfx_start(adev);
if (r)
return r;
r = amdgpu_ring_test_helper(ring);
if (r)
return r;