public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] Fix bttv and friends on 64bit machines with lots of memory.
@ 2007-01-10  8:58 Gerd Hoffmann
  2007-01-10 23:41 ` hermann pitton
  0 siblings, 1 reply; 4+ messages in thread
From: Gerd Hoffmann @ 2007-01-10  8:58 UTC (permalink / raw)
  To: linux kernel mailing list; +Cc: Linux and Kernel Video

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

  Hi,

We have a DMA32 zone now, lets use it to make sure the card
can reach the memory we have allocated for the video frame
buffers.

please apply,

  Gerd

[-- Attachment #2: v4l-dma32 --]
[-- Type: text/plain, Size: 870 bytes --]

Fix bttv and friends on 64bit machines with lots of memory.

We have a DMA32 zone now, lets use it to make sure the card
can reach the memory we have allocated for the video frame
buffers.

Signed-off-by: Gerds Hoffmann <kraxel@suse.de>
---
 drivers/media/video/video-buf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.18/drivers/media/video/video-buf.c
===================================================================
--- linux-2.6.18.orig/drivers/media/video/video-buf.c
+++ linux-2.6.18/drivers/media/video/video-buf.c
@@ -1224,7 +1224,7 @@ videobuf_vm_nopage(struct vm_area_struct
 		vaddr,vma->vm_start,vma->vm_end);
 	if (vaddr > vma->vm_end)
 		return NOPAGE_SIGBUS;
-	page = alloc_page(GFP_USER);
+	page = alloc_page(GFP_USER | __GFP_DMA32);
 	if (!page)
 		return NOPAGE_OOM;
 	clear_user_page(page_address(page), vaddr, page);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-13  1:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-10  8:58 [patch] Fix bttv and friends on 64bit machines with lots of memory Gerd Hoffmann
2007-01-10 23:41 ` hermann pitton
2007-01-13  0:42   ` Mauro Carvalho Chehab
2007-01-13  1:37     ` hermann pitton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox