powerpc/powernv/npu: Don't explicitly flush nmmu tlb
authorAlistair Popple <alistair@popple.id.au>
Wed, 6 Sep 2017 01:49:00 +0000 (11:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 12 Nov 2017 21:00:30 +0000 (08:00 +1100)
commit1b2c2b12386f9bb009a2249eca00e01a9d76d7c1
treee521dd43b3565c4f3157f277a9b4647393b37ea4
parent2a31ad093bb1b8c1f1e04cbe222ad17bc09c4534
powerpc/powernv/npu: Don't explicitly flush nmmu tlb

The nest mmu required an explicit flush as a tlbi would not flush it in the
same way as the core. However an alternate firmware fix exists which should
eliminate the need for this flush, so instead add a device-tree property
(ibm,nmmu-flush) on the NVLink2 PHB to enable it only if required.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c
arch/powerpc/platforms/powernv/pci.h