]> git.baikalelectronics.ru Git - kernel.git/commit
ocxl: Create a clear delineation between ocxl backend & frontend
authorAlastair D'Silva <alastair@d-silva.org>
Wed, 27 Mar 2019 05:31:32 +0000 (16:31 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 16:55:01 +0000 (02:55 +1000)
commitbd3d953fe88ea4c4de402e2085fb3b83fb16ae75
tree091664d0900e1c6ede2fad272f1561bee354a339
parente0def25373014360a0c50617d798b6681f20b56f
ocxl: Create a clear delineation between ocxl backend & frontend

The OCXL driver contains both frontend code for interacting with userspace,
as well as backend code for interacting with the hardware.

This patch separates the backend code from the frontend so that it can be
used by other device drivers that communicate via OpenCAPI.

Relocate dev, cdev & sysfs files to the frontend code to allow external
drivers to maintain their own devices.

Reference counting on the device in the backend is replaced with kref
counting.

Move file & sysfs layer initialisation from core.c (backend) to
pci.c (frontend).

Create an ocxl_function oriented interface for initing devices &
enumerating AFUs.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/ocxl/context.c
drivers/misc/ocxl/core.c
drivers/misc/ocxl/file.c
drivers/misc/ocxl/ocxl_internal.h
drivers/misc/ocxl/pci.c
drivers/misc/ocxl/sysfs.c
include/misc/ocxl.h