OSDN Git Service

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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Jan 2018 00:42:58 +0000 (11:42 +1100)
commit5ef3166e8a32d78dfa985a323aa45ed485ff663a
treee1321e75dc2f802294f94d71aff7509057d01077
parent2cb3d64b26984703a6bb80e66adcc3727ad37f9f
ocxl: Driver code for 'generic' opencapi devices

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>
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]