drm/amd/amdgpu: fix PCIe dpm feature issue (v3)
authorChengming Gui <Jack.Gui@amd.com>
Thu, 21 Mar 2019 05:26:28 +0000 (13:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:31:56 +0000 (22:31 -0500)
commitad51c46eec739c18be24178a30b47801b10e0357
tree43205f1f1211e86730576e27a7bdec44525e1d89
parent0ab925d3690614aa44cd29fb84cdcef03eab97dc
drm/amd/amdgpu: fix PCIe dpm feature issue (v3)

use pcie_bandwidth_available to get real link state
to update pcie table.

v2: fix incorrect initialized return value
v3: expand the fetching method about the link width to all asics.

Signed-off-by: Chengming Gui <Jack.Gui@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