<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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Oh perfect. pp_dpm_sclk/pp_dpm_mclk just report what the stable pstate would be. To enact that pstate, we would use the options available in force_performance_level.
Thank you for the clarification!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Kent<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Deucher, Alexander
<br>
<b>Sent:</b> Monday, January 08, 2018 4:19 PM<br>
<b>To:</b> Russell, Kent; Alex Deucher; Kuehling, Felix<br>
<b>Cc:</b> amd-gfx list<br>
<b>Subject:</b> Re: [PATCH 2/2] drm/amd/pp: Add stable Pstate clk display when print_clock_levels<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif";color:black">The changes to the pp_dpm_files are purely informational with this patch (you can't actually interact with the stable pstate) so I think they should be dropped and exposed some other way. Setting
the profile modes via force_performance_level forces the clocks and disables clock and power gating. That is the interface you should use to interact with it.<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Alex<o:p></o:p></span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-family:"Calibri","sans-serif";color:black">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> amd-gfx <<a href="mailto:amd-gfx-bounces@lists.freedesktop.org">amd-gfx-bounces@lists.freedesktop.org</a>>
on behalf of Russell, Kent <<a href="mailto:Kent.Russell@amd.com">Kent.Russell@amd.com</a>><br>
<b>Sent:</b> Monday, January 8, 2018 3:22 PM<br>
<b>To:</b> Alex Deucher; Kuehling, Felix<br>
<b>Cc:</b> amd-gfx list<br>
<b>Subject:</b> RE: [PATCH 2/2] drm/amd/pp: Add stable Pstate clk display when print_clock_levels</span><span style="font-family:"Calibri","sans-serif";color:black">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Sorry, I just re-read and saw that this will be in sclk and mclk, not just mclk. So will this have a direct impact on any other functionality, or will it just
disable clock/power gating and prevent the clocks from changing?<br>
<br>
Kent<br>
<br>
-----Original Message-----<br>
From: Russell, Kent <br>
Sent: Monday, January 08, 2018 2:52 PM<br>
To: 'Alex Deucher'; Kuehling, Felix<br>
Cc: amd-gfx list<br>
Subject: RE: [PATCH 2/2] drm/amd/pp: Add stable Pstate clk display when print_clock_levels<br>
<br>
And yes, it will confuse the SMI in a couple functions, but thankfully it's nice enough that I can fix it with a couple lines.
<br>
<br>
So just to make sure that I understand this correctly, if a user were to echo P to the pp_dpm_mclk file, it would disable clockgating and powergating and keep the memory clocks at a stable level (likely level 0)? And this would have no impact on the SCLK or
Power Profile or anything else, just the mclk? Just asking so I know how to implement it in the SMI. Thanks!<br>
<br>
Kent<br>
<br>
-----Original Message-----<br>
From: Alex Deucher [<a href="mailto:alexdeucher@gmail.com">mailto:alexdeucher@gmail.com</a>]<br>
Sent: Monday, January 08, 2018 2:35 PM<br>
To: Kuehling, Felix<br>
Cc: amd-gfx list; Russell, Kent<br>
Subject: Re: [PATCH 2/2] drm/amd/pp: Add stable Pstate clk display when print_clock_levels<br>
<br>
On Mon, Jan 8, 2018 at 2:20 PM, Felix Kuehling <<a href="mailto:felix.kuehling@amd.com">felix.kuehling@amd.com</a>> wrote:<br>
> [+Kent] <br>
><br>
> What does stable pstate mean? What is it used for?<br>
<br>
This is used for the profiling stuff in force_performance_level. It disables clock and power gating and sets stable clock levels for doing performance profiling.<br>
<br>
Alex<br>
<br>
><br>
> Hi Kent,<br>
><br>
> Is this going to confuse rocm_smi?<br>
><br>
> Regards,<br>
> Felix<br>
><br>
><br>
> On 2018-01-08 04:57 AM, Rex Zhu wrote:<br>
>> The additional output are at the end of sclk/mclk info as cat <br>
>> pp_dpm_mclk<br>
>> 0: 300Mhz *<br>
>> 1: 1650Mhz<br>
>> P: 300Mhz<br>
>><br>
>> Signed-off-by: Rex Zhu <<a href="mailto:Rex.Zhu@amd.com">Rex.Zhu@amd.com</a>><br>
>><br>
>> Change-Id: Idf8eeedb5d399d9ffb7de7a2fb2976c7fa7c01a8<br>
>> ---<br>
>> drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 2 ++<br>
>> drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 2 ++<br>
>> drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 ++<br>
>> drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 ++<br>
>> 4 files changed, 8 insertions(+)<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 f68dd08..03dfba0 100644<br>
>> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c<br>
>> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c<br>
>> @@ -1601,6 +1601,7 @@ static int cz_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> size += sprintf(buf + size, "%d: %uMhz %s\n",<br>
>> i, sclk_table->entries[i].clk / 100,<br>
>> (i == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_sclk/100);<br>
>> break;<br>
>> case PP_MCLK:<br>
>> now =<br>
>> PHM_GET_FIELD(cgs_read_ind_register(hwmgr->device,<br>
>> @@ -1613,6 +1614,7 @@ static int cz_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> size += sprintf(buf + size, "%d: %uMhz %s\n",<br>
>> CZ_NUM_NBPMEMORYCLOCK-i, data->sys_info.nbp_memory_clock[i-1] / 100,<br>
>> (CZ_NUM_NBPMEMORYCLOCK-i ==<br>
>> now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_mclk/100);<br>
>> break;<br>
>> default:<br>
>> break;<br>
>> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c<br>
>> b/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c<br>
>> index 409a56b..88c6ad8 100644<br>
>> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c<br>
>> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c<br>
>> @@ -756,6 +756,7 @@ static int rv_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> data->gfx_max_freq_limit / 100,<br>
>> ((data->gfx_max_freq_limit / 100)<br>
>> == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_sclk/100);<br>
>> break;<br>
>> case PP_MCLK:<br>
>> PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr,<br>
>> @@ -773,6 +774,7 @@ static int rv_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> mclk_table->entries[i].clk / 100,<br>
>> ((mclk_table->entries[i].clk / 100)<br>
>> == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_mclk/100);<br>
>> break;<br>
>> default:<br>
>> break;<br>
>> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c<br>
>> b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c<br>
>> index 72031bd..1bdcd86 100644<br>
>> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c<br>
>> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c<br>
>> @@ -4372,6 +4372,7 @@ static int smu7_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> size += sprintf(buf + size, "%d: %uMhz %s\n",<br>
>> i, sclk_table->dpm_levels[i].value / 100,<br>
>> (i == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_sclk/100);<br>
>> break;<br>
>> case PP_MCLK:<br>
>> smum_send_msg_to_smc(hwmgr, <br>
>> PPSMC_MSG_API_GetMclkFrequency); @@ -4388,6 +4389,7 @@ static int smu7_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> size += sprintf(buf + size, "%d: %uMhz %s\n",<br>
>> i, mclk_table->dpm_levels[i].value / 100,<br>
>> (i == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_mclk/100);<br>
>> break;<br>
>> case PP_PCIE:<br>
>> pcie_speed = smu7_get_current_pcie_speed(hwmgr);<br>
>> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c<br>
>> b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c<br>
>> index cb35f4f..cab50fc 100644<br>
>> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c<br>
>> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c<br>
>> @@ -4565,6 +4565,7 @@ static int vega10_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> size += sprintf(buf + size, "%d: %uMhz %s\n",<br>
>> i, sclk_table->dpm_levels[i].value / 100,<br>
>> (i == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_sclk/100);<br>
>> break;<br>
>> case PP_MCLK:<br>
>> if (data->registry_data.mclk_dpm_key_disabled)<br>
>> @@ -4583,6 +4584,7 @@ static int vega10_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
>> size += sprintf(buf + size, "%d: %uMhz %s\n",<br>
>> i, mclk_table->dpm_levels[i].value / 100,<br>
>> (i == now) ? "*" : "");<br>
>> + size += sprintf(buf + size, "P: %uMhz\n",<br>
>> + hwmgr->pstate_mclk/100);<br>
>> break;<br>
>> case PP_PCIE:<br>
>> PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr,<br>
><br>
> _______________________________________________<br>
> amd-gfx mailing list<br>
> <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>