drm/amdgpu: Correct the power calcultion for Renior/Cezanne.
authorjie1zhan <jesse.zhang@amd.com>
Fri, 13 Jan 2023 02:39:13 +0000 (10:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jan 2023 04:10:31 +0000 (23:10 -0500)
commitc7bae4aaa5609c1fa9761c35dbcc5fcc92915222
tree9f18cf46a2dc3c28f2c0cc9f2e6c44bd913b8d51
parent040625ab82ce6dca7772cb3867fe5c9eb279a344
drm/amdgpu: Correct the power calcultion for Renior/Cezanne.

From smu firmware,the value of power is transferred  in units of watts.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2321
Fixes: 137aac26a2ed ("drm/amdgpu/smu12: fix power reporting on renoir")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c