Skip to content

Commit d115a63

Browse files
committed
drm/amdgpu/vcn4: add additional ring reset error checking
Start and stop can fail, so add checks. Fixes: b8b6e6f ("drm/amd: Add per-ring reset for vcn v4.0.0 use") Reviewed-by: Mario Limonciello <mari.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Mario Limonciello <mario.limonciello@amd.com>
1 parent a4b2ba8 commit d115a63

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,8 +1979,12 @@ static int vcn_v4_0_ring_reset(struct amdgpu_ring *ring,
19791979
return -EOPNOTSUPP;
19801980

19811981
drm_sched_wqueue_stop(&ring->sched);
1982-
vcn_v4_0_stop(vinst);
1983-
vcn_v4_0_start(vinst);
1982+
r = vcn_v4_0_stop(vinst);
1983+
if (r)
1984+
return r;
1985+
r = vcn_v4_0_start(vinst);
1986+
if (r)
1987+
return r;
19841988

19851989
r = amdgpu_ring_test_helper(ring);
19861990
if (r)

0 commit comments

Comments
 (0)