Commit 7a5b69d6 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/vcn5: add additional ring reset error checking



Start and stop can fail, so add checks.

Fixes: b54695da ("drm/amd: Add per-ring reset for vcn v5.0.0 use")
Reviewed-by: default avatarMario Limonciello <mari.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
parent 1b556bcc
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1204,8 +1204,12 @@ static int vcn_v5_0_0_ring_reset(struct amdgpu_ring *ring,
		return -EOPNOTSUPP;

	drm_sched_wqueue_stop(&ring->sched);
	vcn_v5_0_0_stop(vinst);
	vcn_v5_0_0_start(vinst);
	r = vcn_v5_0_0_stop(vinst);
	if (r)
		return r;
	r = vcn_v5_0_0_start(vinst);
	if (r)
		return r;

	r = amdgpu_ring_test_helper(ring);
	if (r)