[PATCH v5 00/14] Remove DMA map_page/map_resource and their unmap callbacks

Leon Romanovsky posted 14 patches 2 weeks, 1 day ago
Failed in applying to current master (apply log)
There is a newer version of this series
arch/alpha/kernel/pci_iommu.c            |  48 ++++-----
arch/arm/mm/dma-mapping.c                | 180 +++++++++----------------------
arch/mips/jazz/jazzdma.c                 |  20 ++--
arch/powerpc/include/asm/iommu.h         |   8 +-
arch/powerpc/kernel/dma-iommu.c          |  22 ++--
arch/powerpc/kernel/iommu.c              |  14 +--
arch/powerpc/platforms/ps3/system-bus.c  |  33 +++---
arch/powerpc/platforms/pseries/ibmebus.c |  15 +--
arch/powerpc/platforms/pseries/vio.c     |  21 ++--
arch/sparc/kernel/iommu.c                |  30 ++++--
arch/sparc/kernel/pci_sun4v.c            |  31 +++---
arch/sparc/mm/io-unit.c                  |  38 +++----
arch/sparc/mm/iommu.c                    |  46 ++++----
arch/x86/kernel/amd_gart_64.c            |  19 ++--
drivers/parisc/ccio-dma.c                |  54 +++++-----
drivers/parisc/iommu-helpers.h           |  10 +-
drivers/parisc/sba_iommu.c               |  54 +++++-----
drivers/xen/grant-dma-ops.c              |  20 ++--
drivers/xen/swiotlb-xen.c                |  63 +++++------
include/linux/dma-map-ops.h              |  14 +--
kernel/dma/dummy.c                       |  13 ++-
kernel/dma/mapping.c                     |  26 +----
kernel/dma/ops_helpers.c                 |  12 ++-
23 files changed, 361 insertions(+), 430 deletions(-)
[PATCH v5 00/14] Remove DMA map_page/map_resource and their unmap callbacks
Posted by Leon Romanovsky 2 weeks, 1 day ago
This series is a combination of previous two steps [1, 2] to reduce
number of accesses to struct page in the code "below" DMA layer.

In this series, the DMA .map_page/.map_resource/.unmap_page/.unmap_resource
callbacks are converted to newly introduced .map_phys/.unmap_phys interfaces.

Thanks

[1] https://lore.kernel.org/all/cover.1758203802.git.leon@kernel.org
[2] https://lore.kernel.org/all/cover.1759071169.git.leon@kernel.org

---
Leon Romanovsky (14):
      dma-mapping: prepare dma_map_ops to conversion to physical address
      dma-mapping: convert dummy ops to physical address mapping
      ARM: dma-mapping: Reduce struct page exposure in arch_sync_dma*()
      ARM: dma-mapping: Switch to physical address mapping callbacks
      xen: swiotlb: Switch to physical address mapping callbacks
      dma-mapping: remove unused mapping resource callbacks
      alpha: Convert mapping routine to rely on physical address
      MIPS/jazzdma: Provide physical address directly
      parisc: Convert DMA map_page to map_phys interface
      powerpc: Convert to physical address DMA mapping
      sparc: Use physical address DMA mapping
      x86: Use physical address for DMA mapping
      xen: swiotlb: Convert mapping routine to rely on physical address
      dma-mapping: remove unused map_page callback

 arch/alpha/kernel/pci_iommu.c            |  48 ++++-----
 arch/arm/mm/dma-mapping.c                | 180 +++++++++----------------------
 arch/mips/jazz/jazzdma.c                 |  20 ++--
 arch/powerpc/include/asm/iommu.h         |   8 +-
 arch/powerpc/kernel/dma-iommu.c          |  22 ++--
 arch/powerpc/kernel/iommu.c              |  14 +--
 arch/powerpc/platforms/ps3/system-bus.c  |  33 +++---
 arch/powerpc/platforms/pseries/ibmebus.c |  15 +--
 arch/powerpc/platforms/pseries/vio.c     |  21 ++--
 arch/sparc/kernel/iommu.c                |  30 ++++--
 arch/sparc/kernel/pci_sun4v.c            |  31 +++---
 arch/sparc/mm/io-unit.c                  |  38 +++----
 arch/sparc/mm/iommu.c                    |  46 ++++----
 arch/x86/kernel/amd_gart_64.c            |  19 ++--
 drivers/parisc/ccio-dma.c                |  54 +++++-----
 drivers/parisc/iommu-helpers.h           |  10 +-
 drivers/parisc/sba_iommu.c               |  54 +++++-----
 drivers/xen/grant-dma-ops.c              |  20 ++--
 drivers/xen/swiotlb-xen.c                |  63 +++++------
 include/linux/dma-map-ops.h              |  14 +--
 kernel/dma/dummy.c                       |  13 ++-
 kernel/dma/mapping.c                     |  26 +----
 kernel/dma/ops_helpers.c                 |  12 ++-
 23 files changed, 361 insertions(+), 430 deletions(-)
---
base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
change-id: 20251015-remove-map-page-a28302e6cc7d

Best regards,
--  
Leon Romanovsky <leon@kernel.org>
Re: [PATCH v5 00/14] Remove DMA map_page/map_resource and their unmap callbacks
Posted by Marek Szyprowski 1 week, 2 days ago
Dear All,

On 15.10.2025 11:12, Leon Romanovsky wrote:
> This series is a combination of previous two steps [1, 2] to reduce
> number of accesses to struct page in the code "below" DMA layer.
>
> In this series, the DMA .map_page/.map_resource/.unmap_page/.unmap_resource
> callbacks are converted to newly introduced .map_phys/.unmap_phys interfaces.

I would like to have some acks from respective arch maintainers before 
applying this patchset.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland
Re: [PATCH v5 00/14] Remove DMA map_page/map_resource and their unmap callbacks
Posted by Leon Romanovsky 4 days, 7 hours ago
On Mon, Oct 20, 2025 at 06:27:32PM +0200, Marek Szyprowski wrote:
> Dear All,
> 
> On 15.10.2025 11:12, Leon Romanovsky wrote:
> > This series is a combination of previous two steps [1, 2] to reduce
> > number of accesses to struct page in the code "below" DMA layer.
> >
> > In this series, the DMA .map_page/.map_resource/.unmap_page/.unmap_resource
> > callbacks are converted to newly introduced .map_phys/.unmap_phys interfaces.
> 
> I would like to have some acks from respective arch maintainers before 
> applying this patchset.

If to judge by git log and lore for some of these arch (didn't check all),
you won't get any response and will need to make a call by yourself.

Thanks

> 
> Best regards
> -- 
> Marek Szyprowski, PhD
> Samsung R&D Institute Poland
>
Re: [PATCH v5 00/14] Remove DMA map_page/map_resource and their unmap callbacks
Posted by Marek Szyprowski 1 day, 5 hours ago
On 15.10.2025 11:12, Leon Romanovsky wrote:
> This series is a combination of previous two steps [1, 2] to reduce
> number of accesses to struct page in the code "below" DMA layer.
>
> In this series, the DMA .map_page/.map_resource/.unmap_page/.unmap_resource
> callbacks are converted to newly introduced .map_phys/.unmap_phys interfaces.
>
> Thanks
>
> [1] https://lore.kernel.org/all/cover.1758203802.git.leon@kernel.org
> [2] https://lore.kernel.org/all/cover.1759071169.git.leon@kernel.org

Applied to dma-mapping-for-next branch.


Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland