bus/pci: support IOVA as VA in PowerVM LPARs
authorDavid Christensen <drc@linux.vnet.ibm.com>
Wed, 23 Jun 2021 20:43:55 +0000 (13:43 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 5 Jul 2021 09:30:58 +0000 (11:30 +0200)
commitfc5bffb8b5ba17c110b8c3c35c6090e3345ad000
tree07d5866830e76e25038f485d6de3941b11eaab51
parentcc4219d1f0f0598d4f05ac9e24bafd6532122399
bus/pci: support IOVA as VA in PowerVM LPARs

Add IOMMU detection logic for PowerVM LPARs.

PowerNV $ cat /proc/cpuinfo
...
timebase     : 512000000
platform     : PowerNV
model        : 8335-GTW

PowerVM LPAR $ cat /proc/cpuinfo
...
timebase     : 512000000
platform     : pSeries
model        : IBM,9009-22A
machine      : CHRP IBM,9009-22A
MMU          : Hash

PowerNV KVM Guest $ cat /proc/cpuinfo
...
timebase     : 512000000
platform     : pSeries
model        : IBM pSeries (emulated by qemu)
machine      : CHRP IBM pSeries (emulated by qemu)
MMU          : Radix

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Reviewed-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
drivers/bus/pci/linux/pci.c