]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
another .32 patch
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Dec 2009 00:01:47 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Dec 2009 00:01:47 +0000 (16:01 -0800)
queue-2.6.32/implement-early_io-re-un-map-for-ia64.patch [new file with mode: 0644]
queue-2.6.32/series

diff --git a/queue-2.6.32/implement-early_io-re-un-map-for-ia64.patch b/queue-2.6.32/implement-early_io-re-un-map-for-ia64.patch
new file mode 100644 (file)
index 0000000..b4310a5
--- /dev/null
@@ -0,0 +1,59 @@
+From cd7bcf32d42b15891620b3f1387a00178b54291a Mon Sep 17 00:00:00 2001
+From: Luck, Tony <tony.luck@intel.com>
+Date: Mon, 14 Dec 2009 20:00:36 +0000
+Subject: implement early_io{re,un}map for ia64
+
+From: Luck, Tony <tony.luck@intel.com>
+
+commit cd7bcf32d42b15891620b3f1387a00178b54291a upstream.
+
+Needed for commit 2c992208 ("intel-iommu: Detect DMAR in hyperspace at
+probe time.) to build on IA64.
+
+Signed-off-by: Tony Luck <tony.luck@intel.com>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ arch/ia64/include/asm/io.h |    2 ++
+ arch/ia64/mm/ioremap.c     |   11 +++++++++++
+ 2 files changed, 13 insertions(+)
+
+--- a/arch/ia64/include/asm/io.h
++++ b/arch/ia64/include/asm/io.h
+@@ -424,6 +424,8 @@ __writeq (unsigned long val, volatile vo
+ extern void __iomem * ioremap(unsigned long offset, unsigned long size);
+ extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size);
+ extern void iounmap (volatile void __iomem *addr);
++extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size);
++extern void early_iounmap (volatile void __iomem *addr, unsigned long size);
+ /*
+  * String version of IO memory access ops:
+--- a/arch/ia64/mm/ioremap.c
++++ b/arch/ia64/mm/ioremap.c
+@@ -22,6 +22,12 @@ __ioremap (unsigned long phys_addr)
+ }
+ void __iomem *
++early_ioremap (unsigned long phys_addr, unsigned long size)
++{
++      return __ioremap(phys_addr);
++}
++
++void __iomem *
+ ioremap (unsigned long phys_addr, unsigned long size)
+ {
+       void __iomem *addr;
+@@ -102,6 +108,11 @@ ioremap_nocache (unsigned long phys_addr
+ EXPORT_SYMBOL(ioremap_nocache);
+ void
++early_iounmap (volatile void __iomem *addr, unsigned long size)
++{
++}
++
++void
+ iounmap (volatile void __iomem *addr)
+ {
+       if (REGION_NUMBER(addr) == RGN_GATE)
index bc78a3e33c428a9432a61871b6262b7aac861c8b..a9b8ea0dde3677988145e996fc08b5595507d1a2 100644 (file)
@@ -148,3 +148,4 @@ intel-iommu-fix-oops-with-intel_iommu-igfx_off.patch
 intel-iommu-ignore-page-table-validation-in-pass-through-mode.patch
 netfilter-xtables-document-minimal-required-version.patch
 perf_event-fix-incorrect-range-check-on-cpu-number.patch
+implement-early_io-re-un-map-for-ia64.patch