]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix check for DPM when returning max clock
authorKent Russell <kent.russell@amd.com>
Tue, 25 Feb 2020 12:22:29 +0000 (07:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:17:42 +0000 (14:17 -0500)
commitaa966aa4928932d578c4a617199f197053be683c
treea84312a2e055af7773a8db60e42084665ecc10c2
parent647477086075bdff8f7cb8a97850e23bd617d204
drm/amdgpu: Fix check for DPM when returning max clock

pp_funcs may not exist, while dpm may be enabled. This change ensures
that KFD topology will report the same as pp_dpm_sclk, as the conditions
for reporting them will be the same.

Otherwise, we may see the issue where KFD reports "100MHz" in topology
as the max speed, while DPM is working correctly.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c