ocxl: Add mmu notifier
authorChristophe Lombard <clombard@linux.vnet.ibm.com>
Wed, 25 Nov 2020 15:50:12 +0000 (16:50 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:30 +0000 (01:01 +1100)
commit5f686eea4b3cb1d311f02b81ce4264e66a21d979
treeb281c095e031b6ca7fc81633ed91618f2275dca1
parentd731feea00c7c1734c9697558f2a1962c12d2710
ocxl: Add mmu notifier

Add invalidate_range mmu notifier, when required (ATSD access of MMIO
registers is available), to initiate TLB invalidation commands.
For the time being, the ATSD0 set of registers is used by default.

The pasid and bdf values have to be configured in the Process Element
Entry.
The PEE must be set up to match the BDF/PASID of the AFU.

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-5-clombard@linux.vnet.ibm.com
drivers/misc/ocxl/link.c