• Uma Krishnan's avatar
    scsi: cxlflash: Support process element lifecycle · c207b571
    Uma Krishnan authored
    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: default avatarUma Krishnan <ukrishn@linux.vnet.ibm.com>
    Acked-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    c207b571
ocxl_hw.c 18.3 KB