ocxl: Initiate a TLB invalidate command
authorChristophe Lombard <clombard@linux.vnet.ibm.com>
Wed, 25 Nov 2020 15:50:10 +0000 (16:50 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:30 +0000 (01:01 +1100)
commit19b311ca51e108b6d8d679496af8635fdc1984a8
tree9ec7e4f3e7ae1ad3edc6f1e85427465a8c91602e
parentfc1347b5feb685073ce2108c68cd8147340be016
ocxl: Initiate a TLB invalidate command

When a TLB Invalidate is required for the Logical Partition, the following
sequence has to be performed:

1. Load MMIO ATSD AVA register with the necessary value, if required.
2. Write the MMIO ATSD launch register to initiate the TLB Invalidate
command.
3. Poll the MMIO ATSD status register to determine when the TLB Invalidate
   has been completed.

Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201125155013.39955-3-clombard@linux.vnet.ibm.com
arch/powerpc/include/asm/pnv-ocxl.h
arch/powerpc/platforms/powernv/ocxl.c