<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Power containment has two parts, TDC limit and power limit. Only
      changing power limit is not equal to disabling power containment.</p>
    <p>Power containment in Fiji degrades compute performance. So we
      disable it to fix. It has been verified by compute performance
      test. If you want to replace it, it has to be verified, otherwise
      it will make a regression.</p>
    Regards,<br>
    Eric<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2018-01-25 06:15 PM, Zhu, Rex wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CY4PR12MB168701E9A698764CDCC6D278FBE10@CY4PR12MB1687.namprd12.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      For the power containment issue on Fiji.<br>
      We want to expose set power limit function.<br>
      Maybe we can adjust the power limit instand of just disable this
      feature.<br>
      But I am not sure this can meet kfd ‘ s requirement.<br>
      <br>
      Best Regards<br>
      Rex<br>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b>
          amd-gfx <a class="moz-txt-link-rfc2396E" href="mailto:amd-gfx-bounces@lists.freedesktop.org"><amd-gfx-bounces@lists.freedesktop.org></a> on
          behalf of Eric Huang <a class="moz-txt-link-rfc2396E" href="mailto:jinhuieric.huang@amd.com"><jinhuieric.huang@amd.com></a><br>
          <b>Sent:</b> Friday, January 26, 2018 12:18:45 AM<br>
          <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
          <b>Subject:</b> Re: [PATCH 1/4] drm/amd/pp: Add new smu
          callback function</font>
        <div> </div>
      </div>
      <div class="BodyFragment"><font size="2"><span
            style="font-size:11pt;">
            <div class="PlainText">Hi Rex,<br>
              <br>
              Why don't you use function
              smum_populate_requested_graphic_levels() <br>
              which is doing exactly the same thing as the function you
              add ?<br>
              <br>
              And in old power profile setting function <br>
              smu7_set_power_profile_state(), we implement this:<br>
              <br>
              if (hwmgr->chip_id == CHIP_FIJI) {<br>
                       if (request->type == AMD_PP_GFX_PROFILE)<br>
                           smu7_enable_power_containment(hwmgr);<br>
                       else if (request->type ==
              AMD_PP_COMPUTE_PROFILE)<br>
                           smu7_disable_power_containment(hwmgr);<br>
                   }<br>
              <br>
              This should be merged into your new power profile setting.<br>
              <br>
              Regards,<br>
              Eric<br>
              <br>
              On 2018-01-24 04:37 AM, Rex Zhu wrote:<br>
              > it is used for update dpm settings<br>
              ><br>
              > Change-Id: Idc0362c219d84564693ca90adf9299e56cfeb6a4<br>
              > Signed-off-by: Rex Zhu <a class="moz-txt-link-rfc2396E" href="mailto:Rex.Zhu@amd.com"><Rex.Zhu@amd.com></a><br>
              > ---<br>
              >   drivers/gpu/drm/amd/powerplay/inc/hwmgr.h     | 1 +<br>
              >   drivers/gpu/drm/amd/powerplay/inc/smumgr.h    | 1 +<br>
              >   drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 8
              ++++++++<br>
              >   3 files changed, 10 insertions(+)<br>
              ><br>
              > diff --git
              a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
              b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h<br>
              > index 604a7cb..3e8959e 100644<br>
              > --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h<br>
              > +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h<br>
              > @@ -238,6 +238,7 @@ struct pp_smumgr_func {<br>
              >        int
              (*populate_requested_graphic_levels)(struct pp_hwmgr
              *hwmgr,<br>
              >                        struct amd_pp_profile
              *request);<br>
              >        bool (*is_hw_avfs_present)(struct pp_hwmgr 
              *hwmgr);<br>
              > +     int (*update_dpm_settings)(struct pp_hwmgr
              *hwmgr, void *profile_setting);<br>
              >   };<br>
              >   <br>
              >   struct pp_hwmgr_func {<br>
              > diff --git
              a/drivers/gpu/drm/amd/powerplay/inc/smumgr.h
              b/drivers/gpu/drm/amd/powerplay/inc/smumgr.h<br>
              > index b1b27b2..e05a57e 100644<br>
              > --- a/drivers/gpu/drm/amd/powerplay/inc/smumgr.h<br>
              > +++ b/drivers/gpu/drm/amd/powerplay/inc/smumgr.h<br>
              > @@ -134,5 +134,6 @@ extern int
              smum_populate_requested_graphic_levels(struct pp_hwmgr
              *hwmgr,<br>
              >   <br>
              >   extern bool smum_is_hw_avfs_present(struct pp_hwmgr
              *hwmgr);<br>
              >   <br>
              > +extern int smum_update_dpm_settings(struct pp_hwmgr
              *hwmgr, void *profile_setting);<br>
              >   <br>
              >   #endif<br>
              > diff --git
              a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c
              b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c<br>
              > index 8673884..1ce4959 100644<br>
              > --- a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c<br>
              > +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c<br>
              > @@ -253,3 +253,11 @@ bool
              smum_is_hw_avfs_present(struct pp_hwmgr *hwmgr)<br>
              >   <br>
              >        return false;<br>
              >   }<br>
              > +<br>
              > +int smum_update_dpm_settings(struct pp_hwmgr *hwmgr,
              void *profile_setting)<br>
              > +{<br>
              > +     if
              (hwmgr->smumgr_funcs->update_dpm_settings)<br>
              > +             return
              hwmgr->smumgr_funcs->update_dpm_settings(hwmgr,
              profile_setting);<br>
              > +<br>
              > +     return -EINVAL;<br>
              > +}<br>
              <br>
              _______________________________________________<br>
              amd-gfx mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
              <a
                href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx"
                moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
            </div>
          </span></font></div>
    </blockquote>
    <br>
  </body>
</html>