]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd406a8d4ea56790d3002c07fd500e5a64d95e7eb
treee7931bbe8259c93bb8928bf4b95caa4c075e94ed
parente08941efbe5ffeea36e16eefb187a03ec3fbf58e
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