[PATCH] radeon: Test for PCI root bus before assuming bus->self

2014-08-28 Thread Dave Airlie
> On Wed, Aug 27, 2014 at 3:01 PM, Alex Williamson > wrote: >> 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

[PATCH] radeon: Test for PCI root bus before assuming bus->self

2014-08-27 Thread Alex Deucher
On Wed, Aug 27, 2014 at 9:32 PM, Dave Airlie wrote: >> On Wed, Aug 27, 2014 at 3:01 PM, Alex Williamson >> wrote: >>> 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

[PATCH] radeon: Test for PCI root bus before assuming bus->self

2014-08-27 Thread Alex Williamson
On Thu, 2014-08-28 at 11:32 +1000, Dave Airlie wrote: > > On Wed, Aug 27, 2014 at 3:01 PM, Alex Williamson > > wrote: > >> 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

[PATCH] radeon: Test for PCI root bus before assuming bus->self

2014-08-27 Thread Alex Deucher
On Wed, Aug 27, 2014 at 3:01 PM, Alex Williamson wrote: > 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

[PATCH] radeon: Test for PCI root bus before assuming bus->self

2014-08-27 Thread Alex Williamson
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