| b9721d27 | 27-Mar-2019 |
Alastair D'Silva <[email protected]> |
ocxl: Allow external drivers to use OpenCAPI contexts
Most OpenCAPI operations require a valid context, so exposing these functions to external drivers is necessary.
Signed-off-by: Alastair D'Silva
ocxl: Allow external drivers to use OpenCAPI contexts
Most OpenCAPI operations require a valid context, so exposing these functions to external drivers is necessary.
Signed-off-by: Alastair D'Silva <[email protected]> Reviewed-by: Greg Kurz <[email protected]> Acked-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
show more ...
|
| 75ca758a | 27-Mar-2019 |
Alastair D'Silva <[email protected]> |
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
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 <[email protected]> Acked-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
show more ...
|