diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-07-10 10:43:10 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-14 11:06:38 -0400 |
commit | 88b64e9536746eadc366ac1e23c8c67f14b249f5 (patch) | |
tree | 269f0a10c6d6f205277199ef8710675a75ceeb7f /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 79077ee1edceb95d8c0215a9af5e8373232672df (diff) |
drm/amdgpu: call atomfirmware get_clock_info for atomfirmware systems
Rather than the legacy atombios version.
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 078886c6b758..a9eeaad49d18 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2189,7 +2189,15 @@ int amdgpu_device_init(struct amdgpu_device *adev, | |||
2189 | DRM_INFO("GPU post is not needed\n"); | 2189 | DRM_INFO("GPU post is not needed\n"); |
2190 | } | 2190 | } |
2191 | 2191 | ||
2192 | if (!adev->is_atom_fw) { | 2192 | if (adev->is_atom_fw) { |
2193 | /* Initialize clocks */ | ||
2194 | r = amdgpu_atomfirmware_get_clock_info(adev); | ||
2195 | if (r) { | ||
2196 | dev_err(adev->dev, "amdgpu_atomfirmware_get_clock_info failed\n"); | ||
2197 | amdgpu_vf_error_put(AMDGIM_ERROR_VF_ATOMBIOS_GET_CLOCK_FAIL, 0, 0); | ||
2198 | goto failed; | ||
2199 | } | ||
2200 | } else { | ||
2193 | /* Initialize clocks */ | 2201 | /* Initialize clocks */ |
2194 | r = amdgpu_atombios_get_clock_info(adev); | 2202 | r = amdgpu_atombios_get_clock_info(adev); |
2195 | if (r) { | 2203 | if (r) { |