Commit 6704dbf7 authored by Prike Liang's avatar Prike Liang Committed by Alex Deucher
Browse files

drm/amdgpu: update suspend status for aborting from deeper suspend



There're some other suspend abort cases which can call the noirq
suspend except for executing _S3 method. In those cases need to
process as incomplete suspendsion.

Signed-off-by: default avatarPrike Liang <Prike.Liang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dc443aa4
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -587,12 +587,14 @@ static bool soc15_need_reset_on_resume(struct amdgpu_device *adev)
	 * 2) S3 suspend abort and TOS already launched.
	 */
	if (adev->flags & AMD_IS_APU && adev->in_s3 &&
			!adev->suspend_complete &&
			sol_reg)
			sol_reg) {
		adev->suspend_complete = false;
		return true;

	} else {
		adev->suspend_complete = true;
		return false;
	}
}

static int soc15_asic_reset(struct amdgpu_device *adev)
{