linux/drivers/scsi/cxlflash
Uma Krishnan c207b57143 scsi: cxlflash: Support process element lifecycle
As part of the context lifecycle, the associated process element within the
Shared Process Area (SPA) of the link must be updated. Each process is defined
by various parameters (pid, tid, PASID mm) that are stored in the SPA upon
starting a context and invalidated when a context is stopped.

Use the OCXL provider services to configure the SPA with the appropriate data
that is unique to the process when starting a context. Initially only kernel
contexts are supported and therefore these process values are not applicable.
Note that the OCXL service used has an optional callback for translation fault
error notification. While not used here, it will be expanded in a future
commit.

Also add a service to stop a context by terminating the corresponding PASID
and remove the process element from the SPA.

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-04-18 19:32:49 -04:00
..
backend.h scsi: cxlflash: Hardware AFU for OCXL 2018-04-18 19:32:47 -04:00
common.h scsi: cxlflash: Add argument identifier names 2018-04-18 19:32:47 -04:00
cxl_hw.c scsi: cxlflash: Hardware AFU for OCXL 2018-04-18 19:32:47 -04:00
Kconfig scsi: cxlflash: Introduce OCXL backend 2018-04-18 19:32:47 -04:00
lunmgt.c scsi: cxlflash: Remove port configuration assumptions 2017-04-13 22:55:41 -04:00
main.c scsi: cxlflash: Hardware AFU for OCXL 2018-04-18 19:32:47 -04:00
main.h scsi: cxlflash: Allow cards without WWPN VPD to configure 2017-10-31 12:28:03 -04:00
Makefile scsi: cxlflash: Introduce OCXL backend 2018-04-18 19:32:47 -04:00
ocxl_hw.c scsi: cxlflash: Support process element lifecycle 2018-04-18 19:32:49 -04:00
ocxl_hw.h scsi: cxlflash: Setup function OCXL link 2018-04-18 19:32:49 -04:00
sislite.h scsi: cxlflash: Avoid clobbering context control register value 2018-04-18 19:32:47 -04:00
superpipe.c scsi: cxlflash: Staging to support future accelerators 2018-01-10 23:24:58 -05:00
superpipe.h scsi: cxlflash: Remove embedded CXL work structures 2018-01-10 23:24:57 -05:00
vlun.c scsi: cxlflash: Use derived maximum write same length 2017-10-31 12:28:02 -04:00
vlun.h scsi: cxlflash: Fix warnings/errors 2017-04-13 22:55:41 -04:00