<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=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:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:DengXian;
color:windowtext;}
span.searchhighlight
{mso-style-name:searchhighlight;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.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><!--[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="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>
<div class="WordSection1">
<p class="MsoNormal"><span class="searchhighlight"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#070706;background:#FFEE94">Series</span></span><span class="apple-converted-space"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#070706;background:#FFEE94"> </span></span><span class="searchhighlight"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#070706;background:#FFEE94">is</span></span><span class="apple-converted-space"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#070706;background:#FFEE94"> </span></span><span class="searchhighlight"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#070706;background:#FFEE94">Reviewed-by</span></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">:
Kenneth Feng <</span><span lang="EN-US" style="color:black"><a href="mailto:kenneth.feng@amd.com" title="mailto:kenneth.feng@amd.com"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0078D4">kenneth.feng@amd.com</span></a></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">></span><span lang="EN-US"><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"> amd-gfx
<amd-gfx-bounces@lists.freedesktop.org> </span><span style="color:black">代表</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Yang Wang <KevinYang.Wang@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">5</span><span style="color:black">月</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">11</span><span style="color:black">日</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">
13:09<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"> 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"> Wang, Yang(Kevin) <KevinYang.Wang@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"> [PATCH 1/2] drm/amd/pm: add smu feature map support
for smu_v13_0_7<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="font-size:11.0pt">[CAUTION: External Email]<br>
<br>
the pp_features can't display full feauture information<br>
when these mapping is not exiting.<br>
<br>
Signed-off-by: Yang Wang <KevinYang.Wang@amd.com><br>
---<br>
drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 23 ++++++++<br>
.../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 58 ++++++++++++++++---<br>
2 files changed, 73 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h<br>
index 3f40cd6e4165..799050ea7515 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h<br>
@@ -368,6 +368,29 @@ enum smu_clk_type {<br>
__SMU_DUMMY_MAP(DATA_CALCULATION), \<br>
__SMU_DUMMY_MAP(DPM_VCLK), \<br>
__SMU_DUMMY_MAP(DPM_DCLK), \<br>
+ __SMU_DUMMY_MAP(FW_DATA_READ), \<br>
+ __SMU_DUMMY_MAP(DPM_GFX_POWER_OPTIMIZER), \<br>
+ __SMU_DUMMY_MAP(DPM_DCN), \<br>
+ __SMU_DUMMY_MAP(VMEMP_SCALING), \<br>
+ __SMU_DUMMY_MAP(VDDIO_MEM_SCALING), \<br>
+ __SMU_DUMMY_MAP(MM_DPM), \<br>
+ __SMU_DUMMY_MAP(SOC_MPCLK_DS), \<br>
+ __SMU_DUMMY_MAP(BACO_MPCLK_DS), \<br>
+ __SMU_DUMMY_MAP(THROTTLERS), \<br>
+ __SMU_DUMMY_MAP(SMARTSHIFT), \<br>
+ __SMU_DUMMY_MAP(GFX_READ_MARGIN), \<br>
+ __SMU_DUMMY_MAP(GFX_IMU), \<br>
+ __SMU_DUMMY_MAP(GFX_PCC_DFLL), \<br>
+ __SMU_DUMMY_MAP(BOOT_TIME_CAL), \<br>
+ __SMU_DUMMY_MAP(BOOT_POWER_OPT), \<br>
+ __SMU_DUMMY_MAP(GFXCLK_SPREAD_SPECTRUM), \<br>
+ __SMU_DUMMY_MAP(SOC_PCC), \<br>
+ __SMU_DUMMY_MAP(OPTIMIZED_VMIN), \<br>
+ __SMU_DUMMY_MAP(CLOCK_POWER_DOWN_BYPASS), \<br>
+ __SMU_DUMMY_MAP(MEM_TEMP_READ), \<br>
+ __SMU_DUMMY_MAP(ATHUB_MMHUB_PG), \<br>
+ __SMU_DUMMY_MAP(BACO_CG), \<br>
+ __SMU_DUMMY_MAP(SOC_CG),<br>
<br>
#undef __SMU_DUMMY_MAP<br>
#define __SMU_DUMMY_MAP(feature) SMU_FEATURE_##feature##_BIT<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 00964b3728fe..7c9e0ba7ab50 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>
@@ -131,14 +131,56 @@ static struct cmn2asic_mapping smu_v13_0_7_clk_map[SMU_CLK_COUNT] = {<br>
};<br>
<br>
static struct cmn2asic_mapping smu_v13_0_7_feature_mask_map[SMU_FEATURE_COUNT] = {<br>
- [SMU_FEATURE_DPM_GFXCLK_BIT] = {1, FEATURE_DPM_GFXCLK_BIT},<br>
- [SMU_FEATURE_DPM_UCLK_BIT] = {1, FEATURE_DPM_UCLK_BIT},<br>
- [SMU_FEATURE_DPM_FCLK_BIT] = {1, FEATURE_DPM_FCLK_BIT},<br>
- [SMU_FEATURE_DPM_SOCCLK_BIT] = {1, FEATURE_DPM_SOCCLK_BIT},<br>
- [SMU_FEATURE_DPM_LINK_BIT] = {1, FEATURE_DPM_LINK_BIT},<br>
- [SMU_FEATURE_DPM_VCLK_BIT] = {1, FEATURE_MM_DPM_BIT},<br>
- [SMU_FEATURE_DPM_DCLK_BIT] = {1, FEATURE_MM_DPM_BIT},<br>
- [SMU_FEATURE_FAN_CONTROL_BIT] = {1, FEATURE_FAN_CONTROL_BIT},<br>
+ FEA_MAP(FW_DATA_READ),<br>
+ FEA_MAP(DPM_GFXCLK),<br>
+ FEA_MAP(DPM_GFX_POWER_OPTIMIZER),<br>
+ FEA_MAP(DPM_UCLK),<br>
+ FEA_MAP(DPM_FCLK),<br>
+ FEA_MAP(DPM_SOCCLK),<br>
+ FEA_MAP(DPM_MP0CLK),<br>
+ FEA_MAP(DPM_LINK),<br>
+ FEA_MAP(DPM_DCN),<br>
+ FEA_MAP(VMEMP_SCALING),<br>
+ FEA_MAP(VDDIO_MEM_SCALING),<br>
+ FEA_MAP(DS_GFXCLK),<br>
+ FEA_MAP(DS_SOCCLK),<br>
+ FEA_MAP(DS_FCLK),<br>
+ FEA_MAP(DS_LCLK),<br>
+ FEA_MAP(DS_DCFCLK),<br>
+ FEA_MAP(DS_UCLK),<br>
+ FEA_MAP(GFX_ULV),<br>
+ FEA_MAP(FW_DSTATE),<br>
+ FEA_MAP(GFXOFF),<br>
+ FEA_MAP(BACO),<br>
+ FEA_MAP(MM_DPM),<br>
+ FEA_MAP(SOC_MPCLK_DS),<br>
+ FEA_MAP(BACO_MPCLK_DS),<br>
+ FEA_MAP(THROTTLERS),<br>
+ FEA_MAP(SMARTSHIFT),<br>
+ FEA_MAP(GTHR),<br>
+ FEA_MAP(ACDC),<br>
+ FEA_MAP(VR0HOT),<br>
+ FEA_MAP(FW_CTF),<br>
+ FEA_MAP(FAN_CONTROL),<br>
+ FEA_MAP(GFX_DCS),<br>
+ FEA_MAP(GFX_READ_MARGIN),<br>
+ FEA_MAP(LED_DISPLAY),<br>
+ FEA_MAP(GFXCLK_SPREAD_SPECTRUM),<br>
+ FEA_MAP(OUT_OF_BAND_MONITOR),<br>
+ FEA_MAP(OPTIMIZED_VMIN),<br>
+ FEA_MAP(GFX_IMU),<br>
+ FEA_MAP(BOOT_TIME_CAL),<br>
+ FEA_MAP(GFX_PCC_DFLL),<br>
+ FEA_MAP(SOC_CG),<br>
+ FEA_MAP(DF_CSTATE),<br>
+ FEA_MAP(GFX_EDC),<br>
+ FEA_MAP(BOOT_POWER_OPT),<br>
+ FEA_MAP(CLOCK_POWER_DOWN_BYPASS),<br>
+ FEA_MAP(DS_VCN),<br>
+ FEA_MAP(BACO_CG),<br>
+ FEA_MAP(MEM_TEMP_READ),<br>
+ FEA_MAP(ATHUB_MMHUB_PG),<br>
+ FEA_MAP(SOC_PCC),<br>
};<br>
<br>
static struct cmn2asic_mapping smu_v13_0_7_table_map[SMU_TABLE_COUNT] = {<br>
--<br>
2.25.1<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>