<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Hi Alex,<br>
<br>
》BTW, can you review my stable p-state fix for CZ?<br>
》https://patchwork.freedesktop.org/patch/174102<br>
<br>
Patch is <br>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com><br>
<br>
Best Regards<br>
Rex<br>
<br>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Deucher, Alexander<br>
<b>Sent:</b> Friday, September 1, 2017 11:03:10 PM<br>
<b>To:</b> Zhu, Rex; amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Zhu, Rex<br>
<b>Subject:</b> RE: [PATCH 4/4] drm/amd/powerplay: set uvd/vce/nb/mclk level as UMD P-state required</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">> -----Original Message-----<br>
> From: amd-gfx [<a href="mailto:amd-gfx-bounces@lists.freedesktop.org">mailto:amd-gfx-bounces@lists.freedesktop.org</a>] On Behalf<br>
> Of Rex Zhu<br>
> Sent: Friday, September 01, 2017 5:51 AM<br>
> To: amd-gfx@lists.freedesktop.org<br>
> Cc: Zhu, Rex<br>
> Subject: [PATCH 4/4] drm/amd/powerplay: set uvd/vce/nb/mclk level as<br>
> UMD P-state required<br>
> <br>
> Change-Id: I6e5cb169fcc22525d26cdc3f82ca011249f912ef<br>
> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com><br>
<br>
This series is:<br>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
<br>
BTW, can you review my stable p-state fix for CZ?<br>
<a href="https://patchwork.freedesktop.org/patch/174102/">https://patchwork.freedesktop.org/patch/174102/</a><br>
<br>
Thanks,<br>
<br>
Alex<br>
<br>
> ---<br>
> drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 12 +++++++++---<br>
> 1 file changed, 9 insertions(+), 3 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c<br>
> b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c<br>
> index 573e4da..3a8bc74 100644<br>
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c<br>
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c<br>
> @@ -1138,7 +1138,11 @@ static int cz_apply_state_adjust_rules(struct<br>
> pp_hwmgr *hwmgr,<br>
> <br>
> cz_ps->action = cz_current_ps->action;<br>
> <br>
> - if (!force_high && (cz_ps->action == FORCE_HIGH))<br>
> + if (hwmgr->request_dpm_level ==<br>
> AMD_DPM_FORCED_LEVEL_PROFILE_PEAK)<br>
> + cz_nbdpm_pstate_enable_disable(hwmgr, false, false);<br>
> + else if (hwmgr->request_dpm_level ==<br>
> AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD)<br>
> + cz_nbdpm_pstate_enable_disable(hwmgr, false, true);<br>
> + else if (!force_high && (cz_ps->action == FORCE_HIGH))<br>
> cz_ps->action = CANCEL_FORCE_HIGH;<br>
> else if (force_high && (cz_ps->action != FORCE_HIGH))<br>
> cz_ps->action = FORCE_HIGH;<br>
> @@ -1416,7 +1420,8 @@ int cz_dpm_update_uvd_dpm(struct pp_hwmgr<br>
> *hwmgr, bool bgate)<br>
> if (!bgate) {<br>
> /* Stable Pstate is enabled and we need to set the UVD DPM<br>
> to highest level */<br>
> if (phm_cap_enabled(hwmgr-<br>
> >platform_descriptor.platformCaps,<br>
> - PHM_PlatformCaps_StablePState)) {<br>
> + PHM_PlatformCaps_StablePState)<br>
> + || hwmgr->en_umd_pstate) {<br>
> cz_hwmgr->uvd_dpm.hard_min_clk =<br>
> ptable->entries[ptable->count - 1].vclk;<br>
> <br>
> @@ -1445,7 +1450,8 @@ int cz_dpm_update_vce_dpm(struct pp_hwmgr<br>
> *hwmgr)<br>
> <br>
> /* Stable Pstate is enabled and we need to set the VCE DPM to<br>
> highest level */<br>
> if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,<br>
> - PHM_PlatformCaps_StablePState)) {<br>
> + PHM_PlatformCaps_StablePState)<br>
> + || hwmgr->en_umd_pstate) {<br>
> cz_hwmgr->vce_dpm.hard_min_clk =<br>
> ptable->entries[ptable->count - 1].ecclk;<br>
> <br>
> --<br>
> 1.9.1<br>
> <br>
> _______________________________________________<br>
> amd-gfx mailing list<br>
> amd-gfx@lists.freedesktop.org<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font>
</body>
</html>