Skip to content

ncr5380: Exception handling fixes for v4.5

Finn Thain linux-m68k linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ncr5380: Correctly clear command pointers and lists after bus resetdrivers/scsi/NCR5380.c drivers/scsi/atari_NCR5380.c+24 -140 replies
2/6ncr5380: Dont release lock for PIO transferdrivers/scsi/NCR5380.c drivers/scsi/atari_NCR5380.c+18 -140 replies
3/6ncr5380: Dont re-enter NCR5380_select()drivers/scsi/NCR5380.c drivers/scsi/atari_NCR5380.c+16 -160 replies
4/6ncr5380: Forget aborted commandsdrivers/scsi/NCR5380.c drivers/scsi/atari_NCR5380.c+34 -900 replies
5/6ncr5380: Fix NCR5380_select() EH checks and result handlingdrivers/scsi/NCR5380.c drivers/scsi/atari_NCR5380.c+22 -100 replies
6/6ncr5380: Call scsi_eh_prep_cmnd() and scsi_eh_restore_cmnd() as and when appropriatedrivers/scsi/NCR5380.c drivers/scsi/atari_NCR5380.c+4 -40 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchMichael Schmitz
1/6T-b
2/6Reported-and-tested-by
3/6Reported-and-tested-by
4/6T-b
5/6T-b
6/6Reported-and-tested-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] ncr5380: Exception handling fixes for v4.5

These patches fix some exception handling and autosense bugs that I accidentally introduced in v4.5-rc1.

The error recovery and autosense code in these drivers has been unstable for a long time. Despite that, v4.5-rc1 shows a regression in as much as it exposes a bug in the aranym emulator. This leads to error recovery, which can crash.

Also, Michael Schmitz reported some crashes involving abort handling for a certain target device. And Dan Carpenter found a NULL pointer deref in the new bus reset code.

Error recovery and autosense are stable with these patches.

I tested them using a Domex 3191D PCI card. Errors during IO were simulated by sending bus resets and unplugging/replugging the SCSI cables. Some of these patches fix bugs that only affect more capable hardware (like Atari). Thanks to Michael Schmitz for patiently testing those.

Please review this series for v4.5.

---
 drivers/scsi/NCR5380.c       |  133 +++++++++++++++++++------------------------
 drivers/scsi/atari_NCR5380.c |  133 +++++++++++++++++++------------------------
 2 files changed, 118 insertions(+), 148 deletions(-)