powerpc/powernv/npu: Move tlb flush before launching ATSD
authorAlistair Popple <alistair@popple.id.au>
Fri, 11 Aug 2017 06:22:56 +0000 (16:22 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:42:55 +0000 (16:42 +1000)
commitbab9f954aaf352127725a9b7920226abdb65b604
tree48ec20e36ee76c5303b88725a14e7c69f4fb45a6
parentde854e54d79bc0ad5c45c5be50821b1c0639cb75
powerpc/powernv/npu: Move tlb flush before launching ATSD

The nest MMU tlb flush needs to happen before the GPU translation
shootdown is launched to avoid the GPU refilling its tlb with stale
nmmu translations prior to the nmmu flush completing.

Fixes: 1ab66d1fbada ("powerpc/powernv: Introduce address translation services for Nvlink2")
Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c