Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6707218 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amdgpu: when resume failed, return error to avoid system hang.



Continuing if the GPU fails to resume will end in pain.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a9f87f64
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2249,9 +2249,10 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
	}

	r = amdgpu_resume(adev);
	if (r)
	if (r) {
		DRM_ERROR("amdgpu_resume failed (%d).\n", r);

		return r;
	}
	amdgpu_fence_driver_resume(adev);

	if (resume) {