<html 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=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:DengXian;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Yeah, synced to the latest code. Somehow ‘drm/amd/pm: drop redundant declarations’was reverted somehow at a point.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Best wishes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kenneth Feng <o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:DengXian"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">发件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Lazar,
 Lijo <Lijo.Lazar@amd.com><br>
</span><b><span style="color:black">日期</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black">星期三</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">, 2022</span><span style="color:black">年</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">6</span><span style="color:black">月</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">8</span><span style="color:black">日</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">
 17:14<br>
</span><b><span style="color:black">收件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Feng, Kenneth <Kenneth.Feng@amd.com>, amd-gfx@lists.freedesktop.org
 <amd-gfx@lists.freedesktop.org><br>
</span><b><span style="color:black">主题</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Re: [PATCH 2/5] drm/amd/pm: enable BACO on smu_v13_0_7<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><br>
<br>
On 6/8/2022 2:35 PM, Kenneth Feng wrote:<br>
> enable BACO on smu_v13_0_7<br>
> <br>
> Signed-off-by: Kenneth Feng <kenneth.feng@amd.com><br>
> ---<br>
>   drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c            | 1 +<br>
>   drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 7 +++++++<br>
>   2 files changed, 8 insertions(+)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c<br>
> index fb04d82f66e6..f57710790b8c 100644<br>
> --- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c<br>
> +++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c<br>
> @@ -1456,6 +1456,7 @@ static int smu_disable_dpms(struct smu_context *smu)<br>
>                case IP_VERSION(11, 0, 0):<br>
>                case IP_VERSION(11, 0, 5):<br>
>                case IP_VERSION(11, 0, 9):<br>
> +             case IP_VERSION(13, 0, 7):<br>
>                        return 0;<br>
>                default:<br>
>                        break;<br>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c<br>
> index 7da42cae5d6e..dc614befcdf5 100644<br>
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c<br>
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c<br>
> @@ -97,6 +97,7 @@ static struct cmn2asic_msg_mapping smu_v13_0_7_message_map[SMU_MSG_MAX_COUNT] =<br>
>        MSG_MAP(UseDefaultPPTable,              PPSMC_MSG_UseDefaultPPTable,           0),<br>
>        MSG_MAP(RunDcBtc,                       PPSMC_MSG_RunDcBtc,                    0),<br>
>        MSG_MAP(EnterBaco,                      PPSMC_MSG_EnterBaco,                   0),<br>
> +     MSG_MAP(ExitBaco,           PPSMC_MSG_ExitBaco,                             0),<br>
>        MSG_MAP(SetSoftMinByFreq,               PPSMC_MSG_SetSoftMinByFreq,            1),<br>
>        MSG_MAP(SetSoftMaxByFreq,               PPSMC_MSG_SetSoftMaxByFreq,            1),<br>
>        MSG_MAP(SetHardMinByFreq,               PPSMC_MSG_SetHardMinByFreq,            1),<br>
> @@ -281,6 +282,7 @@ smu_v13_0_7_get_allowed_feature_mask(struct smu_context *smu,<br>
>        *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_BACO_MPCLK_DS_BIT);<br>
>        *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_PCC_DFLL_BIT);<br>
>        *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_SOC_CG_BIT);<br>
> +     *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_BACO_BIT);<br>
>   <br>
>        if (adev->pm.pp_feature & PP_DCEFCLK_DPM_MASK)<br>
>                *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_DCN_BIT);<br>
> @@ -1584,6 +1586,11 @@ static const struct pptable_funcs smu_v13_0_7_ppt_funcs = {<br>
>        .set_tool_table_location = smu_v13_0_set_tool_table_location,<br>
>        .get_pp_feature_mask = smu_cmn_get_pp_feature_mask,<br>
>        .set_pp_feature_mask = smu_cmn_set_pp_feature_mask,<br>
> +     .baco_is_support = smu_v13_0_baco_is_support,<br>
> +     .baco_get_state = smu_v13_0_baco_get_state,<br>
> +     .baco_set_state = smu_v13_0_baco_set_state,<br>
> +     .baco_enter = smu_v13_0_baco_enter,<br>
> +     .baco_exit = smu_v13_0_baco_exit,<br>
<br>
I remember seeing this one -  "drm/amd/pm: drop redundant declarations" <br>
which drops smu13 baco common functions. Is this in sync with the latest <br>
source?<br>
<br>
Thanks,<br>
Lijo<br>
<br>
<br>
>   };<br>
>   <br>
>   void smu_v13_0_7_set_ppt_funcs(struct smu_context *smu)<br>
> <o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>