mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 01:11:51 -04:00
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:
committed by
Alex Deucher
parent
c93962a688
commit
3c6eba1c14
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user