diff options
author | 2014-08-27 13:01:35 -0600 | |
---|---|---|
committer | 2014-08-27 17:54:50 -0400 | |
commit | 0bd252de78d406485c896508c13a8f7a78ee8353 (patch) | |
tree | aa2899f955d4b69ad9fedfd349bf12daef9fabdc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx) (v2) (diff) | |
download | wireguard-linux-0bd252de78d406485c896508c13a8f7a78ee8353.tar.xz wireguard-linux-0bd252de78d406485c896508c13a8f7a78ee8353.zip |
radeon: Test for PCI root bus before assuming bus->self
If we assign a Radeon device to a virtual machine, we can no longer
assume a fixed hardware topology, like the GPU having a parent device.
This patch simply adds a few pci_is_root_bus() tests to avoid passing
a NULL pointer to PCI access functions, allowing the radeon driver to
work in a QEMU 440FX machine with an assigned HD8570 on the emulated
PCI root bus.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions