drm/amd/pm: Reset SMU v13.0.x custom settings
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 17 Apr 2025 04:45:46 +0000 (10:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Apr 2025 22:05:11 +0000 (18:05 -0400)
commit923406e74ec66364b829b7f8b6b67d46200567a6
tree3852a1e9611e61a63ca426172730edbe09ecd47f
parent9d40b05d6daa484b5be4495ec6b1117da1a3f31f
drm/amd/pm: Reset SMU v13.0.x custom settings

On SMU v13.0.2 and SMU v13.0.6 variants user may choose custom min/max
clocks in manual perf mode. Those custom min/max values need to be
reset once user switches to auto or restores default settings.
Otherwise, they may get used inadvertently during the next operation.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c