Commit 1f3cca77 authored by Mario Limonciello's avatar Mario Limonciello Committed by Alex Deucher
Browse files

drm/amd: Pass userq suspend failures up to caller



If a userq failed to suspend the rest of the suspend sequence may
have problems.  Pass the error code up to the caller for a decision
on what to do.

Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 78779340
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5224,7 +5224,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool notify_clients)
		return r;

	amdgpu_amdkfd_suspend(adev, !amdgpu_sriov_vf(adev) && !adev->in_runpm);
	amdgpu_userq_suspend(adev);
	r = amdgpu_userq_suspend(adev);
	if (r)
		return r;

	r = amdgpu_device_evict_resources(adev);
	if (r)