The pp_dpm_fclk sysfs node is expected to expose FCLK DPM information when supported by the underlying SMU implementation.
On devices using SMU v13.0.5, FCLK information is not exposed through SmuMetrics. As a result, the driver cannot retrieve a valid FCLK value for userspace. Before this change, reading pp_dpm_fclk returned an empty file, which does not clearly indicate that the functionality is unsupported on the platform. Add explicit handling for SMU_FCLK in emit_clk_levels() and return -EOPNOTSUPP when FCLK data is unavailable from firmware. This provides a proper error notification to userspace instead of silently returning an empty result. Before: $ wc -c < /sys/bus/pci/devices/0000:06:00.0/pp_dpm_fclk 1 $ od -An -tx1 /sys/bus/pci/devices/0000:06:00.0/pp_dpm_fclk 0a After: $ wc -c < /sys/bus/pci/devices/0000:06:00.0/pp_dpm_fclk wc: 'standard input': Operation not supported $ od -An -tx1 /sys/bus/pci/devices/0000:06:00.0/pp_dpm_fclk od: '/sys/bus/pci/devices/0000:06:00.0/pp_dpm_fclk': Operation not supported Satyanarayana Yandapalli (1): drm/amd/pm: return -EOPNOTSUPP for pp_dpm_fclk on SMU v13.0.5 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.53.0
