]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:40 +0000 (07:24 +0100)
commit50825dc34f8d7a89546721831049ce83d458bffb
tree10af56e8b02f72c66b584895c367ea660e1cfe4d
parentef4f548e42c0306b8ab819a461a170734deafa07
drm/amdgpu: Correct the power calcultion for Renior/Cezanne.

commit f9afef2fed99427b2c88bf435a363915a9d8123f upstream.

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

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2321
Fixes: 5e31ab3bc153 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c