diff options
author | Ricardo Ribalda <ricardo.ribalda@gmail.com> | 2013-08-02 10:19:59 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-09-26 07:33:01 -0300 |
commit | df23728118cd0f53070769e2ac26a255f66daa57 (patch) | |
tree | a64d32ebea478de89333920d23ac67474be3580e /Documentation/scsi/osd.txt | |
parent | 819585bc4811bc54e316dfe521ce163816fa0ad1 (diff) | |
download | linux-df23728118cd0f53070769e2ac26a255f66daa57.tar.bz2 |
[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 <m.szyprowski@samsung.com>
Reviewed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/scsi/osd.txt')
0 files changed, 0 insertions, 0 deletions