drm/amd/pm: update smartshift powerboost calc for smu13
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Wed, 11 May 2022 11:05:59 +0000 (16:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:38 +0000 (10:22 +0200)
commit5005002b2e12e9ac4b58e59354d38a4106906f87
tree81bc240bc69bd5fd873991bd044fe398e27e852a
parentc525d3385f6d34d6dcce89ebe019314d83f23873
drm/amd/pm: update smartshift powerboost calc for smu13

[ Upstream commit cdf4c8ec39872a61a58d62f19b4db80f0f7bc586 ]

smartshift apu and dgpu power boost are reported as percentage
with respect to their power limits. adjust the units of power before
calculating the percentage of boost.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c