[PATCH 1/1] drm/amdgpu: print pci link status
Nirmoy Das
nirmoy.das at amd.com
Mon Feb 15 12:42:58 UTC 2021
Printing PCI link status will help user detect scenarios
when the device is placed in a pci slot which has
less bandwidth than the device's capability.
Signed-off-by: Nirmoy Das <nirmoy.das at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index b7ee587484b2..ad1b9f148a8e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -1237,6 +1237,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
if (ret)
DRM_ERROR("Creating debugfs files failed (%d).\n", ret);
+ pcie_print_link_status(pdev);
+
return 0;
err_pci:
--
2.30.0
More information about the amd-gfx
mailing list