]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/radeon: check if device is root before getting pci speed caps
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jan 2019 17:05:16 +0000 (12:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2019 21:15:35 +0000 (16:15 -0500)
commit089888c46841cef767927c9e17e4c9c037d24c4e
tree658e75bf285ccb6b90a2b3f27931a69e8c0fd941
parent84d3245599f527138c4d4b87deed14a7e85cd81b
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>
drivers/gpu/drm/radeon/ci_dpm.c
drivers/gpu/drm/radeon/si_dpm.c