From: Alex Deucher Date: Mon, 10 Jul 2017 14:43:10 +0000 (-0400) Subject: drm/amdgpu: call atomfirmware get_clock_info for atomfirmware systems X-Git-Tag: microblaze-4.14-rc3~11^2~44^2~44 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=88b64e9536746eadc366ac1e23c8c67f14b249f5;p=linux-2.6-microblaze.git drm/amdgpu: call atomfirmware get_clock_info for atomfirmware systems Rather than the legacy atombios version. Acked-by: Chunming Zhou Acked-by: Christian König Signed-off-by: Alex Deucher --- 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, DRM_INFO("GPU post is not needed\n"); } - if (!adev->is_atom_fw) { + if (adev->is_atom_fw) { + /* Initialize clocks */ + r = amdgpu_atomfirmware_get_clock_info(adev); + if (r) { + dev_err(adev->dev, "amdgpu_atomfirmware_get_clock_info failed\n"); + amdgpu_vf_error_put(AMDGIM_ERROR_VF_ATOMBIOS_GET_CLOCK_FAIL, 0, 0); + goto failed; + } + } else { /* Initialize clocks */ r = amdgpu_atombios_get_clock_info(adev); if (r) {