[PATCH 0/3] IOMMU: move page number calculation to generic code

From: Joerg Roedel
Date: Fri Jul 25 2008 - 08:59:11 EST


This small patch series introduces a generic iommu_num_pages function into the
IOMMU helper code. This function can be used to calculate the number of pages
an IOMMU has to map for a specific mapping request.

The patchset converts the x86 IOMMU implementations for AMD IOMMU and the GART
to use this function.

Other IOMMU implementations are not changed because I can't test them.

diffstat:

arch/x86/kernel/amd_iommu.c | 13 +++++--------
arch/x86/kernel/pci-gart_64.c | 11 ++++-------
include/linux/iommu-helper.h | 1 +
lib/iommu-helper.c | 8 ++++++++
4 files changed, 18 insertions(+), 15 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/