drm/amd/pm: Allow setting max UCLK on SMU v13.0.6
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 29 Jan 2024 08:36:31 +0000 (14:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Feb 2024 22:15:58 +0000 (17:15 -0500)
commitb7a9003445463bcd57850e8cd88aca0827e92837
treef81d023c3a0c87bd31bef6ac4c516388527df4dc
parentefe0f34c2bd037a0b01465323d52a7bbd8b5e888
drm/amd/pm: Allow setting max UCLK on SMU v13.0.6

Allow reducing max UCLK in MANUAL performance level. New UCLK value
should be less than the max DPM level UCLK level value.

Ex:
echo manual > "/sys/bus/pci/devices/.../power_dpm_force_performance_level"
echo m 1 900 > "/sys/bus/pci/devices/.../pp_od_clk_voltage”
echo c > "/sys/bus/pci/devices/.../pp_od_clk_voltage”

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Tested-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c