linux/arch/powerpc/platforms
Alexey Kardashevskiy b04149c2dd powerpc/powernv/npu: Move single TVE handling to NPU PE
Normal PCI PEs have 2 TVEs, one per a DMA window; however NPU PE has only
one which points to one of two tables of the corresponding PCI PE.

So whenever a new DMA window is programmed to PEs, the NPU PE needs to
release old table in order to use the new one.

Commit d41ce7b1bc ("powerpc/powernv/npu: Do not try invalidating 32bit
table when 64bit table is enabled") did just that but in pci-ioda.c
while it actually belongs to npu-dma.c.

This moves the single TVE handling to npu-dma.c. This does not implement
restoring though as it is highly unlikely that we can set the table to
PCI PE and cannot to NPU PE and if that fails, we could only set 32bit
table to NPU PE and this configuration is not really supported or wanted.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-12-21 16:20:46 +11:00
..
4xx powerpc/4xx: Delete an unnecessary return statement in two functions 2018-12-21 11:32:49 +11:00
8xx powerpc updates for 4.20 2018-10-26 14:36:21 -07:00
40x powerpc: PCI_MSI needs PCI 2018-11-02 00:15:25 +09:00
44x powerpc/dma: split the two __dma_alloc_coherent implementations 2018-12-20 22:21:20 +11:00
52xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
82xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
83xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
85xx powerpc: use mm zones more sensibly 2018-12-20 22:21:20 +11:00
86xx powerpc/smp: Use code patching to restore reset vector 2018-12-19 18:56:32 +11:00
512x powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
amigaone powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
cell powerpc: generate uapi header and system call table files 2018-12-21 14:46:50 +11:00
chrp powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
embedded6xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
maple powerpc: Use device_type helpers to access the node type 2018-11-26 22:33:37 +11:00
pasemi powerpc/pasemi: Add Nemo board IRQ initroutine 2018-12-20 22:21:20 +11:00
powermac powerpc/smp: Use code patching to restore reset vector 2018-12-19 18:56:32 +11:00
powernv powerpc/powernv/npu: Move single TVE handling to NPU PE 2018-12-21 16:20:46 +11:00
ps3 mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
pseries powerpc/powernv/pseries: Rework device adding to IOMMU groups 2018-12-21 16:20:46 +11:00
fsl_uli1575.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00
Kconfig powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
Kconfig.cputype powerpc: allow NOT_COHERENT_CACHE for amigaone 2018-12-20 22:21:20 +11:00
Makefile powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00