]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcfb1c8e9b48f3293ee57a386d8ecc7b08ad8fe85
treee521dd43b3565c4f3157f277a9b4647393b37ea4
parenta677fa46de9306a92d637f9f099c584c5571cb6c
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