1. 15 12月, 2021 1 次提交
  2. 04 11月, 2021 3 次提交
  3. 17 8月, 2021 1 次提交
  4. 09 6月, 2021 1 次提交
    • D
      amdgpu/pm: modify Powerplay API get_power_limit to use new pp_power enums · 04bec521
      Darren Powell 提交于
       updated {amd_pm_funcs}->get_power_limit() signature
       rewrote pp_get_power_limit to use new enums
       pp_get_power_limit now returns -EOPNOTSUPP for unknown power limit
       update calls to {amd_pm_funcs}->get_power_limit()
      
      * Test Notes
      * testing hardware was NAVI10 (tests SMU path)
      ** needs testing on VANGOGH
      ** needs testing on SMU < 11
      ** ie, one of
       TOPAZ, FIJI, TONGA, POLARIS10, POLARIS11, POLARIS12, VEGAM, CARRIZO,
       STONEY, VEGA10, VEGA12,VEGA20, RAVEN, BONAIRE, HAWAII
      
      * Test
       AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1`
       AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | cut -d " " -f 11`
       HWMON_DIR=/sys/class/hwmon/${AMDGPU_HWMON}
      
       lspci -nn | grep "VGA\|Display" ; \
       echo "=== power1 cap ===" ; cat $HWMON_DIR/power1_cap ;           \
       echo "=== power1 cap max ===" ; cat $HWMON_DIR/power1_cap_max ;   \
       echo "=== power1 cap def ===" ; cat $HWMON_DIR/power1_cap_default
      Signed-off-by: NDarren Powell <darren.powell@amd.com>
      Reviewed-by: NLijo Lazar <lijo.lazar@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      04bec521
  5. 11 5月, 2021 1 次提交
  6. 24 3月, 2021 1 次提交
  7. 14 11月, 2020 1 次提交
  8. 30 9月, 2020 1 次提交
    • X
      drm/amd/powerplay: add one sysfs file to support the feature to modify gfx... · 12a6727d
      Xiaojian Du 提交于
      drm/amd/powerplay: add one sysfs file to support the feature to modify gfx clock on Raven/Raven2/Picasso APU.
      
      This patch is to add one sysfs file -- "pp_od_clk_voltage" for
      Raven/Raven2/Picasso APU, which is only used by dGPU like VEGA10.
      This sysfs file supports the feature to modify gfx engine clock(Mhz units), it can
      be used to configure the min value and the max value for gfx clock limited in the
      safe range.
      
      Command guide:
      echo "s level clock" > pp_od_clk_voltage
      	s - adjust teh sclk level
      	level - 0 or 1, "0" represents the min value, "1" represents the max value
      	clock - the clock value(Mhz units), like 400, 800 or 1200, the value must be within the
                      OD_RANGE limits.
      Example:
      $ cat pp_od_clk_voltage
      OD_SCLK:
      0:        200Mhz
      1:       1400Mhz
      OD_RANGE:
      SCLK:     200MHz       1400MHz
      
      $ echo "s 0 600" > pp_od_clk_voltage
      $ echo "s 1 1000" > pp_od_clk_voltage
      $ cat pp_od_clk_voltage
      OD_SCLK:
      0:        600Mhz
      1:       1000Mhz
      OD_RANGE:
      SCLK:     200MHz       1400MHz
      Signed-off-by: NXiaojian Du <Xiaojian.Du@amd.com>
      Reviewed-by: NKevin Wang <kevin1.wang@amd.com>
      Reviewed-by: NHuang Rui <ray.huang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      12a6727d
  9. 15 8月, 2020 1 次提交
  10. 07 8月, 2020 1 次提交
  11. 09 5月, 2020 1 次提交
  12. 07 5月, 2020 1 次提交
  13. 29 4月, 2020 2 次提交
  14. 28 4月, 2020 2 次提交
  15. 04 4月, 2020 2 次提交
  16. 02 4月, 2020 1 次提交
  17. 08 1月, 2020 1 次提交
  18. 19 12月, 2019 2 次提交
  19. 12 12月, 2019 1 次提交
    • Y
      drm/amd/powerplay: enable pp one vf mode for vega10 · c9ffa427
      Yintian Tao 提交于
      Originally, due to the restriction from PSP and SMU, VF has
      to send message to hypervisor driver to handle powerplay
      change which is complicated and redundant. Currently, SMU
      and PSP can support VF to directly handle powerplay
      change by itself. Therefore, the old code about the handshake
      between VF and PF to handle powerplay will be removed and VF
      will use new the registers below to handshake with SMU.
      mmMP1_SMN_C2PMSG_101: register to handle SMU message
      mmMP1_SMN_C2PMSG_102: register to handle SMU parameter
      mmMP1_SMN_C2PMSG_103: register to handle SMU response
      
      v2: remove module parameter pp_one_vf
      v3: fix the parens
      v4: forbid vf to change smu feature
      v5: use hwmon_attributes_visible to skip sepicified hwmon atrribute
      v6: change skip condition at vega10_copy_table_to_smc
      Signed-off-by: NYintian Tao <yttao@amd.com>
      Acked-by: NEvan Quan <evan.quan@amd.com>
      Reviewed-by: NKenneth Feng <kenneth.feng@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      c9ffa427
  20. 09 11月, 2019 1 次提交
  21. 07 11月, 2019 1 次提交
  22. 26 10月, 2019 1 次提交
  23. 16 10月, 2019 1 次提交
  24. 18 9月, 2019 1 次提交
  25. 14 9月, 2019 1 次提交
  26. 27 8月, 2019 1 次提交
  27. 16 8月, 2019 1 次提交
  28. 31 7月, 2019 2 次提交
  29. 20 3月, 2019 2 次提交
  30. 26 1月, 2019 2 次提交
  31. 08 12月, 2018 1 次提交
    • H
      drm/amd/powerplay: rv dal-pplib interface refactor powerplay part · 9ed9203c
      hersen wu 提交于
      [WHY] clarify dal input parameters to pplib interface, remove
      un-used parameters. dal knows exactly which parameters needed
      and their effects at pplib and smu sides.
      
      current dal sequence for dcn1_update_clock to pplib:
      
      1.smu10_display_clock_voltage_request for dcefclk
      2.smu10_display_clock_voltage_request for fclk
      3.phm_store_dal_configuration_data {
        set_min_deep_sleep_dcfclk
        set_active_display_count
        store_cc6_data --- this data never be referenced
      
      new sequence will be:
      
      1. set_display_count  --- need add new pplib interface
      2. set_min_deep_sleep_dcfclk -- new pplib interface
      3. set_hard_min_dcfclk_by_freq
      4. set_hard_min_fclk_by_freq
      
      after this code refactor, smu10_display_clock_voltage_request,
      phm_store_dal_configuration_data will not be needed for rv.
      
      [HOW] step 1: add new functions at pplib interface
            step 2: add new functions at amdgpu dm and dc
      Signed-off-by: Nhersen wu <hersenxs.wu@amd.com>
      Reviewed-by: NRex Zhu <Rex.Zhu@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      9ed9203c