Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144073 Details for
Bug 219277
b44: eth0: late interrrupt
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[LINUX] dma: Use swiotlb mask for coherent mappings too
p (text/plain), 1.82 KB, created by
Herbert Xu
on 2006-12-20 05:23:50 UTC
(
hide
)
Description:
[LINUX] dma: Use swiotlb mask for coherent mappings too
Filename:
MIME Type:
Creator:
Herbert Xu
Created:
2006-12-20 05:23:50 UTC
Size:
1.82 KB
patch
obsolete
>diff -r 057f7c4dbed1 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 Tue Dec 19 12:00:11 2006 +0000 >+++ b/linux-2.6-xen-sparse/arch/i386/kernel/pci-dma-xen.c Wed Dec 20 16:07:24 2006 +1100 >@@ -15,6 +15,7 @@ > #include <linux/version.h> > #include <asm/io.h> > #include <xen/balloon.h> >+#include <asm/swiotlb.h> > #include <asm/tlbflush.h> > #include <asm-i386/mach-xen/asm/swiotlb.h> > #include <asm/bug.h> >@@ -183,8 +184,8 @@ void *dma_alloc_coherent(struct device * > ret = (void *)vstart; > > if (ret != NULL) { >- /* NB. Hardcode 31 address bits for now: aacraid limitation. */ >- if (xen_create_contiguous_region(vstart, order, 31) != 0) { >+ if (xen_create_contiguous_region(vstart, order, >+ io_tlb_dma_bits) != 0) { > free_pages(vstart, order); > return NULL; > } >diff -r 057f7c4dbed1 linux-2.6-xen-sparse/arch/i386/kernel/swiotlb.c >--- a/linux-2.6-xen-sparse/arch/i386/kernel/swiotlb.c Tue Dec 19 12:00:11 2006 +0000 >+++ b/linux-2.6-xen-sparse/arch/i386/kernel/swiotlb.c Wed Dec 20 16:07:24 2006 +1100 >@@ -98,7 +98,7 @@ static struct phys_addr { > */ > static DEFINE_SPINLOCK(io_tlb_lock); > >-static unsigned int io_tlb_dma_bits = DEFAULT_IO_TLB_DMA_BITS; >+unsigned int io_tlb_dma_bits = DEFAULT_IO_TLB_DMA_BITS; > static int __init > setup_io_tlb_bits(char *str) > { >diff -r 057f7c4dbed1 linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/swiotlb.h >--- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/swiotlb.h Tue Dec 19 12:00:11 2006 +0000 >+++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/swiotlb.h Wed Dec 20 16:07:24 2006 +1100 >@@ -34,6 +34,8 @@ extern int swiotlb_dma_supported(struct > extern int swiotlb_dma_supported(struct device *hwdev, u64 mask); > extern void swiotlb_init(void); > >+extern int io_tlb_dma_bits; >+ > #ifdef CONFIG_SWIOTLB > extern int swiotlb; > #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219277
: 144073