]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/powernv: Add support for Nvlink NPUs
authorAlistair Popple <alistair@popple.id.au>
Thu, 17 Dec 2015 02:43:13 +0000 (13:43 +1100)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:55:08 +0000 (08:55 -0700)
commit8f434181060d24a15ab521274445444eb20b3a42
tree9d0151cb678bdb1690a970246bdf2520e3cbab13
parentf80868403885a6a8f217ac04388e5aa4080b598c
powerpc/powernv: Add support for Nvlink NPUs

BugLink: http://bugs.launchpad.net/bugs/1522415
NVLink is a high speed interconnect that is used in conjunction with a
PCI-E connection to create an interface between CPU and GPU that
provides very high data bandwidth. A PCI-E connection to a GPU is used
as the control path to initiate and report status of large data
transfers sent via the NVLink.

On IBM Power systems the NVLink processing unit (NPU) is similar to
the existing PHB3. This patch adds support for a new NPU PHB type. DMA
operations on the NPU are not supported as this patch sets the TCE
translation tables to be the same as the related GPU PCIe device for
each NVLink. Therefore all DMA operations are setup and controlled via
the PCIe device.

EEH is not presently supported for the NPU devices, although it may be
added in future.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 5d2aa710e697244f5504125e4aa6e2cfcf6c4791)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/include/asm/pci.h
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/npu-dma.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/pci.h