From: Ricardo Ribalda Date: Fri, 2 Aug 2013 13:19:59 +0000 (-0300) Subject: [media] videobuf2-dma-sg: Allocate pages as contiguous as possible X-Git-Tag: v3.13-rc1~47^2~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df23728118cd0f53070769e2ac26a255f66daa57;p=pandora-kernel.git [media] videobuf2-dma-sg: Allocate pages as contiguous as possible Most DMA engines have limitations regarding the number of DMA segments (sg-buffers) that they can handle. Videobuffers can easily spread through hundreds of pages. In the previous aproach, the pages were allocated individually, this could led to the creation houndreds of dma segments (sg-buffers) that could not be handled by some DMA engines. This patch tries to minimize the number of DMA segments by using alloc_pages. In the worst case it will behave as before, but most of the times it will reduce the number of dma segments Acked-by: Marek Szyprowski Reviewed-by: Andre Heider Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed