<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Prike<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
I hit this issue too. reboot hung with my vega10.  it is ok with navi10.<br>
</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> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Liang, Prike <Prike.Liang@amd.com><br>
<b>Sent:</b> Sunday, April 12, 2020 11:49:39 AM<br>
<b>To:</b> Johannes Hirte <johannes.hirte@datenkhaos.de><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Huang, Ray <Ray.Huang@amd.com>; Quan, Evan <Evan.Quan@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> RE: [PATCH v2] drm/amdgpu: fix gfx hang during suspend with video playback (v2)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Thanks update and verify. Could you give more detail information and error log message  
<br>
about you observed issue? <br>
<br>
Thanks,<br>
Prike<br>
> -----Original Message-----<br>
> From: Johannes Hirte <johannes.hirte@datenkhaos.de><br>
> Sent: Sunday, April 12, 2020 7:56 AM<br>
> To: Liang, Prike <Prike.Liang@amd.com><br>
> Cc: amd-gfx@lists.freedesktop.org; Deucher, Alexander<br>
> <Alexander.Deucher@amd.com>; Huang, Ray <Ray.Huang@amd.com>;<br>
> Quan, Evan <Evan.Quan@amd.com><br>
> Subject: Re: [PATCH v2] drm/amdgpu: fix gfx hang during suspend with video<br>
> playback (v2)<br>
> <br>
> On 2020 Apr 07, Prike Liang wrote:<br>
> > The system will be hang up during S3 suspend because of SMU is pending<br>
> > for GC not respose the register CP_HQD_ACTIVE access request.This<br>
> > issue root cause of accessing the GC register under enter GFX CGGPG<br>
> > and can be fixed by disable GFX CGPG before perform suspend.<br>
> ><br>
> > v2: Use disable the GFX CGPG instead of RLC safe mode guard.<br>
> ><br>
> > Signed-off-by: Prike Liang <Prike.Liang@amd.com><br>
> > Tested-by: Mengbing Wang <Mengbing.Wang@amd.com><br>
> > ---<br>
> >  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++--<br>
> >  1 file changed, 3 insertions(+), 2 deletions(-)<br>
> ><br>
> > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> > b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> > index 2e1f955..bf8735b 100644<br>
> > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
> > @@ -2440,8 +2440,6 @@ static int<br>
> > amdgpu_device_ip_suspend_phase1(struct amdgpu_device *adev)  {<br>
> >      int i, r;<br>
> ><br>
> > -   amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);<br>
> > -   amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);<br>
> ><br>
> >      for (i = adev->num_ip_blocks - 1; i >= 0; i--) {<br>
> >              if (!adev->ip_blocks[i].status.valid)<br>
> > @@ -3470,6 +3468,9 @@ int amdgpu_device_suspend(struct drm_device<br>
> *dev, bool fbcon)<br>
> >              }<br>
> >      }<br>
> ><br>
> > +   amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);<br>
> > +   amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);<br>
> > +<br>
> >      amdgpu_amdkfd_suspend(adev, !fbcon);<br>
> ><br>
> >      amdgpu_ras_suspend(adev);<br>
> <br>
> <br>
> This breaks shutdown/reboot on my system (Dell latitude 5495).<br>
> <br>
> --<br>
> Regards,<br>
>   Johannes Hirte<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cxinhui.pan%40amd.com%7Cde6e0578174940b5f29808d7de948b88%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637222601969843248&amp;sdata=quWGElw%2Fo70VJibuZ7%2BzS%2FcHH2OHSDB%2B5uaFPQUf2Os%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cxinhui.pan%40amd.com%7Cde6e0578174940b5f29808d7de948b88%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637222601969843248&amp;sdata=quWGElw%2Fo70VJibuZ7%2BzS%2FcHH2OHSDB%2B5uaFPQUf2Os%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</body>
</html>