<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alex</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Liang, Prike <Prike.Liang@amd.com><br>
<b>Sent:</b> Thursday, September 5, 2024 3:36 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Subject:</b> RE: [PATCH] drm/amdgpu: update suspend status for aborting from deeper suspend</font>
<div> </div>
</div>
<div class="BodyFragment"><font face="Times New Roman" size="3"><span style="font-size:12pt;"><a name="BM_BEGIN"></a>
<div><font size="2"><span style="font-size:11pt;">[AMD Official Use Only - AMD Internal Distribution Only]<br>
<br>
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.<br>
<br>
Could this patch get a review or acknowledgment?<br>
<br>
Thanks,<br>
Prike<br>
<br>
> -----Original Message-----<br>
> From: Liang, Prike <Prike.Liang@amd.com><br>
> Sent: Monday, September 2, 2024 4:13 PM<br>
> To: amd-gfx@lists.freedesktop.org<br>
> Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Liang, Prike<br>
> <Prike.Liang@amd.com><br>
> Subject: [PATCH] drm/amdgpu: update suspend status for aborting from<br>
> deeper suspend<br>
><br>
> There're some other suspend abort cases which can call the noirq suspend<br>
> except for executing _S3 method. In those cases need to process as<br>
> incomplete suspendsion.<br>
><br>
> Signed-off-by: Prike Liang <Prike.Liang@amd.com><br>
> ---<br>
> drivers/gpu/drm/amd/amdgpu/soc15.c | 10 ++++++----<br>
> 1 file changed, 6 insertions(+), 4 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
> b/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
> index 8d16dacdc172..cf701bb8fc79 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
> @@ -587,11 +587,13 @@ static bool soc15_need_reset_on_resume(struct<br>
> amdgpu_device *adev)<br>
> * 2) S3 suspend abort and TOS already launched.<br>
> */<br>
> if (adev->flags & AMD_IS_APU && adev->in_s3 &&<br>
> - !adev->suspend_complete &&<br>
> - sol_reg)<br>
> + sol_reg) {<br>
> + adev->suspend_complete = false;<br>
> return true;<br>
> -<br>
> - return false;<br>
> + } else {<br>
> + adev->suspend_complete = true;<br>
> + return false;<br>
> + }<br>
> }<br>
><br>
> static int soc15_asic_reset(struct amdgpu_device *adev)<br>
> --<br>
> 2.34.1<br>
<br>
</span></font></div>
</span></font></div>
</div>
</body>
</html>