]> 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)
commit9b56ca90e2a3344f9d176cf2d06245d2d7721d60
tree16b64e29d9b788acfe9577d3e7fa012ab3a0d7ae
parentb7f34e2de00239adc176a2ea1308f97cc57f308c
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