OSDN Git Service

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)
commit944effd3371621317f1e6f2b106909c84f7c9103
treea84312a2e055af7773a8db60e42084665ecc10c2
parent75ddb640e193a1f1796679171d7bc81ec79ad9bb
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