block/swim: Fixes and improvements
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest33 patches 2 repliesApplied
- v232 patches 3 repliesSuperseded
- v131 patches 37 repliesSuperseded
Changes in v3 from the cover letter
- Reviewed-by tags were dropped from patches 1/32, 9/32, 13/32 and 16/32 because of unreviewed changes.
- Better assembly code in patch 13/32.
- Patch 23/32 improved upon to reduce excessive interrupt latency when medium errors are encountered.
- Patch 7/32 was split in two, and readability was improved as requested by Geert.
- Geert's acked-by tag was added.
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/33 | swim: Assert strobe with stable outputsdrivers/ | +31 | 0 replies | |
| 2/33 | swim: Select appropriate drive once onlydrivers/ | +3 | 0 replies | |
| 3/33 | swim: Enable the drive when probingdrivers/ | +15 | 0 replies | |
| 4/33 | swim: Don't disable drive after every sectordrivers/ | +0 | 0 replies | |
| 5/33 | swim: Perform ISM/IWM mode switching according to specsdrivers/ | +7 | 0 replies | |
| 6/33 | swim: Configure parameter memorydrivers/ | +13 | 0 replies | |
| 7/33 | swim: Refactor SWIM setupdrivers/ | +3 | 0 replies | |
| 8/33 | swim: Enable clock divider only where appropriatearch/ drivers/ | +36 | 0 replies | |
| 9/33 | swim: Don't start motor until medium is presentdrivers/ | +4 | 0 replies | |
| 10/33 | swim: Recalibrate when drive is probeddrivers/ | +17 | 0 replies | |
| 11/33 | swim: Add track zero recalibration delaydrivers/ | +4 | 0 replies | |
| 12/33 | swim: Handle FIFO timeout errordrivers/ | +1 | 0 replies | |
| 13/33 | swim: Simplify return value initializationdrivers/ | +3 | 0 replies | |
| 14/33 | swim: Check for CRC errorsdrivers/ | +10 | 0 replies | |
| 15/33 | swim: Check error register during sector readdrivers/ drivers/ | +7 | 0 replies | |
| 16/33 | swim: Don't use the mark register to read datadrivers/ | +11 | 0 replies | |
| 17/33 | swim: Fix buffer overflowdrivers/ | +9 | 0 replies | |
| 18/33 | swim: Convert to blocking queuedrivers/ | +3 | 0 replies | |
| 19/33 | swim: Remove redundant RELAX actionsdrivers/ | +1 | 0 replies | |
| 20/33 | swim: Deduplicate polling loopsdrivers/ | +8 | 0 replies | |
| 21/33 | swim: Check drive ready bitdrivers/ | +22 | 0 replies | |
| 22/33 | swim: Revisit delaysdrivers/ | +5 | 0 replies | |
| 23/33 | swim: Remove pointless mode0 register writedrivers/ | +0 | 0 replies | |
| 24/33 | swim: Don't needlessly re-read sectorsdrivers/ drivers/ | +65 | 0 replies | |
| 25/33 | swim: Don't search beyond the first data markdrivers/ | +40 | 0 replies | |
| 26/33 | swim: Remove pointless specifiersdrivers/ | +10 | 0 replies | |
| 27/33 | swim: Move swd initializationdrivers/ | +1 | 0 replies | |
| 28/33 | swim: Add some helpful referencesdrivers/ | +8 | 0 replies | |
| 29/33 | swim: Remove unused macro definitionsdrivers/ | +0 | 0 replies | |
| 30/33 | swim: Clean up whitespacedrivers/ drivers/ | +27 | 0 replies | |
| 31/33 | swim: Define macros for constantsdrivers/ | +5 | 0 replies | |
| 32/33 | swim: Define symbols for constantsdrivers/ | +14 | 0 replies | |
| 33/33 | swim: Unexport global symbolsdrivers/ | +112 | 0 replies |
Reviews trailers per patch
26 of 33 patches have a Reviewed-by or Acked-by.
| Patch | Laurent Vivier | Geert Uytterhoeven | Stan Johnson |
|---|---|---|---|
| Series | T-b | ||
| 1/33 | |||
| 2/33 | R-b | ||
| 3/33 | R-b | ||
| 4/33 | R-b | ||
| 5/33 | R-b | ||
| 6/33 | R-b | ||
| 7/33 | |||
| 8/33 | R-b | A-b | |
| 9/33 | R-b | ||
| 10/33 | |||
| 11/33 | R-b | ||
| 12/33 | R-b | ||
| 13/33 | R-b | ||
| 14/33 | |||
| 15/33 | R-b | ||
| 16/33 | R-b | ||
| 17/33 | |||
| 18/33 | R-b | ||
| 19/33 | R-b | ||
| 20/33 | R-b | ||
| 21/33 | R-b | ||
| 22/33 | R-b | ||
| 23/33 | R-b | ||
| 24/33 | |||
| 25/33 | |||
| 26/33 | R-b | ||
| 27/33 | R-b | ||
| 28/33 | R-b | ||
| 29/33 | R-b | ||
| 30/33 | R-b | ||
| 31/33 | R-b | ||
| 32/33 | R-b | ||
| 33/33 | R-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.
Cover letter [PATCH v3 00/33] block/swim: Fixes and improvements
I recently had a need for the 'swim' driver but found that it was too buggy to be useful for my purposes. I had two aims in mind--
Firstly, I needed this driver to help me test my new BMoW Floppy Emu for emulation correctness. Being that Linux is open source and MacOS is not, this driver should be ideal for that.
Secondly, I needed to realign the heads in some disk drives. The swim driver has most of the code needed for a feedback loop for manual re-alignment, so I wrote the remaining code and pushed it to a repo here:
https://github.com/fthain/linux/commits/swim/
These patches fix all the bugs I found. They improve stability, compatibility and performance. Additional patches improve source code quality by removing redundant code and cleaning up a bit.
This patch series was successfully tested on the following systems.
Mac Quadra 650 - SWIM 2 with Mitsubishi FDD
Mac LC III - SWIM 2 with Mitsubishi FDD and Sony FDD
Mac Quadra 700 - SWIM with Sony FDD
Mac IIvx - SWIM with Sony FDD
---
Changed since v1:
- Patches 1/31, 19/31, 23/31 were revised as per Laurent's remarks.
- Some minor improvements to patches 9/31, 13/31 and 16/31.
- Added patch 24/32 to fix a bug causing silent IO corruption instead of an IO error.
Changed since v2:
- Reviewed-by tags were dropped from patches 1/32, 9/32, 13/32 and 16/32 because of unreviewed changes.
- Better assembly code in patch 13/32.
- Patch 23/32 improved upon to reduce excessive interrupt latency when medium errors are encountered.
- Patch 7/32 was split in two, and readability was improved as requested by Geert.
- Geert's acked-by tag was added.
---
Finn Thain (33):
swim: Assert strobe with stable outputs
swim: Select appropriate drive once only
swim: Enable the drive when probing
swim: Don't disable drive after every sector
swim: Perform ISM/IWM mode switching according to specs
swim: Configure parameter memory
swim: Refactor SWIM setup
swim: Enable clock divider only where appropriate
swim: Don't start motor until medium is present
swim: Recalibrate when drive is probed
swim: Add track zero recalibration delay
swim: Handle FIFO timeout error
swim: Simplify return value initialization
swim: Check for CRC errors
swim: Check error register during sector read
swim: Don't use the mark register to read data
swim: Fix buffer overflow
swim: Convert to blocking queue
swim: Remove redundant RELAX actions
swim: Deduplicate polling loops
swim: Check drive ready bit
swim: Revisit delays
swim: Remove pointless mode0 register write
swim: Don't needlessly re-read sectors
swim: Don't search beyond the first data mark
swim: Remove pointless specifiers
swim: Move swd initialization
swim: Add some helpful references
swim: Remove unused macro definitions
swim: Clean up whitespace
swim: Define macros for constants
swim: Define symbols for constants
swim: Unexport global symbols
arch/m68k/mac/config.c | 31 ++- drivers/block/swim.c | 451 ++++++++++++++++++++------------------- drivers/block/swim_asm.S | 356 +++++++++++++++--------------- 3 files changed, 452 insertions(+), 386 deletions(-)
Signature · 1 line
2.52.0