[PATCH 0/10] introduce generic iommu_num_pages function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Roedel
Date: Monday, August 4, 2008 - 9:04 am

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(-)



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/10] introduce generic iommu_num_pages function, Joerg Roedel, (Mon Aug 4, 9:04 am)
Re: [PATCH 0/10] introduce generic iommu_num_pages function, Benjamin Herrenschmidt, (Mon Aug 4, 6:08 pm)
Re: [PATCH 10/10] sparc64: use iommu_num_pages function in ..., Benjamin Herrenschmidt, (Mon Aug 4, 6:09 pm)
Re: [PATCH 10/10] sparc64: use iommu_num_pages function in ..., Benjamin Herrenschmidt, (Tue Aug 5, 1:23 am)