From patchwork Fri Apr 1 22:38:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 8728251 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9529AC0553 for ; Fri, 1 Apr 2016 22:38:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C080F2039E for ; Fri, 1 Apr 2016 22:38:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DBBA203A0 for ; Fri, 1 Apr 2016 22:38:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753734AbcDAWin (ORCPT ); Fri, 1 Apr 2016 18:38:43 -0400 Received: from mail-qg0-f41.google.com ([209.85.192.41]:33100 "EHLO mail-qg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752708AbcDAWim (ORCPT ); Fri, 1 Apr 2016 18:38:42 -0400 Received: by mail-qg0-f41.google.com with SMTP id j35so108278720qge.0 for ; Fri, 01 Apr 2016 15:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VS/73ZOhO4IptNCChgT1MH4z1iBYA1VyIVA4Mjus98U=; b=YRwqoEx5BAIxiYKnjKK5NhEQ2NYAH2TzMp++T3LjM7xmITRN4/ZtCn1Y4/GFLa1FKN myGeKZE0K2SHZUAhbDfP/o2QK3Zxe2JyYRaU7mlM29Jln65pFHBqPc0RWn9yKRTPJUoN 05fVbYzwvvWdpCOj6gh681M9m4Z7n1++nygCminzCoq1R8zszr1GA2+65odj8Jg9cJJF pnvUYvDy2P7ZhAnCKnLpBVi/DNOK5vSJwr0VBvR3jc/U2uSaFbg02EG9lHthr8r7gxKI r/qMUE0Tqyd2Mn+hkLMuEh4TKXYYo0h/FRJFRcCgsIrVu0kIsGNWm7HCKY2+R6qxGr9X wP8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VS/73ZOhO4IptNCChgT1MH4z1iBYA1VyIVA4Mjus98U=; b=UFxBkYiRv1o3Y1tsOp5FxUqMrpKhxEEGcgPPAN7wIheFhr8elMhYIcsPV6ut2dhs67 g08lEDsve/GuSDetxBjBC9wNgzZk7nInLENwVLcWqgtqmJ2FT4D8ji3pHWss3D+QFzmp VLFy4lSsoBn9wc6oIGcaL8TJR3DIRNxGW98HO3I8aDst0zjandZxQa5sVRtRZC3yAET2 JQOd8hbNbJYoC5e914MyPs7GazqxZfPMX9NT3Jki+1UvWo2jo6DM9LIxDpC8ATBLWG7D 47FttktBOcZ/OnEle6nzK993vTbMrymkLapqKpHSJ3P9TZPE1icxntiVACSodjiT2qaq 531w== X-Gm-Message-State: AD7BkJJ1UZx98UAZjeQ88lJroooOD9hQh1sgc03Mtdu5nOvtBYFhE1acp1GgThQ6DdnC2g== X-Received: by 10.140.246.136 with SMTP id r130mr1168542qhc.12.1459550321671; Fri, 01 Apr 2016 15:38:41 -0700 (PDT) Received: from localhost.localdomain ([190.2.108.156]) by smtp.gmail.com with ESMTPSA id k25sm7091105qkl.29.2016.04.01.15.38.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Apr 2016 15:38:40 -0700 (PDT) From: Ezequiel Garcia To: Cc: Hans Verkuil , Ezequiel Garcia Subject: [PATCH 1/7] tw686x: Specify that the DMA is 32 bits Date: Fri, 1 Apr 2016 19:38:21 -0300 Message-Id: <1459550307-688-2-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1459550307-688-1-git-send-email-ezequiel@vanguardiasur.com.ar> References: <1459550307-688-1-git-send-email-ezequiel@vanguardiasur.com.ar> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Hans, Feel free to squash this patch into the previous patch, or to apply it independently. Thanks, Ezequiel --- drivers/media/pci/tw686x/tw686x-video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/tw686x/tw686x-video.c b/drivers/media/pci/tw686x/tw686x-video.c index a3505aa66b77..19a348fe04e3 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) {