]> 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)
commit6a731afa2745082a6f6d3bbe8071d58af92b90cc
treee7931bbe8259c93bb8928bf4b95caa4c075e94ed
parenta546c79e7e9772aa905c9601606b6cec2a50de2c
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