<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:Arial;font-size:10pt;color:#0078D7;margin:15pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Do we know if whatever issue was actually fixed on renoir? If not, I'd say just leave it for now.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alex</div>
<div style="font-family: Calibri, Arial, 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> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Zhu, Changfeng <Changfeng.Zhu@amd.com><br>
<b>Sent:</b> Wednesday, April 15, 2020 7:27 AM<br>
<b>To:</b> Zhang, Hawking <Hawking.Zhang@amd.com>; Zhu, James <James.Zhu@amd.com>; Alex Deucher <alexdeucher@gmail.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Huang, Shimmer <Xinmei.Huang@amd.com>; Huang, Ray <Ray.Huang@amd.com><br>
<b>Subject:</b> RE: [PATCH] drm/amdgpu/vcn: fix gfxoff issue</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[AMD Official Use Only - Internal Distribution Only]<br>
<br>
After drop this WA,<br>
It can't enter GFXOFF on raven2. <br>
And it can't run S3 successfully on Picasso and raven1.<br>
<br>
I suggest that it can add chip type and drop this WA only on renoir.<br>
<br>
BR,<br>
Changfeng<br>
<br>
-----Original Message-----<br>
From: Zhang, Hawking <Hawking.Zhang@amd.com> <br>
Sent: Wednesday, April 15, 2020 11:05 AM<br>
To: Zhu, James <James.Zhu@amd.com>; Alex Deucher <alexdeucher@gmail.com>; Zhu, Changfeng <Changfeng.Zhu@amd.com>; amd-gfx@lists.freedesktop.org<br>
Cc: Zhang, Hawking <Hawking.Zhang@amd.com><br>
Subject: RE: [PATCH] drm/amdgpu/vcn: fix gfxoff issue<br>
<br>
[AMD Official Use Only - Internal Distribution Only]<br>
<br>
This actually introduced at very early stage we enabled GFXOFF for the first time on Raven platform. At that time gfxoff can't work with Video play back (this is general issue across all OSes). So we disabled gfxoff when there is workload on VCN.<br>
<br>
For most ASICs, it shall be removed. The only concern is some old Raven platform where the rlc fw fixes are not available.
<br>
<br>
I had a quick chat with @Zhu, Changfeng who will have a quick validation on his old Raven platform so that we can safely remove this workaround finally.<br>
<br>
Regards,<br>
Hawking<br>
-----Original Message-----<br>
From: Zhu, James <James.Zhu@amd.com><br>
Sent: Tuesday, April 14, 2020 23:00<br>
To: Alex Deucher <alexdeucher@gmail.com>; Zhu, James <James.Zhu@amd.com>; Zhang, Hawking <Hawking.Zhang@amd.com><br>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>; Zhu, Changfeng <Changfeng.Zhu@amd.com><br>
Subject: Re: [PATCH] drm/amdgpu/vcn: fix gfxoff issue<br>
<br>
+Hawking<br>
<br>
Hi Hawking,<br>
<br>
can we drop this WA?<br>
<br>
Thanks!<br>
<br>
James<br>
<br>
On 2020-04-14 10:52 a.m., James Zhu wrote:<br>
> +Rex<br>
><br>
> This is introduce by below patch.<br>
><br>
> commit 3fded222f4bf7f4c56ef4854872a39a4de08f7a8<br>
> Author: Rex Zhu <Rex.Zhu@amd.com><br>
> Date: Fri Jul 27 17:00:02 2018 +0800<br>
><br>
> drm/amdgpu: Disable gfx off if VCN is busy<br>
><br>
> this patch is a workaround for the gpu hang<br>
> at video begin/end time if gfx off is enabled.<br>
><br>
> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com><br>
> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com><br>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com><br>
><br>
><br>
> On 2020-04-14 10:22 a.m., Alex Deucher wrote:<br>
>> On Tue, Apr 14, 2020 at 8:05 AM James Zhu <James.Zhu@amd.com> wrote:<br>
>>> Turn off gfxoff control when vcn is gated.<br>
>>><br>
>>> Signed-off-by: James Zhu <James.Zhu@amd.com><br>
>>> ---<br>
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 8 +++++---<br>
>>> 1 file changed, 5 insertions(+), 3 deletions(-)<br>
>>><br>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
>>> index dab34f6..aa9a7a5 100644<br>
>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
>>> @@ -369,9 +369,11 @@ void amdgpu_vcn_ring_begin_use(struct <br>
>>> amdgpu_ring *ring) cancel_delayed_work_sync(&adev->vcn.idle_work);<br>
>>><br>
>>> mutex_lock(&adev->vcn.vcn_pg_lock);<br>
>>> - amdgpu_gfx_off_ctrl(adev, false);<br>
>>> - amdgpu_device_ip_set_powergating_state(adev,<br>
>>> AMD_IP_BLOCK_TYPE_VCN,<br>
>>> - AMD_PG_STATE_UNGATE);<br>
>>> + if (adev->vcn.cur_state == AMD_PG_STATE_GATE) {<br>
>>> + amdgpu_gfx_off_ctrl(adev, false);<br>
>>> + amdgpu_device_ip_set_powergating_state(adev,<br>
>>> AMD_IP_BLOCK_TYPE_VCN,<br>
>>> + AMD_PG_STATE_UNGATE);<br>
>>> + }<br>
>>><br>
>> Why are we touching gfxoff with VCN? Was this a leftover from bring <br>
>> up? Can we just drop all of this gfxoff stuff from VCN handling? I <br>
>> don't see why there would be a dependency.<br>
>><br>
>> Alex<br>
>><br>
>>> if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) {<br>
>>> struct dpg_pause_state new_state;<br>
>>> --<br>
>>> 2.7.4<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%2Fli">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli</a><br>
>>> sts.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%<br>
>>> 7CJames.Zhu%40amd.com%7C3dd9135c717a4b3011e308d7e07f52b6%7C3dd8961fe<br>
>>> 4884e608e11a82d994e183d%7C0%7C0%7C637224709763391845&sdata=Y%2Bt<br>
>>> sJQNB1TXCQ9v86DW%2F0FC63gOSHsfzzZFu0MDvCHw%3D&reserved=0<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&data=02%7C01%7Calexander.deucher%40amd.com%7C9c7d297e1bae4b559e2c08d7e12ff6b7%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637225469199881257&sdata=l%2BQiZNOq%2F%2FazFg2wmPAt6ZmNSQfJsniMA4W%2BQUBzTxE%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Calexander.deucher%40amd.com%7C9c7d297e1bae4b559e2c08d7e12ff6b7%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637225469199881257&sdata=l%2BQiZNOq%2F%2FazFg2wmPAt6ZmNSQfJsniMA4W%2BQUBzTxE%3D&reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>