]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: Return -EOPNOTSUPP for unsupported OD_MCLK on smu_v13_0_6
authorAsad Kamal <asad.kamal@amd.com>
Wed, 18 Mar 2026 05:52:57 +0000 (13:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:48:52 +0000 (14:48 -0400)
commit2f0e491faee43181b6a86e90f34016b256042fe1
tree948bd7135bc889e32c3bad9612475885ea227cef
parentcdbc3b62cfc2785da32b82260f852370cc1f2a6a
drm/amd/pm: Return -EOPNOTSUPP for unsupported OD_MCLK on smu_v13_0_6

When SET_UCLK_MAX capability is absent, return -EOPNOTSUPP from
smu_v13_0_6_emit_clk_levels() for OD_MCLK instead of 0. This makes
unsupported OD_MCLK reporting consistent with other clock types
and allows callers to skip the entry cleanly.

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d82e0a72d9189e8acd353988e1a57f85ce479e37)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c