OSDN Git Service

drm/amd/powerplay: implement get_clk_info_from_vbios function for smu11 (v2)
authorHuang Rui <ray.huang@amd.com>
Mon, 17 Dec 2018 06:56:40 +0000 (14:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:56 +0000 (15:03 -0500)
commit08115f87c38de82f82991a990e36806fa6f3057d
tree106275efe6fcbac58d58255227498e0f12f4c0d2
parent846f1a035b554b5ba63c6dc1e720d8c580c390fa
drm/amd/powerplay: implement get_clk_info_from_vbios function for smu11 (v2)

This patch implements the get_clk_info_from_vbios function for smu11.
We can do execute_vbios_cmd_table to fetch the clk value from vbios.

v2: use the proper cpu_to_le[32|16]() and le[32|16]_to_cpu() macros to handle
endianness. (Alex)

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c