drm/amd/pm: Fix smuv13.0.6 current clock reporting
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 11 Jan 2024 09:58:53 +0000 (15:28 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Jan 2024 23:33:08 +0000 (18:33 -0500)
commita992c90d8ed3929b70ae815ce21ca5651cc0a692
tree84b8fad8d35fc7689edb7e195b30a9311a9c124d
parent91739a897c12dcec699e53f390be1b4abdeef3a0
drm/amd/pm: Fix smuv13.0.6 current clock reporting

When current clock is equal to max dpm level clock, the level is not
indicated correctly with *. Fix by comparing current clock against dpm
level value.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.7.x
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c