drm/amdgpu: correct clock info for SRIOV
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Fri, 26 May 2017 09:29:51 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:29:52 +0000 (16:29 -0400)
commit2014bc3febef3a40646fb82ea752df2b20e0cecc
tree714f5cbd6ae7a5dff3373b2e26fc91da5b2cd8db
parente72b991281fa5a1987aed70d8a78981d7cd8e703
drm/amdgpu: correct clock info for SRIOV

Currently, get clock info from default clk of pm if dpm is disable.
Buf SRIOV doesn't support dpm and pm, can't get anything from pm.
Only get clock info only from default clk of amdgpu for SRIOV.

And driver get pm default clk also from amdgpu default clk and never
be changed by others. So use amdgpu default clk value for SRIOV
and non-dpm cases.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c