Skip to content

drm/amd/pm: return -EOPNOTSUPP for pp_dpm_fclk on SMU v13.0.5

Satyanarayana Yandapalli amd-gfx 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1drm/amd/pm: return -EOPNOTSUPP for pp_dpm_fclk on SMU v13.0.5drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/1] drm/amd/pm: return -EOPNOTSUPP for pp_dpm_fclk on SMU v13.0.5

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(+)
Signature · 1 line
2.53.0