All of lore.kernel.org
 help / color / mirror / Atom feed
* - introduce-generic-iommu_num_pages-function.patch removed from -mm tree
@ 2008-10-18 23:12 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-10-18 23:12 UTC (permalink / raw)
  To: joerg.roedel, airlied, benh, davem, fujita.tomonori, ink, mingo,
	muli, paulus@


The patch titled
     introduce generic iommu_num_pages function
has been removed from the -mm tree.  Its filename was
     introduce-generic-iommu_num_pages-function.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: introduce generic iommu_num_pages function
From: Joerg Roedel <joerg.roedel@amd.com>

This patch introduces the generic iommu_num_pages function. It can be used by
a given memory area.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Muli Ben-Yehuda <muli@il.ibm.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/iommu-helper.h |    3 +++
 lib/iommu-helper.c           |    9 +++++++++
 2 files changed, 12 insertions(+)

diff -puN include/linux/iommu-helper.h~introduce-generic-iommu_num_pages-function include/linux/iommu-helper.h
--- a/include/linux/iommu-helper.h~introduce-generic-iommu_num_pages-function
+++ a/include/linux/iommu-helper.h
@@ -23,4 +23,7 @@ extern unsigned long iommu_area_alloc(un
 extern void iommu_area_free(unsigned long *map, unsigned long start,
 			    unsigned int nr);
 
+extern unsigned long iommu_num_pages(unsigned long addr, unsigned long len,
+				     unsigned long io_page_size);
+
 #endif
diff -puN lib/iommu-helper.c~introduce-generic-iommu_num_pages-function lib/iommu-helper.c
--- a/lib/iommu-helper.c~introduce-generic-iommu_num_pages-function
+++ a/lib/iommu-helper.c
@@ -79,3 +79,12 @@ void iommu_area_free(unsigned long *map,
 	}
 }
 EXPORT_SYMBOL(iommu_area_free);
+
+unsigned long iommu_num_pages(unsigned long addr, unsigned long len,
+			      unsigned long io_page_size)
+{
+	unsigned long size = (addr & (io_page_size - 1)) + len;
+
+	return DIV_ROUND_UP(size, io_page_size);
+}
+EXPORT_SYMBOL(iommu_num_pages);
_

Patches currently in -mm which might be from joerg.roedel@amd.com are

origin.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-18 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18 23:12 - introduce-generic-iommu_num_pages-function.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.