[PATCH] drm/amdgpu: update suspend status for aborting from deeper suspend
Deucher, Alexander
Alexander.Deucher at amd.com
Fri Sep 6 17:34:06 UTC 2024
[AMD Official Use Only - AMD Internal Distribution Only]
Can you elaborate on how this fails? Seems like maybe we should just get rid of adev->suspend_complete and just check the MP0 SOL register to determine whether or not we need to reset the GPU on resume.
Alex
________________________________
From: Liang, Prike <Prike.Liang at amd.com>
Sent: Thursday, September 5, 2024 3:36 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>
Subject: RE: [PATCH] drm/amdgpu: update suspend status for aborting from deeper suspend
[AMD Official Use Only - AMD Internal Distribution Only]
According to the ChromeOS team test, this patch can resolve the S3 suspend abort from deeper sleep, which occurs when suspension aborts after calling the noirq suspend and before executing the _S3 and turning off the power rail.
Could this patch get a review or acknowledgment?
Thanks,
Prike
> -----Original Message-----
> From: Liang, Prike <Prike.Liang at amd.com>
> Sent: Monday, September 2, 2024 4:13 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Liang, Prike
> <Prike.Liang at amd.com>
> Subject: [PATCH] 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: Prike Liang <Prike.Liang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/soc15.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c
> b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 8d16dacdc172..cf701bb8fc79 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -587,11 +587,13 @@ 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;
> -
> - return false;
> + } else {
> + adev->suspend_complete = true;
> + return false;
> + }
> }
>
> static int soc15_asic_reset(struct amdgpu_device *adev)
> --
> 2.34.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20240906/ecb711dd/attachment-0001.htm>
More information about the amd-gfx
mailing list