Skip to content

cxlflash: Miscellaneous bug fixes and corrections

Matthew R. Ochs linux-scsi linuxppc-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest37 patches 31 repliesIn review
  2. v534 patches 19 repliesSuperseded
  3. v432 patches 35 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v332 patches15 repliesSuperseded
v2 posting 2/230 patches47 repliesSuperseded
v2 posting 1/230 patches8 repliesSuperseded
v129 patches4 repliesSuperseded

Changes in v6 from the cover letter

- Added patch to avoid corrupting the port selection mask
- Added patch to properly initialize the TMF spin lock
- Added patch to remove possibility of skipping context cleanup
- No change to patches present in v5

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/37cxlflash: Fix to avoid invalid port_sel valuedrivers/scsi/cxlflash/lunmgt.c+6 -30 replies
2/37cxlflash: Replace magic numbers with literalsdrivers/scsi/cxlflash/superpipe.c drivers/scsi/cxlflash/superpipe.h drivers/scsi/cxlflash/vlun.c+9 -30 replies
3/37cxlflash: Fix read capacity timeoutdrivers/scsi/cxlflash/superpipe.c drivers/scsi/cxlflash/superpipe.h drivers/scsi/cxlflash/vlun.c+7 -80 replies
4/37cxlflash: Fix potential oops following LUN removaldrivers/scsi/cxlflash/superpipe.c+23 -120 replies
5/37cxlflash: Fix data corruption when vLUN used over multiple cardsdrivers/scsi/cxlflash/vlun.c+8 -80 replies
6/37cxlflash: Fix to avoid sizeof(bool)drivers/scsi/cxlflash/superpipe.c drivers/scsi/cxlflash/superpipe.h+2 -20 replies
7/37cxlflash: Fix context encode mask widthdrivers/scsi/cxlflash/superpipe.h+1 -10 replies
8/37cxlflash: Fix to avoid CXL services during EEHdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/superpipe.c+77 -410 replies
9/37cxlflash: Correct naming of limbo state and waitqdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/superpipe.c+22 -220 replies
10/37cxlflash: Make functions staticdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c+509 -5140 replies
11/37cxlflash: Refine host/device attributesdrivers/scsi/cxlflash/main.c+138 -421 reply
12/37cxlflash: Fix to avoid spamming the kernel logdrivers/scsi/cxlflash/main.c+59 -501 reply
13/37cxlflash: Fix to avoid stall while waiting on TMFdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c+34 -221 reply
14/37cxlflash: Fix location of setting residdrivers/scsi/cxlflash/main.c+8 -121 reply
15/37cxlflash: Fix host link up event handlingdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/main.h+15 -41 reply
16/37cxlflash: Fix async interrupt bypass logicdrivers/scsi/cxlflash/main.c+1 -12 replies
17/37cxlflash: Remove dual port online dependencydrivers/scsi/cxlflash/main.c+10 -171 reply
18/37cxlflash: Fix AFU version access/storage and add checkdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/sislite.h+14 -81 reply
19/37cxlflash: Correct usage of scsi_host_put()drivers/scsi/cxlflash/main.c+2 -11 reply
20/37cxlflash: Fix to prevent workq from accessing freed memorydrivers/scsi/cxlflash/main.c+1 -11 reply
21/37cxlflash: Correct behavior in device reset handler following EEHdrivers/scsi/cxlflash/main.c+2 -31 reply
22/37cxlflash: Remove unnecessary scsi_block_requestsdrivers/scsi/cxlflash/main.c+0 -21 reply
23/37cxlflash: Fix function prolog parameters and return codesdrivers/scsi/cxlflash/main.c+26 -441 reply
24/37cxlflash: Fix MMIO and endianness errorsdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/superpipe.c +2 more+24 -231 reply
25/37cxlflash: Fix to prevent EEH recovery failuredrivers/scsi/cxlflash/superpipe.c+9 -01 reply
26/37cxlflash: Correct spelling, grammar, and alignment mistakesdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/sislite.h +2 more+38 -481 reply
27/37cxlflash: Fix to prevent stale AFU RRQdrivers/scsi/cxlflash/main.c+3 -01 reply
28/37MAINTAINERS: Add cxlflash driverMAINTAINERS+9 -00 replies
29/37cxlflash: Fix to double the delay each timedrivers/scsi/cxlflash/main.c+1 -11 reply
30/37cxlflash: Fix to avoid corrupting adapter fopsdrivers/scsi/cxlflash/common.h drivers/scsi/cxlflash/main.c drivers/scsi/cxlflash/superpipe.c+3 -121 reply
31/37cxlflash: Correct trace stringdrivers/scsi/cxlflash/main.c+1 -11 reply
32/37cxlflash: Fix to avoid potential deadlock on EEHdrivers/scsi/cxlflash/superpipe.c drivers/scsi/cxlflash/superpipe.h drivers/scsi/cxlflash/vlun.c+60 -11 reply
33/37cxlflash: Fix to avoid leaving dangling interrupt resourcesdrivers/scsi/cxlflash/main.c+16 -121 reply
34/37cxlflash: Fix to escalate to LINK_RESET on login timeoutdrivers/scsi/cxlflash/main.c+1 -11 reply
35/37cxlflash: Fix to avoid corrupting port selection maskdrivers/scsi/cxlflash/lunmgt.c drivers/scsi/cxlflash/superpipe.h+18 -192 replies
36/37cxlflash: Fix to avoid lock instrumentation rejectiondrivers/scsi/cxlflash/main.c+1 -02 replies
37/37cxlflash: Fix to avoid bypassing context cleanupdrivers/scsi/cxlflash/superpipe.c+1 -42 replies

Reviews trailers per patch

All 37 patches have a Reviewed-by or Acked-by.

PatchBrian KingTomas HenzlAndrew DonnellanDaniel AxtensManoj KumarMatthew R. Ochs
1/37R-b R-b
2/37R-b R-b R-b
3/37R-b R-b
4/37R-b R-b
5/37R-b R-b
6/37R-b R-b R-b
7/37R-b R-b R-b
8/37R-b R-b R-b
9/37R-b R-b R-b
10/37R-b R-b
11/37R-b R-b
12/37R-b R-b R-b
13/37R-b R-b
14/37R-b R-b
15/37R-b R-b
16/37R-b R-b R-b
17/37R-b R-b R-b
18/37R-b R-b R-b
19/37R-b R-b
20/37R-b R-b
21/37R-b R-b
22/37R-b R-b
23/37R-b R-b R-b
24/37R-b R-b R-b
25/37R-b R-b R-b
26/37R-b R-b R-b
27/37R-b R-b R-b
28/37R-b R-b
29/37R-b R-b R-b
30/37R-b R-b R-b R-b
31/37R-b R-b R-b
32/37R-b R-b R-b
33/37R-b R-b A-b
34/37R-b R-b A-b
35/37R-b A-b
36/37R-b A-b
37/37R-b A-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 6 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/37] cxlflash: Miscellaneous bug fixes and corrections

This patch set contains various fixes and corrections for issues that were found during test and code review. The series is based upon the code upstreamed in 4.3 (rebased to Dan Carpenter's 9/22 patch) and is intended for 4.4. The entire set is bisectable. Please reference the changelog below for details on what has been altered from previous versions of this patch set.

v6 Changes:
- Added patch to avoid corrupting the port selection mask
- Added patch to properly initialize the TMF spin lock
- Added patch to remove possibility of skipping context cleanup
- No change to patches present in v5

v5 Changes:
- Incorporate comments from Daniel Axtens
- Incorporate comments from Andrew Donnellan
- Added additional clarifications to several commit messages
- Specified some return codes as failures in "Fix function prolog..."
- Made port online failure noisier in "Remove dual port online..."
- Added patch to properly cleanup when encountering an unsupported AFU
- Added patch to escalate a link reset on login timeout

v4 Changes:
- Incorporate comments from Brian King
- Removed unnecessary check_state() parameter from "Fix to avoid CXL..."
- Added patch to fix potential deadlock on EEH
- Removed patch to avoid state change collision
- Changed fops initialization location in "Fix to avoid corrupting..."

v3 Changes:
- Rebased the series on top of patch by Dan Carpenter ("a couple off...")
- Incorporate comments from David Laight
- Incorporate comments from Tomas Henzl
- Incorporate comments from Brian King
- Removed patch to stop interrupt processing on remove
- Removed double scsi_device_put() from "Fix potential oops"
- Fixed usage of scnprintf() in "Refine host/device attributes"
- Removed unnecessary parenthesis from "Fix read capacity timeout"
- Added patch to use correct operator for doubling delay
- Changed location of cancel_work_sync() in "Fix to prevent workq..."
- Removed local mutex from cxlflash_afu_sync() in "Fix to avoid state..."
- Added patch to correctly identify a failed function in a trace
- Added patch to fix a fops corruption bug

v2 Changes:
- Incorporate comments from Ian Munsie
- Rework commit messages to be more descriptive
- Add state change serialization patch

Manoj Kumar (5):
cxlflash: Fix to avoid invalid port_sel value
cxlflash: Replace magic numbers with literals
cxlflash: Fix read capacity timeout
cxlflash: Fix to double the delay each time
cxlflash: Fix to escalate to LINK_RESET on login timeout

Matthew R. Ochs (32):
cxlflash: Fix potential oops following LUN removal
cxlflash: Fix data corruption when vLUN used over multiple cards
cxlflash: Fix to avoid sizeof(bool)
cxlflash: Fix context encode mask width
cxlflash: Fix to avoid CXL services during EEH
cxlflash: Correct naming of limbo state and waitq
cxlflash: Make functions static
cxlflash: Refine host/device attributes
cxlflash: Fix to avoid spamming the kernel log
cxlflash: Fix to avoid stall while waiting on TMF
cxlflash: Fix location of setting resid
cxlflash: Fix host link up event handling
cxlflash: Fix async interrupt bypass logic
cxlflash: Remove dual port online dependency
cxlflash: Fix AFU version access/storage and add check
cxlflash: Correct usage of scsi_host_put()
cxlflash: Fix to prevent workq from accessing freed memory
cxlflash: Correct behavior in device reset handler following EEH
cxlflash: Remove unnecessary scsi_block_requests
cxlflash: Fix function prolog parameters and return codes
cxlflash: Fix MMIO and endianness errors
cxlflash: Fix to prevent EEH recovery failure
cxlflash: Correct spelling, grammar, and alignment mistakes
cxlflash: Fix to prevent stale AFU RRQ
MAINTAINERS: Add cxlflash driver
cxlflash: Fix to avoid corrupting adapter fops
cxlflash: Correct trace string
cxlflash: Fix to avoid potential deadlock on EEH
cxlflash: Fix to avoid leaving dangling interrupt resources
cxlflash: Fix to avoid corrupting port selection mask
cxlflash: Fix to avoid lock instrumentation rejection
cxlflash: Fix to avoid bypassing context cleanup

 MAINTAINERS                       |    9 +
 drivers/scsi/cxlflash/common.h    |   30 +-
 drivers/scsi/cxlflash/lunmgt.c    |   45 +-
 drivers/scsi/cxlflash/main.c      | 1550 ++++++++++++++++++++-----------------
 drivers/scsi/cxlflash/main.h      |    1 +
 drivers/scsi/cxlflash/sislite.h   |    8 +-
 drivers/scsi/cxlflash/superpipe.c |  209 +++--
 drivers/scsi/cxlflash/superpipe.h |   14 +-
 drivers/scsi/cxlflash/vlun.c      |   68 +-
 9 files changed, 1075 insertions(+), 859 deletions(-)
Signature · 1 line
2.1.0