]> asedeno.scripts.mit.edu Git - linux.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)
commit75ca758adbafc81804c39b2c200ecdc819a6c042
tree091664d0900e1c6ede2fad272f1561bee354a339
parent2f7d3d1453813cda13e5bace24093eac22cb5e61
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