[lkml]   [2008]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/3] IOMMU: move page number calculation to generic code
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.


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

 \ /
  Last update: 2008-07-25 15:01    [W:0.045 / U:3.024 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site