1. 18 Jul, 2019 29 commits
  2. 17 Jul, 2019 10 commits
  3. 16 Jul, 2019 1 commit
    • Nathan Chancellor's avatar
      drm/amd/powerplay: Use proper enums in vega20_print_clk_levels · d72e04d9
      Nathan Chancellor authored
      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: default avatarEvan Quan <evan.quan@amd.com>
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d72e04d9