drm/amdgpu: use pcie functions for link width and speed
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jun 2018 18:07:50 +0000 (13:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:39:59 +0000 (16:39 -0500)
commit5d9a6330403271fbb1244f14380a7cc44662796f
tree16b64e29d9b788acfe9577d3e7fa012ab3a0d7ae
parent4976f1c8ccff0d682176851692976e3bf03267d6
drm/amdgpu: use pcie functions for link width and speed

Use the newly exported pci functions to get the link width
and speed rather than using the drm duplicated versions.

Also query the GPU link caps directly rather than hardcoding
them.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
drivers/gpu/drm/amd/amdgpu/si_dpm.c