diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2017-03-08 01:53:36 -0600 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-03-09 12:17:29 +1100 |
commit | 1903174472f8800caf50c959b304501b4c01153c (patch) | |
tree | 810b3f9143c72ffa566c3159e8f1f44a42eaf91a /board-qemu/slof | |
parent | 66d250ef0fd06bb88b7399b9563b5008201f2d63 (diff) | |
download | SLOF-1903174472f8800caf50c959b304501b4c01153c.zip SLOF-1903174472f8800caf50c959b304501b4c01153c.tar.gz SLOF-1903174472f8800caf50c959b304501b4c01153c.tar.bz2 |
pci: force minimum mem bar alignment of 64K for board-qemu
This is needed to ensure VFIO passthrough devices are able to
offload MMIO accesses to KVM.
Cc: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-qemu/slof')
-rw-r--r-- | board-qemu/slof/pci-phb.fs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board-qemu/slof/pci-phb.fs b/board-qemu/slof/pci-phb.fs index 667514e..fc2341c 100644 --- a/board-qemu/slof/pci-phb.fs +++ b/board-qemu/slof/pci-phb.fs @@ -331,6 +331,12 @@ setup-puid my-puid TO puid \ Set current puid phb-parse-ranges 1 TO pci-hotplug-enabled + s" qemu,mem-bar-min-align" get-node get-property 0= IF + decode-int TO pci-mem-bar-min-align + 2drop + ELSE + 10000 TO pci-mem-bar-min-align + THEN s" qemu,phb-enumerated" get-node get-property 0<> IF 1 0 (probe-pci-host-bridge) ELSE |