ocxl: Add AFU interrupt support
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Tue, 23 Jan 2018 11:31:42 +0000 (12:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Jan 2018 00:42:58 +0000 (11:42 +1100)
commitaeddad1760aeb206d912b27b230269407efd5b06
treee7931bbe8259c93bb8928bf4b95caa4c075e94ed
parent5ef3166e8a32d78dfa985a323aa45ed485ff663a
ocxl: Add AFU interrupt support

Add user APIs through ioctl to allocate, free, and be notified of an
AFU interrupt.

For opencapi, an AFU can trigger an interrupt on the host by sending a
specific command targeting a 64-bit object handle. On POWER9, this is
implemented by mapping a special page in the address space of a
process and a write to that page will trigger an interrupt.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pnv-ocxl.h
arch/powerpc/platforms/powernv/ocxl.c
drivers/misc/ocxl/afu_irq.c [new file with mode: 0644]
drivers/misc/ocxl/context.c
drivers/misc/ocxl/file.c
drivers/misc/ocxl/link.c
drivers/misc/ocxl/ocxl_internal.h
include/uapi/misc/ocxl.h