[PATCH kernel 0/2] powerpc/powernv/npu: Move platform shared code to sysdev

Alexey Kardashevskiy aik at ozlabs.ru
Mon Jan 14 11:55:59 AEDT 2019


This is to avoid pseries calling into powernv code. The first patch
changes data structure a bit, the second is cut-n-paste without
changing logic or data structures.

This is not changing symbol names as the NVIDIA UVM driver calls some of
them (pnv_npu2_init_context, pnv_npu2_destroy_context, pnv_pci_get_npu_dev,
pnv_npu2_handle_fault).

This is based on sha1
574823bf Linus Torvalds "Change mincore() to count "mapped" pages rather than "cached" pages".

Please comment. Thanks.



Alexey Kardashevskiy (2):
  powerpc/powernv/npu: Move compound PEs to powernv
  powerpc/powernv/npu: Move platform shared code to sysdev

 arch/powerpc/sysdev/Makefile             |   1 +
 arch/powerpc/include/asm/npu.h           |  88 +++
 arch/powerpc/include/asm/pci.h           |   8 +-
 arch/powerpc/include/asm/powernv.h       |  24 -
 arch/powerpc/platforms/powernv/pci.h     |   4 +
 arch/powerpc/platforms/powernv/npu-dma.c | 672 +---------------------
 arch/powerpc/sysdev/npu.c                | 677 +++++++++++++++++++++++
 arch/powerpc/sysdev/Kconfig              |   3 +
 8 files changed, 781 insertions(+), 696 deletions(-)
 create mode 100644 arch/powerpc/include/asm/npu.h
 create mode 100644 arch/powerpc/sysdev/npu.c

-- 
2.17.1



More information about the Linuxppc-dev mailing list