Alex Deucher afeff4c16e drm/radeon: check if device is root before getting pci speed caps
Check if the device is root rather before attempting to see what
speeds the pcie port supports.  Fixes a crash with pci passthrough
in a VM.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=109366
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-29 10:57:02 -05:00
..
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2015-12-02 12:45:54 -05:00
2018-06-12 16:19:22 -07:00
2017-11-15 20:42:10 -08:00
2018-06-12 16:19:22 -07:00
2015-10-21 11:35:11 -04:00
2015-11-30 14:44:34 -05:00
2015-12-02 12:45:54 -05:00
2016-03-16 18:08:06 -04:00
2017-05-18 17:22:39 +02:00
2016-03-16 18:08:06 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00