Skip to content

powerpc/powernv/npu: Reworks for NVIDIA V100 + P9 passthrough (part 2)

Alexey Kardashevskiy kvm-ppc linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5powerpc/powernv/npu: Add helper to access struct npu for NPU devicearch/powerpc/platforms/powernv/npu-dma.c+15 -51 reply
2/5powerpc/powernv/npu: Collect all static symbols under one structarch/powerpc/include/asm/pci.h arch/powerpc/platforms/powernv/npu-dma.c arch/powerpc/platforms/powernv/pci-ioda.c+46 -321 reply
3/5powerpc/powernv: Detach npu struct from pnv_phbarch/powerpc/platforms/powernv/npu-dma.c arch/powerpc/platforms/powernv/pci.h+57 -291 reply
4/5powerpc/powernv/npu: Factor out OPAL calls from context manipulationarch/powerpc/include/asm/pci.h arch/powerpc/platforms/powernv/npu-dma.c arch/powerpc/platforms/powernv/pci-ioda.c +1 more+57 -532 replies
5/5powerpc/powernv/npu: Add helper to map GPU to LPARarch/powerpc/include/asm/pci.h arch/powerpc/platforms/powernv/npu-dma.c+40 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchDavid Gibson
1/5R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH kernel 0/5] powerpc/powernv/npu: Reworks for NVIDIA V100 + P9 passthrough (part 2)

This is a second set of patches required for passing through NVIDIA V100 with coherent memory. The full patchset is here:
https://github.com/aik/linux/tree/nv2
The matching QEMU is here:
https://github.com/aik/qemu/tree/nv2

This patchset reworks NPU DMA code to be used with VFIO. The exported symbols are called from the NVIDIA driver so they must be able to work in both powernv and pseries platforms.

This depends on skiboot's "npu2: Clear XTS_BDF_MAP when destroying context for next init_context" posted earlier today.

Please comment. Thanks.

Alexey Kardashevskiy (5):
powerpc/powernv/npu: Add helper to access struct npu for NPU device powerpc/powernv/npu: Collect all static symbols under one struct powerpc/powernv: Detach npu struct from pnv_phb powerpc/powernv/npu: Factor out OPAL calls from context manipulation powerpc/powernv/npu: Add helper to map GPU to LPAR

 arch/powerpc/include/asm/pci.h            |   4 +
 arch/powerpc/platforms/powernv/pci.h      |  18 +-
 arch/powerpc/platforms/powernv/npu-dma.c  | 298 ++++++++++++++++++++----------
 arch/powerpc/platforms/powernv/pci-ioda.c |   9 +-
 4 files changed, 212 insertions(+), 117 deletions(-)
Signature · 1 line
2.11.0