Skip to content

introduce generic iommu_num_pages function

Joerg Roedel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86: rename iommu_num_pages function to iommu_nr_pagesarch/x86/kernel/amd_iommu.c arch/x86/kernel/pci-dma.c arch/x86/kernel/pci-gart_64.c +1 more+11 -110 replies
2/10sparc64: rename iommu_num_pages function to iommu_nr_pagesarch/sparc64/kernel/iommu.c arch/sparc64/kernel/iommu_common.h arch/sparc64/kernel/pci_sun4v.c+8 -81 reply
3/10powerpc: rename iommu_num_pages function to iommu_nr_pagesarch/powerpc/kernel/iommu.c+6 -60 replies
4/10introduce generic iommu_num_pages functioninclude/linux/iommu-helper.h lib/iommu-helper.c+11 -00 replies
5/10x86: convert GART driver to generic iommu_num_pages functionarch/x86/kernel/pci-gart_64.c+4 -40 replies
6/10x86, AMD IOMMU: convert driver to generic iommu_num_pages functionarch/x86/kernel/amd_iommu.c+6 -50 replies
7/10x86: convert Calgary IOMMU driver to generic iommu_num_pages functionarch/x86/kernel/pci-calgary_64.c+4 -141 reply
8/10powerpc: use iommu_num_pages function in IOMMU codearch/powerpc/kernel/iommu.c+7 -160 replies
9/10alpha: use iommu_num_pages function in IOMMU codearch/alpha/kernel/pci_iommu.c+5 -120 replies
10/10sparc64: use iommu_num_pages function in IOMMU codearch/sparc64/kernel/iommu.c arch/sparc64/kernel/iommu_common.h arch/sparc64/kernel/pci_sun4v.c+10 -185 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchMuli Ben-Yehdua
1/10
2/10
3/10
4/10
5/10
6/10
7/10A-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/10] introduce generic iommu_num_pages function

Hi,

this series of patches re-introduces the iommu_num_pages function so that it can be used by each architecture specific IOMMU implementations. The series also changes IOMMU implementations for X86, Alpha, PowerPC and UltraSparc. The other implementations are not yet changed because the modifications required are not obvious and I can't test them on real hardware.

The first three patches are to make this series bisectable. The changes are compile-tested on the architectures changed and runtime tested in X86 only. The patches apply cleanly to latest linus/master tree.

Joerg

git diff --stat linus/master:

 arch/alpha/kernel/pci_iommu.c      |   17 +++++------------
 arch/powerpc/kernel/iommu.c        |   23 +++++++----------------
 arch/sparc64/kernel/iommu.c        |    7 ++++---
 arch/sparc64/kernel/iommu_common.h |   14 ++------------
 arch/sparc64/kernel/pci_sun4v.c    |    7 ++++---
 arch/x86/kernel/amd_iommu.c        |    9 +++++----
 arch/x86/kernel/pci-calgary_64.c   |   18 ++++--------------
 arch/x86/kernel/pci-dma.c          |    4 ++--
 arch/x86/kernel/pci-gart_64.c      |    8 ++++----
 include/asm-x86/iommu.h            |    2 +-
 include/linux/iommu-helper.h       |    2 ++
 lib/iommu-helper.c                 |    9 +++++++++
 12 files changed, 49 insertions(+), 71 deletions(-)