Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3223584rdh; Mon, 27 Nov 2023 08:58:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1q9HxbitxYmHZF/75NrUqhDDdiULUJNu7eeCXxQsTIvIWngQsphiZqKDTC4l8mbjxaoeT X-Received: by 2002:a17:902:a986:b0:1cf:7911:460f with SMTP id bh6-20020a170902a98600b001cf7911460fmr9632051plb.51.1701104320142; Mon, 27 Nov 2023 08:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104320; cv=none; d=google.com; s=arc-20160816; b=nDy2gX6K6fvvfKJchub66JFJ/8Hj2iQeBeRpaYq5Fuq/wjhQAHRCTcwaceXbUE9cKB +2uXjPMQLZw6WSUmRJfVtsBwHcWfzF+Yh4IHLSrxIYlovyV5IfA24nW5WkGqbweeNrrA LyDfqDZ7T6rOvdUCCrKouCZFHVuQzXnsu8PZvFGwEfZ9ykVXhRiUJt4wn38sMlYgt+xp 4fdO9gWdQe5iLdG0mtUgGP90gTBfpzV5vDzJjJxOERPgch6zjQwv68efJNfT6ITXfPo9 Kz3pAW56GsQex8hJKvfZSwcfTHHcQcWScmUSDN74+w4TpuhAM+z59jirSu3pbur5wjZx DC5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fF4UwD38Ygw03ZrVZ0is2rZ2YAZStq4dQ8pUrx9SNo0=; fh=kFeEET2Sn7AfPPwZWtXJEfQj1r+0ZzDCkmJDn3z6yDY=; b=vr0P8Tr2JnvASSzDPuLle+eEVA+pD1XuzV+c7uzDINwGqKvo4t9+5V2SJKxBl++Pv7 hYNrLxAWPs0WVsKC+xDPwTrMmd3GDUad6ruMu8JEfUEELiKCqlixC9W/5KRzBs833LkS o0gBwWDLZ4DgVSvT5LJFte91txgjFqwdxMeQPIOjUIFhIh1YMvSX6+L6W8H33ndb7AjZ zqwFtGdHIB8/mZn8f5tz4xvm9S7LZAdjkXyoIGxRUpsDq8MxkSqd/nN6ESUuCvyp8lwx nWqiHIKhD+l2z1acy7If4o6eBTO3lEKPO/3xR3g6vawUIygG7tCC0xV3f4thlF3HtkGV r43w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E54Gv4X2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l19-20020a635b53000000b005bd2713d3a1si10215805pgm.650.2023.11.27.08.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:58:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E54Gv4X2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B1B2D807A587; Mon, 27 Nov 2023 08:58:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234758AbjK0Q6J (ORCPT + 99 others); Mon, 27 Nov 2023 11:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234715AbjK0Q4Z (ORCPT ); Mon, 27 Nov 2023 11:56:25 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B6D910D4; Mon, 27 Nov 2023 08:55:39 -0800 (PST) Received: from benjamin-XPS-13-9310.. (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2E4396607401; Mon, 27 Nov 2023 16:55:37 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104137; bh=VYpTZfWZN7LbMpiNcOKjYA3Gn8EBNnp4L6ZbmMp3ESA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E54Gv4X2uUv3gUKpau+ZmdPnMvd5bzU47vNGH7HkSinB+yxqdf5SmIc+iHO3GP3EZ f14NOUOEEwIjeuUdXDRCzpFyC8TUnJ+P/6xK+NS2+S/HmGBxECKrBAn+ii2gskTvG+ mLqPI/BkB/b0NGkz2/yH2SrtBI+B2QCuFURV3hnuW2DpoEeQTuStbMdcYutrsQcnru Qrdq8Z6fuVIGm/XXCiXCP6MK8qXlgCJWKpV/j8lw7Bo6CEynC9wNW01qbpZE6qzsrB iQnTsXuWV0uHfWHn4li9LKZ/3B+RndNKHhffIR+8y9ZVUVoeejScIOv3iw0NyTzLta On0k5W+VQExeA== From: Benjamin Gaignard To: hverkuil@xs4all.nl, mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, matt.ranostay@konsulko.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard , Yong Zhi , Sakari Ailus , Bingbu Cao , Dan Scally , Tianshu Qiu Subject: [PATCH 41/55] media: pci: intel: ipu3: Use min_dma_buffers_needed field Date: Mon, 27 Nov 2023 17:54:40 +0100 Message-Id: <20231127165454.166373-42-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127165454.166373-1-benjamin.gaignard@collabora.com> References: <20231127165454.166373-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:58:37 -0800 (PST) Ipu3 driver use a dma engine and needs a minimum number of buffers to be present before start streaming. That is 'min_dma_buffers_needed' purpose so use it instead of 'min_buffers_needed' field. Signed-off-by: Benjamin Gaignard CC: Yong Zhi CC: Sakari Ailus CC: Bingbu Cao CC: Dan Scally CC: Tianshu Qiu --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/media/pci/intel/ipu3/ipu3-cio2.c index 5d3b0ffd3d08..3a000a682cb0 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -1589,7 +1589,7 @@ static int cio2_queue_init(struct cio2_device *cio2, struct cio2_queue *q) vbq->mem_ops = &vb2_dma_sg_memops; vbq->buf_struct_size = sizeof(struct cio2_buffer); vbq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - vbq->min_buffers_needed = 1; + vbq->min_dma_buffers_needed = 1; vbq->drv_priv = cio2; vbq->lock = &q->lock; r = vb2_queue_init(vbq); -- 2.39.2