]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 27 Feb 2018 15:56:09 +0000 (09:56 -0600)
commit5bc71b8285f09733fe210b0a8dfa753411ed29c3
tree15cb44aa652410bae33d139fda56ccd82a3bc882
parent3562139fd686bc2c1bf6b61b3bdb3ae958cc815e
ocxl: Add AFU interrupt support

BugLink: http://bugs.launchpad.net/bugs/1746988
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>
(cherry picked from commit aeddad1760aeb206d912b27b230269407efd5b06)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
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