drm/amd/powerplay: update how to use metrics table on Arcturus
authorEvan Quan <evan.quan@amd.com>
Tue, 2 Jun 2020 09:48:11 +0000 (17:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:17 +0000 (01:59 -0400)
commit482191262e7b6e8ab7c582e4462d4cbcb601d3d0
tree985aaadac0af20182c5cd51a4c079c3546994693
parente8f141f58700e8f6d251fe485972b46ae4119f65
drm/amd/powerplay: update how to use metrics table on Arcturus

Retrieve only those interested metrics data instead of the whole
metrics table. By this, the memory copy can be dropped.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h