<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);">
Thanks.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.com><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> Quan, Evan <Evan.Quan@amd.com><br>
<b>Sent:</b> Thursday, September 24, 2020 11:38 PM<br>
<b>To:</b> Alex Deucher <alexdeucher@gmail.com><br>
<b>Cc:</b> amd-gfx list <amd-gfx@lists.freedesktop.org>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Subject:</b> RE: [PATCH] drm/amd/pm: fix screen flicker seen on Navi14 with 2*4K monitors</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 - Internal Distribution Only]<br>
<br>
That(postpone SOCCLK/UCLK enablement) will be revised and added back after confirmed with DAL team.<br>
For now, we just revert it to get around the screen flicker issue introduced.<br>
<br>
BR<br>
Evan<br>
-----Original Message-----<br>
From: Alex Deucher <alexdeucher@gmail.com><br>
Sent: Thursday, September 24, 2020 9:01 PM<br>
To: Quan, Evan <Evan.Quan@amd.com><br>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
Subject: Re: [PATCH] drm/amd/pm: fix screen flicker seen on Navi14 with 2*4K monitors<br>
<br>
On Thu, Sep 24, 2020 at 6:10 AM Evan Quan <evan.quan@amd.com> wrote:<br>
><br>
> Revert the guilty change introduced by the commit below:<br>
> drm/amd/pm: postpone SOCCLK/UCLK enablement after DAL<br>
> initialization(V2)<br>
><br>
> Change-Id: I0cab619ffdf0f83b14ba5d2907e1b9c02a984e2f<br>
> Signed-off-by: Evan Quan <evan.quan@amd.com><br>
<br>
Won't this effectively disable the potential fix for multiple monitors at boot time?<br>
<br>
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
<br>
> ---<br>
> .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 43 ++++++-------------<br>
> 1 file changed, 12 insertions(+), 31 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
> b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
> index 1695b36dc23c..be44cb941e73 100644<br>
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
> @@ -316,6 +316,18 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,<br>
> if (smu->dc_controlled_by_gpio)<br>
> *(uint64_t *)feature_mask |=<br>
> FEATURE_MASK(FEATURE_ACDC_BIT);<br>
><br>
> + if (adev->pm.pp_feature & PP_SOCCLK_DPM_MASK)<br>
> + *(uint64_t *)feature_mask |=<br>
> + FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT);<br>
> +<br>
> + /* DPM UCLK enablement should be skipped for navi10 A0 secure board */<br>
> + if (!(is_asic_secure(smu) &&<br>
> + (adev->asic_type == CHIP_NAVI10) &&<br>
> + (adev->rev_id == 0)) &&<br>
> + (adev->pm.pp_feature & PP_MCLK_DPM_MASK))<br>
> + *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)<br>
> + | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)<br>
> + |<br>
> + FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);<br>
> +<br>
> /* DS SOCCLK enablement should be skipped for navi10 A0 secure board */<br>
> if (is_asic_secure(smu) &&<br>
> (adev->asic_type == CHIP_NAVI10) && @@ -2629,43 +2641,12<br>
> @@ static int navi10_enable_mgpu_fan_boost(struct smu_context *smu)<br>
><br>
> static int navi10_post_smu_init(struct smu_context *smu) {<br>
> - struct smu_feature *feature = &smu->smu_feature;<br>
> struct amdgpu_device *adev = smu->adev;<br>
> - uint64_t feature_mask = 0;<br>
> int ret = 0;<br>
><br>
> if (amdgpu_sriov_vf(adev))<br>
> return 0;<br>
><br>
> - /* For Naiv1x, enable these features only after DAL initialization */<br>
> - if (adev->pm.pp_feature & PP_SOCCLK_DPM_MASK)<br>
> - feature_mask |= FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT);<br>
> -<br>
> - /* DPM UCLK enablement should be skipped for navi10 A0 secure board */<br>
> - if (!(is_asic_secure(smu) &&<br>
> - (adev->asic_type == CHIP_NAVI10) &&<br>
> - (adev->rev_id == 0)) &&<br>
> - (adev->pm.pp_feature & PP_MCLK_DPM_MASK))<br>
> - feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)<br>
> - | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)<br>
> - | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);<br>
> -<br>
> - if (!feature_mask)<br>
> - return 0;<br>
> -<br>
> - bitmap_or(feature->allowed,<br>
> - feature->allowed,<br>
> - (unsigned long *)(&feature_mask),<br>
> - SMU_FEATURE_MAX);<br>
> -<br>
> - ret = smu_cmn_feature_update_enable_state(smu,<br>
> - feature_mask,<br>
> - true);<br>
> - if (ret) {<br>
> - dev_err(adev->dev, "Failed to post uclk/socclk dpm enablement!\n");<br>
> - return ret;<br>
> - }<br>
> -<br>
> ret = navi10_run_umc_cdr_workaround(smu);<br>
> if (ret) {<br>
> dev_err(adev->dev, "Failed to apply umc cdr<br>
> workaround!\n");<br>
> --<br>
> 2.28.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%2Flist">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist</a><br>
> s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cev<br>
> an.quan%40amd.com%7C3899143b7990458f882c08d86089df67%7C3dd8961fe4884e6<br>
> 08e11a82d994e183d%7C0%7C0%7C637365492561293539&sdata=J%2FM6YSLX6d%<br>
> 2BMO%2B%2FWzdKAW7JlVZM%2FMFRDpTfi6UHkozk%3D&reserved=0<br>
</span></font></div>
</span></font></div>
</div>
</body>
</html>