linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH kernel 0/2] powerpc/powernv/npu: Move platform shared code to sysdev
@ 2019-01-14  0:55 Alexey Kardashevskiy
  2019-01-14  0:56 ` [PATCH kernel 1/2] powerpc/powernv/npu: Move compound PEs to powernv Alexey Kardashevskiy
  2019-01-14  0:56 ` [PATCH kernel 2/2] powerpc/powernv/npu: Move platform shared code to sysdev Alexey Kardashevskiy
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Kardashevskiy @ 2019-01-14  0:55 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Alexey Kardashevskiy, Alistair Popple, Andrew Donnellan,
	Reza Arbab, David Gibson

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-14  1:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14  0:55 [PATCH kernel 0/2] powerpc/powernv/npu: Move platform shared code to sysdev Alexey Kardashevskiy
2019-01-14  0:56 ` [PATCH kernel 1/2] powerpc/powernv/npu: Move compound PEs to powernv Alexey Kardashevskiy
2019-01-14  0:56 ` [PATCH kernel 2/2] powerpc/powernv/npu: Move platform shared code to sysdev Alexey Kardashevskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).