/[linux-patches]/genpatches-2.6/tags/2.6.15-5/1024_2_swiotlb-alloc-mask-gfp.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.15-5/1024_2_swiotlb-alloc-mask-gfp.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 291 - (show annotations) (download)
Tue Jan 31 20:13:37 2006 UTC (12 years, 9 months ago) by dsd
File size: 929 byte(s)
2.6.15-5 release
1 From stable-bounces@linux.kernel.org Sat Jan 21 13:18:41 2006
2 Date: Sat, 21 Jan 2006 13:13:13 -0800
3 From: Andrew Morton <akpm@osdl.org>
4 To: stable@kernel.org
5 Message-Id: <20060121131313.551c624f.akpm@osdl.org>
6 Cc: Andi Kleen <ak@muc.de>
7 Subject: [PATCH] Mask off GFP flags before swiotlb_alloc_coherent
8
9 From: Andi Kleen <ak@muc.de>
10
11 Mask off GFP flags before swiotlb_alloc_coherent
12
13 Signed-off-by: Andi Kleen <ak@suse.de>
14 Signed-off-by: Chris Wright <chris@sous-sol.org>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 ---
17 arch/x86_64/kernel/pci-gart.c | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- linux-2.6.15.1.orig/arch/x86_64/kernel/pci-gart.c
21 +++ linux-2.6.15.1/arch/x86_64/kernel/pci-gart.c
22 @@ -244,6 +244,7 @@ dma_alloc_coherent(struct device *dev, s
23 get_order(size));
24
25 if (swiotlb) {
26 + gfp &= ~(GFP_DMA32|GFP_DMA);
27 return
28 swiotlb_alloc_coherent(dev, size,
29 dma_handle,

  ViewVC Help
Powered by ViewVC 1.1.20