drm/amdgpu: Fix pci platform speed and width
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Fri, 1 Feb 2019 22:57:48 +0000 (17:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Feb 2019 19:03:18 +0000 (14:03 -0500)
commitc53134577c185533ca7e0b958bafc77539d41fd9
treeaed8ac7a34aff0b5248003aba606af2201aefd11
parent2c850b7b9e7d0fb36e0bd1ad1238ff55e5c4dcdc
drm/amdgpu: Fix pci platform speed and width

The new Vega series GPU cards have in-built bridges. To get the pcie
speed and width supported by the platform walk the hierarchy and get the
slowest link.

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