]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ocxl: Add a kernel API for other opencapi drivers
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Tue, 23 Jan 2018 11:31:43 +0000 (12:31 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 27 Feb 2018 15:56:12 +0000 (09:56 -0600)
commit0f2d7994a19ee70cbf3c1199fdb673487e2ec1c0
treeece97ed3437e0e1ccae7308629be742a04a8744d
parent5bc71b8285f09733fe210b0a8dfa753411ed29c3
ocxl: Add a kernel API for other opencapi drivers

BugLink: http://bugs.launchpad.net/bugs/1746988
Some of the functions done by the generic driver should also be needed
by other opencapi drivers: attaching a context to an adapter,
translation fault handling, AFU interrupt allocation...

So to avoid code duplication, the driver provides a kernel API that
other drivers can use, similar to calling a in-kernel library.

It is still a bit theoretical, for lack of real hardware, and will
likely need adjustements down the road. But we used the cxlflash
driver as a guinea pig.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 280b983ce2b8759722d911ea4b5af66e95d84e09)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/misc/ocxl/config.c
drivers/misc/ocxl/link.c
drivers/misc/ocxl/ocxl_internal.h
include/misc/ocxl.h [new file with mode: 0644]