]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81fed60e534144504e064de2b4fe169948c7ab38
tree16b64e29d9b788acfe9577d3e7fa012ab3a0d7ae
parentbefd3825ea3706ac6bdaceafb2d25fca18e0e06d
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