Skip to content

m68k/atari - Atari NCR5380 SCSI driver fixes

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

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

Geert,

this patch series brings the Atari NCR5380 driver up to date with current 3.x (or 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 before. 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 handler return codes have changed, and the SCSI midlevel now queues commands (in particular error handling ones) from softirq context - the Falcon locking scheme was ill equipped to deal with that.

Another issue that surfaced while debugging SCSI deadlocks was the odd fact that two interrupts get registered for the ST-DMA/floppy/SCSI/IDE interrupt:
the stdma_int multiplexer, and the IDE interrupt handler itself. I'll send a separate patch for that.

Cheers,

Michael

[PATCH 1/3] m68k/atari - atari_scsi: fix wait_event completion conditions [PATCH 2/3] m68k/atari - atari_scsi: change abort/reset return codes [PATCH 3/3] m68k/atari - atari_scsi: punt if deadlocked on stdma_lock