1. 14 1月, 2021 1 次提交
  2. 09 1月, 2021 1 次提交
    • X
      drm/amd/pm: modify the fine grain tuning function for Renoir · 08da4fcd
      Xiaojian Du 提交于
      This patch is to improve the fine grain tuning function for Renoir.
      The fine grain tuning function uses the sysfs node -- pp_od_clk_voltage
      to config gfxclk. Meanwhile, another sysfs
      node -- power_dpm_force_perfomance_level also affects the gfx clk.
      It will cause confusion when these two sysfs nodes works
      together.
      And the flag "od_enabled" is used to control the overdrive function for
      dGPU, like navi10, navi14 and navi21.
      APU like Renior or Vangogh uses this "od_enabled" to configure
      the frequency range of gfx clock, but the max value of frequency
      range will not be higher than the safe limit, it is not "overdrive".
      So this patch adds two new flags -- "fine_grain_enabled" and
      "fine_grain_started" to avoid this confusion, the flag will
      make these two sysfs nodes work separately.
      The flag "fine_grain_enabled" is set as "enabled" by default,
      so the fine grain tuning function will be enabled by default.
      But the flag "fine_grain_started" is set as "false" by default,
      so the fine grain function will not take effect until it is set as
      "true".
      Only when power_dpm_force_perfomance_level is changed to
      "manual" mode, the flag "fine_grain_started" will be set as "true",
      and the fine grain tuning function will be started.
      In other profile modes, including "auto", "high", "low", "profile_peak",
      "profile_standard", "profile_min_sclk", "profile_min_mclk",
      the flag "fine_grain_started" will be set as "false", and the od range of
      fine grain tuning function will be restored default value.
      Signed-off-by: NXiaojian Du <Xiaojian.Du@amd.com>
      Reviewed-by: NHuang Rui <ray.huang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      08da4fcd
  3. 06 1月, 2021 1 次提交
  4. 24 12月, 2020 1 次提交
  5. 11 12月, 2020 1 次提交
  6. 03 12月, 2020 1 次提交
  7. 25 11月, 2020 1 次提交
  8. 17 11月, 2020 1 次提交
    • X
      drm/amd/pm: add the fine grain tuning function for vangogh · c98ee897
      Xiaojian Du 提交于
      This patch is to add the fine grain tuning function for vangogh.
      This function uses the pp_od_clk_voltage sysfs file to configure the min
      and max value of gfx clock frequency or restore the default value.
      
      Command guide:
      echo "s level value" > pp_od_clk_voltage
              "s" - set the sclk frequency
              "level" - 0 or 1, "0" represents the min value,  "1" represents
              the max value
              "value" - the target value of sclk frequency, it should be
              limited in the safe range
      echo "r" > pp_od_clk_voltage
      	"r" - reset the sclk frequency, restore the default value
              instantly
      echo "c" > pp_od_clk_voltage
              "c" - commit the min and max value of sclk frequency to the system
              only after the commit command, the setting target values by "s" command
              will take effect.
      Example:
      1)check the default sclk frequency
      	$ cat pp_od_clk_voltage
      	OD_SCLK:
      	0:        200Mhz
      	1:       1400Mhz
      	OD_RANGE:
      	SCLK:     200MHz       1400MHz
      2)use "s" -- set command to configure the min or max sclk frequency
      	$ echo "s 0 600" > pp_od_clk_voltage
      	$ echo "s 1 1000" > pp_od_clk_voltage
      	$ echo "c" > pp_od_clk_voltage
              $ cat pp_od_clk_voltage
      	OD_SCLK:
      	0:        600Mhz
      	1:       1000Mhz
      	OD_RANGE:
      	SCLK:     200MHz       1400MHz
      3)use "r" -- reset command to restore the min and max sclk frequency
      	$ echo "r" > pp_od_clk_voltage
              $ cat pp_od_clk_voltage
      	OD_SCLK:
      	0:        200Mhz
      	1:       1400Mhz
      	OD_RANGE:
      	SCLK:     200MHz       1400MHz
      Signed-off-by: NXiaojian Du <Xiaojian.Du@amd.com>
      Reviewed-by: NEvan Quan <evan.quan@amd.com>
      Reviewed-by: NHuang Rui <ray.huang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      c98ee897
  9. 14 11月, 2020 1 次提交
  10. 16 10月, 2020 2 次提交
  11. 13 10月, 2020 1 次提交
  12. 10 10月, 2020 1 次提交
  13. 01 10月, 2020 1 次提交
  14. 18 9月, 2020 5 次提交
  15. 04 9月, 2020 3 次提交
  16. 19 8月, 2020 2 次提交
  17. 15 8月, 2020 2 次提交
  18. 08 8月, 2020 2 次提交
  19. 07 8月, 2020 2 次提交
  20. 28 7月, 2020 1 次提交
  21. 22 7月, 2020 9 次提交