diff options
author | Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> | 2016-04-02 00:38:21 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-04-20 18:43:12 +0200 |
commit | 1c9f47195ef83ffd59ff665f2006789c0610cff0 (patch) | |
tree | 361a9bce96c18fcb8ddfd66773fcdc3d3147df9a /drivers/media/pci | |
parent | [media] tw686x-kh: rename three functions to prevent clash with tw686x driver (diff) | |
download | linux-1c9f47195ef83ffd59ff665f2006789c0610cff0.tar.xz linux-1c9f47195ef83ffd59ff665f2006789c0610cff0.zip |
[media] tw686x: Specify that the DMA is 32 bits
Set vb2_queue.gfp_flags to GFP_DMA32. Otherwise it will start to
create bounce buffers which is something you want to avoid since
those are in limited supply.
Without this patch, DMA scatter-gather may not work because
machines can ran out of buffers easily.
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/tw686x/tw686x-video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/tw686x/tw686x-video.c b/drivers/media/pci/tw686x/tw686x-video.c index 2356fa2e951d..118e9fac9f28 100644 --- a/drivers/media/pci/tw686x/tw686x-video.c +++ b/drivers/media/pci/tw686x/tw686x-video.c @@ -848,6 +848,7 @@ int tw686x_video_init(struct tw686x_dev *dev) vc->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; vc->vidq.min_buffers_needed = 2; vc->vidq.lock = &vc->vb_mutex; + vc->vidq.gfp_flags = GFP_DMA32; err = vb2_queue_init(&vc->vidq); if (err) { |