drm/amd/pm: implement the processor clocks which read by metric
authorHuang Rui <ray.huang@amd.com>
Thu, 7 Jan 2021 10:42:34 +0000 (18:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:52:51 +0000 (23:52 -0500)
commit517cb957c43be3a60d3ffebe980653ebb8e83fe3
treef4504859e8879dedc4497d0fdce05919f8cdea9b
parentec3b35c82de3d02fef6da7fefe37415786ee834e
drm/amd/pm: implement the processor clocks which read by metric

The core processor clocks will be stored in smu metric table, then we
add this runtime information into amdgpu_pm_info interface.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c