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>
Fri, 13 Jan 2023 19:58:38 +0000 (14:58 -0500)
commit29c472b28ba2426839af1185b5692bf70a014a6a
treedf2ddeaabf69a144bbe1571c34c98d6e39177304
parent2b89da46a77d2929c1b00af5eb6a07f3d95a931c
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>
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c