<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Could you share the PCI sub revision and I try check the issue on the Vega10(1002:687f) but can’t find the
<o:p></o:p></p>
<p class="MsoNormal">reboot hang up.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Prike<o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Pan, Xinhui <Xinhui.Pan@amd.com> <br>
<b>Sent:</b> Sunday, April 12, 2020 2:58 PM<br>
<b>To:</b> Johannes Hirte <johannes.hirte@datenkhaos.de>; Liang, Prike <Prike.Liang@amd.com><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<br>
<b>Subject:</b> Re: [PATCH v2] drm/amdgpu: fix gfx hang during suspend with video playback (v2)<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black">Prike<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black">I hit this issue too. reboot hung with my vega10. it is ok with navi10.<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> amd-gfx <</span><a href="mailto:amd-gfx-bounces@lists.freedesktop.org">amd-gfx-bounces@lists.freedesktop.org</a><span style="color:black">> on behalf of Liang, Prike
<</span><a href="mailto:Prike.Liang@amd.com">Prike.Liang@amd.com</a><span style="color:black">><br>
<b>Sent:</b> Sunday, April 12, 2020 11:49:39 AM<br>
<b>To:</b> Johannes Hirte <</span><a href="mailto:johannes.hirte@datenkhaos.de">johannes.hirte@datenkhaos.de</a><span style="color:black">><br>
<b>Cc:</b> Deucher, Alexander <</span><a href="mailto:Alexander.Deucher@amd.com">Alexander.Deucher@amd.com</a><span style="color:black">>; Huang, Ray <</span><a href="mailto:Ray.Huang@amd.com">Ray.Huang@amd.com</a><span style="color:black">>; Quan, Evan <</span><a href="mailto:Evan.Quan@amd.com">Evan.Quan@amd.com</a><span style="color:black">>;
</span><a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><span style="color:black"> <</span><a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><span style="color:black">><br>
<b>Subject:</b> RE: [PATCH v2] drm/amdgpu: fix gfx hang during suspend with video playback (v2)</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">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 <<a href="mailto:johannes.hirte@datenkhaos.de">johannes.hirte@datenkhaos.de</a>><br>
> Sent: Sunday, April 12, 2020 7:56 AM<br>
> To: Liang, Prike <<a href="mailto:Prike.Liang@amd.com">Prike.Liang@amd.com</a>><br>
> Cc: <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>; Deucher, Alexander<br>
> <<a href="mailto:Alexander.Deucher@amd.com">Alexander.Deucher@amd.com</a>>; Huang, Ray <<a href="mailto:Ray.Huang@amd.com">Ray.Huang@amd.com</a>>;<br>
> Quan, Evan <<a href="mailto:Evan.Quan@amd.com">Evan.Quan@amd.com</a>><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 <<a href="mailto:Prike.Liang@amd.com">Prike.Liang@amd.com</a>><br>
> > Tested-by: Mengbing Wang <<a href="mailto:Mengbing.Wang@amd.com">Mengbing.Wang@amd.com</a>><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>
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cxinhui.pan%40amd.com%7Cde6e0578174940b5f29808d7de948b88%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637222601969843248&sdata=quWGElw%2Fo70VJibuZ7%2BzS%2FcHH2OHSDB%2B5uaFPQUf2Os%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cxinhui.pan%40amd.com%7Cde6e0578174940b5f29808d7de948b88%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637222601969843248&sdata=quWGElw%2Fo70VJibuZ7%2BzS%2FcHH2OHSDB%2B5uaFPQUf2Os%3D&reserved=0</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>