linux/arch/powerpc/platforms
Alexey Kardashevskiy 68c0449ea1 powerpc/pseries/iommu: Use memory@ nodes in max RAM address calculation
We might have memory@ nodes with "linux,usable-memory" set to zero
(for example, to replicate powernv's behaviour for GPU coherent memory)
which means that the memory needs an extra initialization but since
it can be used afterwards, the pseries platform will try mapping it
for DMA so the DMA window needs to cover those memory regions too;
if the window cannot cover new memory regions, the memory onlining fails.

This walks through the memory nodes to find the highest RAM address to
let a huge DMA window cover that too in case this memory gets onlined
later.

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 OPAL calls away from context manipulation 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/pseries/iommu: Use memory@ nodes in max RAM address calculation 2018-12-21 16:20:46 +11:00
fsl_uli1575.c
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