]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ocxl: Driver code for 'generic' opencapi devices
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Tue, 23 Jan 2018 11:31:41 +0000 (12:31 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 27 Feb 2018 15:56:06 +0000 (09:56 -0600)
commit3562139fd686bc2c1bf6b61b3bdb3ae958cc815e
treecf1e04efa8daa2d56e21c59b840b9ec143dd6d13
parent1558b51a649c5899e3e84bdba28b4a41f11c71de
ocxl: Driver code for 'generic' opencapi devices

BugLink: http://bugs.launchpad.net/bugs/1746988
Add an ocxl driver to handle generic opencapi devices. Of course, it's
not meant to be the only opencapi driver, any device is free to
implement its own. But if a host application only needs basic services
like attaching to an opencapi adapter, have translation faults handled
or allocate AFU interrupts, it should suffice.

The AFU config space must follow the opencapi specification and use
the expected vendor/device ID to be seen by the generic driver.

The driver exposes the device AFUs as a char device in /dev/ocxl/

Note that the driver currently doesn't handle memory attached to the
opencapi device.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 5ef3166e8a32d78dfa985a323aa45ed485ff663a)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/misc/ocxl/config.c [new file with mode: 0644]
drivers/misc/ocxl/context.c [new file with mode: 0644]
drivers/misc/ocxl/file.c [new file with mode: 0644]
drivers/misc/ocxl/link.c [new file with mode: 0644]
drivers/misc/ocxl/main.c [new file with mode: 0644]
drivers/misc/ocxl/ocxl_internal.h [new file with mode: 0644]
drivers/misc/ocxl/pasid.c [new file with mode: 0644]
drivers/misc/ocxl/pci.c [new file with mode: 0644]
drivers/misc/ocxl/sysfs.c [new file with mode: 0644]
include/uapi/misc/ocxl.h [new file with mode: 0644]