Skip to content

m68k/atari - Atari NCR5380 SCSI driver fixes (resent)

Michael Schmitz alsa-devel linux-m68k linux-media linux-scsi lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3m68k/atari - atari_scsi: fix wait_event completion conditionsdrivers/scsi/atari_scsi.c+7 -70 replies
2/3m68k/atari - atari_scsi: change abort/reset return codesdrivers/scsi/atari_NCR5380.c drivers/scsi/atari_scsi.c+19 -120 replies
3/3m68k/atari - atari_scsi lock fixes: punt if deadlockeddrivers/scsi/atari_NCR5380.c drivers/scsi/atari_scsi.c+30 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] m68k/atari - Atari NCR5380 SCSI driver fixes (resent)

Geert,

this patch series brings the Atari NCR5380 driver up to date with current 3.x (or perhaps even 2.6) series SCSI midlevel and error handling changes.

The first patch fixes completion condition errors contained in Arnd Bergmann's patch ([PATCH, RFC 02/30] scsi: atari_scsi: fix sleep_on race). The locking scheme still isn't 100% race free that way, but much improved, and I've seen the driver successfully handle error recovery from aborting a disconnected command via bus reset with all three patches applied (never managed to do that since 2.4 days).
Not sure whether this one should be taken through your tree or handled by Arnd rather.

The other two are a rehash of old patches I had prepared somewhere along the 2.6 series - somehow or other these were lost when one of my old git trees went pear shaped.

Abort and reset handlers nowadays return SUCCESS or FAILED only, and the SCSI midlevel now queues commands (in particular error handling ones) from soft interrupt context - the Falcon locking scheme still is ill equipped to handle that. Return codes have been changed and the reset handler in particular will leave running command completion handlers to the midlevel now.

If a SCSI command is queued while IDE or floppy have reserved the shared DMA and interrupt, queue_command() may not wait for lock release and instead will return SCSI_MLQUEUE_HOST_BUSY to indicate that.

CC to linux-scsi and the SCSI maintainer added as per your request.

Cheers,

Michael