1. 31 7月, 2019 19 次提交
  2. 23 7月, 2019 3 次提交
  3. 19 7月, 2019 11 次提交
  4. 18 7月, 2019 5 次提交
  5. 17 7月, 2019 2 次提交
    • N
      drm/amd/powerplay: Use proper enums in vega20_print_clk_levels · d72e04d9
      Nathan Chancellor 提交于
      clang warns:
      
      drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:995:39: warning:
      implicit conversion from enumeration type 'PPCLK_e' to different
      enumeration type 'enum smu_clk_type' [-Wenum-conversion]
                      ret = smu_get_current_clk_freq(smu, PPCLK_SOCCLK, &now);
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:1016:39: warning:
      implicit conversion from enumeration type 'PPCLK_e' to different
      enumeration type 'enum smu_clk_type' [-Wenum-conversion]
                      ret = smu_get_current_clk_freq(smu, PPCLK_FCLK, &now);
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
      drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:1031:39: warning:
      implicit conversion from enumeration type 'PPCLK_e' to different
      enumeration type 'enum smu_clk_type' [-Wenum-conversion]
                      ret = smu_get_current_clk_freq(smu, PPCLK_DCEFCLK, &now);
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      
      The values are mapped one to one in vega20_get_smu_clk_index so just use
      the proper enums here.
      
      Fixes: 09676101 ("drm/amd/powerplay: support sysfs to get socclk, fclk, dcefclk")
      Link: https://github.com/ClangBuiltLinux/linux/issues/587Reviewed-by: NEvan Quan <evan.quan@amd.com>
      Signed-off-by: NNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      d72e04d9
    • K
      drm/amd/powerplay: enable fw ctf,apcc dfll and gfx ss · 597292eb
      Kenneth Feng 提交于
      enable fw ctf, apcc dfll and gfx ss on navi10.
      fw ctf: when the fw ctf is triggered, the gfx and soc power domain
      are shut down. fan speed is boosted to the maximum.
      gfx ss: hardware feature, sanity check has been done.
      apcc dfll: can check the scoreboard in smu fw to confirm if it's enabled.
      no need to do further check since the gfx hardware control the frequency once
      a pcc signal comes.
      Signed-off-by: NKenneth Feng <kenneth.feng@amd.com>
      Reviewed-by: NEvan Quan <evan.quan@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      597292eb