aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-04-04 14:17:09 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-05-15 13:43:17 -0500
commitb89c71d1eb1c43c6c61f6d74d7454702d367f18b (patch)
treeaf713e0a2d9680e7b704291142a1340e29ee3558 /drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
parentRevert "drm/amd/powerply: fix power reading on Fiji" (diff)
downloadlinux-dev-b89c71d1eb1c43c6c61f6d74d7454702d367f18b.tar.xz
linux-dev-b89c71d1eb1c43c6c61f6d74d7454702d367f18b.zip
drm/amd/pp: Refine get_gpu_power for VI
pkgpwr is the average gpu power of 100ms. it is calculated by firmware in real time. 1. we can send smu message PPSMC_MSG_GetCurrPkgPwr to read currentpkgpwr directly. 2. On Fiji/tonga/bonaire/hawwii, without PPSMC_MSG_GetCurrPkgPwr support. Send PPSMC_MSG_PmStatusLogStart/Sample to let smu write currentpkgpwr to ixSMU_PM_STATUS_94. driver can read pkgpwr from ixSMU_PM_STATUS_94. Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c')
0 files changed, 0 insertions, 0 deletions