Messages in this thread |  | | | From | Joerg Roedel <> | | Subject | [PATCH 0/3] IOMMU: move page number calculation to generic code | | Date | Fri, 25 Jul 2008 14:57:57 +0200 |
| |
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(-)
|  |