Skip to content

cxlflash: OCXL transport support and miscellaneous fixes

Uma Krishnan linux-scsi linuxppc-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest41 patches 5 repliesIn review
  2. v238 patches 23 repliesSuperseded
  3. v138 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Addressed comments by Frederic Barrat
- Resolved IDR initialization bug
- Properly identify functions that do not have an AFU defined
- Added 3 new patches to the end of the series which resolve corner cases

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/41cxlflash: Preserve number of interrupts for master contextsdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c+9 -30 replies
2/41cxlflash: Avoid clobbering context control register valuedrivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/sislite.h+5 -10 replies
3/41cxlflash: Add argument identifier namesdrivers/scsi/cxlflash/backend.h drivers/scsi/cxlflash/common.h+27 -240 replies
4/41cxlflash: Introduce OCXL backenddrivers/scsi/cxlflash/Kconfig drivers/scsi/cxlflash/Makefile drivers/scsi/cxlflash/backend.h +1 more+25 -20 replies
5/41cxlflash: Hardware AFU for OCXLdrivers/scsi/cxlflash/backend.h drivers/scsi/cxlflash/cxl_hw.c drivers/scsi/cxlflash/main.c +2 more+73 -20 replies
6/41cxlflash: Read host function configurationdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+48 -00 replies
7/41cxlflash: Setup function acTag rangedrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+18 -00 replies
8/41cxlflash: Read host AFU configurationdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+39 -00 replies
9/41cxlflash: Setup AFU acTag rangedrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+15 -00 replies
10/41cxlflash: Setup AFU PASIDdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+4 -00 replies
11/41cxlflash: Adapter context support for OCXLdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+96 -00 replies
12/41cxlflash: Use IDR to manage adapter contextsdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+21 -20 replies
13/41cxlflash: Support adapter file descriptors for OCXLdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+201 -00 replies
14/41cxlflash: Support adapter context discoverydrivers/scsi/cxlflash/ocxl_hw.c+26 -00 replies
15/41cxlflash: Support image reload policy modificationdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+14 -00 replies
16/41cxlflash: MMIO map the AFUdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+77 -10 replies
17/41cxlflash: Support starting an adapter contextdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+42 -00 replies
18/41cxlflash: Support process specific mappingsdrivers/scsi/cxlflash/ocxl_hw.c+24 -00 replies
19/41cxlflash: Support AFU state togglingdrivers/scsi/cxlflash/ocxl_hw.c+9 -00 replies
20/41cxlflash: Support reading adapter VPD datadrivers/scsi/cxlflash/ocxl_hw.c+15 -00 replies
21/41cxlflash: Setup function OCXL linkdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+23 -30 replies
22/41cxlflash: Setup OCXL transaction layerdrivers/scsi/cxlflash/ocxl_hw.c+10 -00 replies
23/41cxlflash: Support process element lifecycledrivers/scsi/cxlflash/ocxl_hw.c+50 -20 replies
24/41cxlflash: Support AFU interrupt managementdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+114 -00 replies
25/41cxlflash: Support AFU interrupt mapping and registrationdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+122 -00 replies
26/41cxlflash: Support starting user contextsdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+100 -20 replies
27/41cxlflash: Support adapter context pollingdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+57 -20 replies
28/41cxlflash: Support adapter context readingdrivers/scsi/cxlflash/ocxl_hw.c+94 -00 replies
29/41cxlflash: Support adapter context mmap and releasedrivers/scsi/cxlflash/ocxl_hw.c+72 -00 replies
30/41cxlflash: Support file descriptor mappingdrivers/scsi/cxlflash/ocxl_hw.c+26 -00 replies
31/41cxlflash: Introduce object handle fopdrivers/scsi/cxlflash/backend.h drivers/scsi/cxlflash/cxl_hw.c drivers/scsi/cxlflash/ocxl_hw.c+26 -00 replies
32/41cxlflash: Setup LISNs for user contextsdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/sislite.h drivers/scsi/cxlflash/superpipe.c+24 -00 replies
33/41cxlflash: Setup LISNs for master contextsdrivers/scsi/cxlflash/main.c+21 -00 replies
34/41cxlflash: Update synchronous interrupt status bitsdrivers/scsi/cxlflash/sislite.h+21 -140 replies
35/41cxlflash: Introduce OCXL context state machinedrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+64 -30 replies
36/41cxlflash: Register for translation errorsdrivers/scsi/cxlflash/ocxl_hw.c drivers/scsi/cxlflash/ocxl_hw.h+33 -20 replies
37/41cxlflash: Support AFU resetdrivers/scsi/cxlflash/ocxl_hw.c+17 -00 replies
38/41cxlflash: Enable OCXL operationsdrivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/main.h+8 -20 replies
39/41cxlflash: Synchronize reset and remove opsdrivers/scsi/cxlflash/main.c+3 -31 reply
40/41cxlflash: Remove commmands from pending list on timeoutdrivers/scsi/cxlflash/main.c+14 -01 reply
41/41cxlflash: Handle spurious interruptsdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c+12 -01 reply

Reviews trailers per patch

40 of 41 patches have a Reviewed-by or Acked-by.

PatchMatthew R. OchsAndrew DonnellanFrederic Barrat
1/41A-b
2/41
3/41A-b
4/41A-b R-b
5/41A-b R-b
6/41A-b R-b R-b
7/41A-b R-b R-b
8/41A-b R-b R-b
9/41A-b R-b R-b
10/41A-b R-b R-b
11/41A-b R-b
12/41A-b
13/41A-b
14/41A-b
15/41A-b
16/41A-b R-b
17/41A-b
18/41A-b
19/41A-b R-b
20/41A-b
21/41A-b R-b
22/41A-b
23/41A-b
24/41A-b
25/41A-b
26/41A-b
27/41A-b
28/41A-b
29/41A-b
30/41A-b
31/41A-b
32/41A-b
33/41A-b
34/41A-b
35/41A-b
36/41A-b
37/41A-b
38/41A-b
39/41A-b
40/41A-b
41/41A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/41] cxlflash: OCXL transport support and miscellaneous fixes

This patch series adds OCXL support to the cxlflash driver. With this support, new devices using the OCXL transport will be supported by the cxlflash driver along with the existing CXL devices. An effort is made to keep this transport specific function independent of the existing core driver that communicates with the AFU.

The first three patches contain a minor fix and staging improvements.

This series is intended for 4.17 and is bisectable.

v3 Changes:
- Addressed comments by Frederic Barrat
- Resolved IDR initialization bug
- Properly identify functions that do not have an AFU defined
- Added 3 new patches to the end of the series which resolve corner cases

v2 Changes:
- Replaced OpenCXL with OCXL in the commit messages and comments

Matthew R. Ochs (1):
cxlflash: Avoid clobbering context control register value

Uma Krishnan (40):
cxlflash: Preserve number of interrupts for master contexts
cxlflash: Add argument identifier names
cxlflash: Introduce OCXL backend
cxlflash: Hardware AFU for OCXL
cxlflash: Read host function configuration
cxlflash: Setup function acTag range
cxlflash: Read host AFU configuration
cxlflash: Setup AFU acTag range
cxlflash: Setup AFU PASID
cxlflash: Adapter context support for OCXL
cxlflash: Use IDR to manage adapter contexts
cxlflash: Support adapter file descriptors for OCXL
cxlflash: Support adapter context discovery
cxlflash: Support image reload policy modification
cxlflash: MMIO map the AFU
cxlflash: Support starting an adapter context
cxlflash: Support process specific mappings
cxlflash: Support AFU state toggling
cxlflash: Support reading adapter VPD data
cxlflash: Setup function OCXL link
cxlflash: Setup OCXL transaction layer
cxlflash: Support process element lifecycle
cxlflash: Support AFU interrupt management
cxlflash: Support AFU interrupt mapping and registration
cxlflash: Support starting user contexts
cxlflash: Support adapter context polling
cxlflash: Support adapter context reading
cxlflash: Support adapter context mmap and release
cxlflash: Support file descriptor mapping
cxlflash: Introduce object handle fop
cxlflash: Setup LISNs for user contexts
cxlflash: Setup LISNs for master contexts
cxlflash: Update synchronous interrupt status bits
cxlflash: Introduce OCXL context state machine
cxlflash: Register for translation errors
cxlflash: Support AFU reset
cxlflash: Enable OCXL operations
cxlflash: Synchronize reset and remove ops
cxlflash: Remove commmands from pending list on timeout
cxlflash: Handle spurious interrupts

 drivers/scsi/cxlflash/Kconfig     |    2 +-
 drivers/scsi/cxlflash/Makefile    |    2 +-
 drivers/scsi/cxlflash/backend.h   |   50 +-
 drivers/scsi/cxlflash/common.h    |   11 +-
 drivers/scsi/cxlflash/cxl_hw.c    |   13 +
 drivers/scsi/cxlflash/main.c      |   86 ++-
 drivers/scsi/cxlflash/main.h      |    1 +
 drivers/scsi/cxlflash/ocxl_hw.c   | 1436 +++++++++++++++++++++++++++++++++++++
 drivers/scsi/cxlflash/ocxl_hw.h   |   77 ++
 drivers/scsi/cxlflash/sislite.h   |   41 +-
 drivers/scsi/cxlflash/superpipe.c |   14 +
 11 files changed, 1682 insertions(+), 51 deletions(-)
 create mode 100644 drivers/scsi/cxlflash/ocxl_hw.c
 create mode 100644 drivers/scsi/cxlflash/ocxl_hw.h
Signature · 1 line
2.1.0