SMU v13.0.5 exposes pp_dpm_fclk, but FCLK information is not available through SmuMetrics. As a result, amdgpu cannot obtain and report FCLK levels for userspace.
Reading pp_dpm_fclk currently returns an empty result, which does not clearly indicate that FCLK reporting is unsupported on this platform. Handle SMU_FCLK explicitly and return -EOPNOTSUPP so userspace receives a proper error instead of an empty response. Signed-off-by: Satyanarayana Yandapalli <[email protected]> --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c index f95b15af436d..c48e59a745e8 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c @@ -928,6 +928,8 @@ static int smu_v13_0_5_emit_clk_levels(struct smu_context *smu, size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max, i == 2 ? "*" : ""); break; + case SMU_FCLK: + return -EOPNOTSUPP; default: break; } -- 2.53.0
