From: Alex Williamson <alex.williamson@hp.com>
To: Keir Fraser <keir.fraser@citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
xen-ia64-devel <xen-ia64-devel@lists.xensource.com>
Subject: [PATCH] 3.1-testing ia64 patches
Date: Wed, 02 Apr 2008 21:18:20 -0600 [thread overview]
Message-ID: <1207192700.14520.154.camel@bling> (raw)
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
Hi Keir,
The two patches attached are necessary for ia64 in the 3.1-testing
tree. We make use of the x86 pci-dma-xen.c in this code based, but our
pfn_to_mfn() doesn't provide the true machine frame. Instead we need
pfn_to_mfn_for_dma(). On current upstream, we've created our own files
for this and we've made the corresponding update in
ia64/linux-2.6.18-xen.hg. For this backport, the easiest approach seems
to be to redefine pfn_to_mfn() for ia64 in this file. The other patch
simply backports the addition of the paddr_t typedef. Thanks,
Alex
[-- Attachment #2: ia64_check_pages_physically_contiguous.patch --]
[-- Type: text/x-patch, Size: 1639 bytes --]
[IA64] avoid unnecessarily SWIOTLB bounce buffering
x86 improved range_straddles_page_boundary() by the c/s 501:5486a234923d.
The same discussion applies to ia64. This patch is ia64 counter part of it.
[ported from mainline version]
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
linux-2.6.18-xen changeset: ec6e3e18ea314e9520ee6bba898e30228bf3bda4
linux-2.6.18-xen date: Wed Apr 02 10:02:57 2008 -0600
diff -r cdca34378e8e linux-2.6-xen-sparse/arch/i386/kernel/pci-dma-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/kernel/pci-dma-xen.c Mon Mar 31 18:09:19 2008 +0100
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/pci-dma-xen.c Wed Apr 02 21:00:10 2008 -0600
@@ -74,6 +74,11 @@ do { \
BUG(); \
} \
} while (0)
+
+#ifdef __ia64__
+#undef pfn_to_mfn
+#define pfn_to_mfn pfn_to_mfn_for_dma
+#endif
static int check_pages_physically_contiguous(unsigned long pfn,
unsigned int offset,
diff -r cdca34378e8e linux-2.6-xen-sparse/include/asm-ia64/dma-mapping.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/dma-mapping.h Mon Mar 31 18:09:19 2008 +0100
+++ b/linux-2.6-xen-sparse/include/asm-ia64/dma-mapping.h Wed Apr 02 21:00:10 2008 -0600
@@ -124,13 +124,7 @@ address_needs_mapping(struct device *hwd
return (addr & ~mask) != 0;
}
-static inline int
-range_straddles_page_boundary(void *p, size_t size)
-{
- extern unsigned long *contiguous_bitmap;
- return (((((unsigned long)p & ~PAGE_MASK) + size) > PAGE_SIZE) &&
- !test_bit(__pa(p) >> PAGE_SHIFT, contiguous_bitmap));
-}
+extern int range_straddles_page_boundary(paddr_t p, size_t size);
#endif
#endif /* _ASM_IA64_DMA_MAPPING_H */
[-- Attachment #3: paddr.patch --]
[-- Type: text/x-patch, Size: 901 bytes --]
# HG changeset patch
# User Alex Williamson <alex.williamson@hp.com>
# Date 1181684430 21600
# Node ID 50306c16650087922da4b54b4d222cfd8d17697a
# Parent 245902ee7ce0c1499c172b3a9240b8e2ede45a5f
[IA64] Define paddr_t.
Temporary build workaround
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
linux-2.6.18-xen changeset: 51:50306c16650087922da4b54b4d222cfd8d17697a
linux-2.6.18-xen date: Tue Jun 12 15:40:30 2007 -0600
diff -r 245902ee7ce0 -r 50306c166500 include/asm-ia64/maddr.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/maddr.h Mon Jun 11 14:59:53 2007 -0600
+++ b/linux-2.6-xen-sparse/include/asm-ia64/maddr.h Tue Jun 12 15:40:30 2007 -0600
@@ -103,5 +104,6 @@ mfn_to_local_pfn(unsigned long mfn)
#define set_phys_to_machine(pfn, mfn) do { } while (0)
typedef unsigned long maddr_t; // to compile netback, netfront
+typedef unsigned long paddr_t;
#endif /* _ASM_IA64_MADDR_H */
[-- Attachment #4: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2008-04-03 3:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1207192700.14520.154.camel@bling \
--to=alex.williamson@hp.com \
--cc=keir.fraser@citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ia64-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.