Skip to content

Convert m68k MVME147 WD33C93 SCSI driver to DMA API

Michael Schmitz linux-m68k linux-scsi 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 4 repliesSuperseded
  3. v14 patches 15 repliesSuperseded

Changes in v3 from the cover letter

- fix platform iomem resource size

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5m68k - add MVME147 SCSI base address to mvme147hw.harch/m68k/include/asm/mvme147hw.h+1 -00 replies
2/5m68k - set up platform device for mvme147_scsiarch/m68k/mvme147/config.c+21 -00 replies
3/5m68k - add MMIO ioremap support for mvme147arch/m68k/mm/kmap.c+11 -00 replies
4/5scsi - convert mvme147.c driver to platform devicedrivers/scsi/mvme147.c+61 -280 replies
5/5scsi - convert mvme147.c driver to DMA APIdrivers/scsi/mvme147.c+24 -90 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Convert m68k MVME147 WD33C93 SCSI driver to DMA API

This series was precipitated by Arnd removing CONFIG_VIRT_TO_BUS. The m68k WD33C93 still used virt_to_bus to convert virtual addresses to physical addresses suitable for the DMA engines (note m68k does not have an IOMMU and uses a direct mapping for DMA addresses).

Arnd suggested to use dma_map_single() to set up dma mappings instead of open-coding much the same in every driver dma_setup() function. An earlier patch series has converted the three Amiga WD33C93 drivers, this series now takes care of the sole remaining m68k WD33C93 driver.

The m68k VME mvme147 driver has no DMA addressing or alignment restrictions and can be converted in the same way as the Amiga a3000 one in my previous series, but requires conversion to a platform device driver first.

Changes from v2:
- fix platform iomem resource size

Only compile tested so far, and hardware testing might be hard to do. I'd appreciate someone giving this a thorough review.

Cheers,

Michael