[PATCH 2/2] amd-iommu: Fix ACS path checking

2012-08-04 Thread Alex Williamson
SR-IOV can create buses without a bridge. There may be other cases where this happens as well. In these cases skip to the parent bus and continue testing devices there. Signed-off-by: Alex Williamson --- drivers/iommu/amd_iommu.c | 25 ++--- 1 file changed, 22 insert

[PATCH 1/2] intel-iommu: Fix ACS path checking

2012-08-04 Thread Alex Williamson
SR-IOV can create buses without a bridge. There may be other cases where this happens as well. In these cases skip to the parent bus and continue testing devices there. Signed-off-by: Alex Williamson --- drivers/iommu/intel-iommu.c | 25 ++--- 1 file changed, 22 insertio

[PATCH 0/2] Fix ACS path checking

2012-08-04 Thread Alex Williamson
David Ahern reported an oops caused by passing a NULL start device to pci_acs_path_enabled(). This can happen when a bus is created for sr-iov devices without an associated bridge. To handle this, skip over to the parent bus and look for a bridge there. Continue until we find something or reach