[v14,46/56] media: test-drivers: vicodec: Increase max supported capture queue buffers
Message ID | 20231031163104.112469-47-benjamin.gaignard@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp365764vqg; Tue, 31 Oct 2023 09:36:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdvuaI9OMsXt3wHUXzYzl7YIKwN2eD9VlXoxYnnE/rW+8wxCbX1K4Ogpk3UUBsXG5YCwhZ X-Received: by 2002:a05:6e02:2143:b0:357:549f:eca2 with SMTP id d3-20020a056e02214300b00357549feca2mr18337509ilv.5.1698770210276; Tue, 31 Oct 2023 09:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698770210; cv=none; d=google.com; s=arc-20160816; b=XHmYisRnDBRGRHCn3WKZVP1G9X1K8NuTFEIBN+Qrw8el5ipP8RheyIB0e5Ldqf9tHr 0cJrBTOJExpVMjBfZbAwCgZ27TiPABC8d6IfH/kGEOWhaNog2sP5pIC46kdx359rYdvm bmcyTBmAKBYv/4EXcMG1iULm5Y+trNF9dQGidw2M5NbB/0X3aXT3mocUV/CX+/AmU9gV xpruBGCz9nbqwgOhEZd5us/g3mTr8Tvd9SNMr6JF6oescL60YHNKbZ4E79u9AWekBYWh 0jsNauygEGhuyHq/HhnUGp6149k9nb4CAKwI4MRdu6qVyYNivo5OAW343duzaCvGvEU/ ocVw== 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=cUa/TY+Am8ySB21RfaC1a0J9/53VTglM2vrOBadwXyE=; fh=ceA81l8d2hZW6pWH7VE5TwJxtgXUzAubfWIMcikPA1M=; b=X3/aao7AJzCjrdYUcyix1Arx+hh8lcs0XLqmuOyyXiqvk20/DmfZNQDk9Pm3vfy/QL WPaY4s5kVnV9DY16KCUNEU6Dd5tqrNUHp/0ms7r9M+Qw2NwIMPnEfxeC/cEEWukMDZio s3GP413AwiLeBwi0icQJR+eEf4q8yms7ymQF1xPj+7K8La7qMcxYnr/495h5viIgEu3W EiJ/mE1l70H7f0AU2UeoFCGXw+EYkHV14K9JDefRRDgOG9jwTPEI4fzOBfD1IygMGnJm UwGQut6lVxOxhOyZUfaolD0mfWwAbbTRPZRB5KyQ0KEf79ZRXFtAu2FZsJFlnvh4C+cH kCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XZZKHW6N; 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 18-20020a630112000000b005b7fb04f1fdsi1267593pgb.140.2023.10.31.09.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:36:50 -0700 (PDT) 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=XZZKHW6N; 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 71E12805A8B1; Tue, 31 Oct 2023 09:36:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346306AbjJaQfp (ORCPT <rfc822;chrisjones.unixmen@gmail.com> + 33 others); Tue, 31 Oct 2023 12:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346563AbjJaQeo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 31 Oct 2023 12:34:44 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 325101BD; Tue, 31 Oct 2023 09:32:47 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:c562:2ef4:80c0:92f]) (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 2CFF866073A0; Tue, 31 Oct 2023 16:32:43 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698769963; bh=/rw+5kiG9NH9F1WJEwdp/d4z1jjMgH/1J5yw8ccESj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XZZKHW6N7ktjJNaezvOH/Wv9hBzRSvra2V0tVwtMaCC4QkQiZNbMXBeisiTX+vEwp wi1rbfgIAGP6HZGss5shQF9bZku4YrJeHNzMkt0O0TCgrvykbOgjwZTh9k1Pb9ZJSw DU8CiCA3y744m5f6F+k76RsQUPV3L6Dkp7JxG9xXUUXJA+Vz15r6tdqBF1bW7tIdB5 +KEHK+kA16/DxNDCVR/u396d70MzF3c0j/HheGHnU8SuNT3tP9WiLZll+TJcE2bhv+ jTkJnNARKHDgL6LXMZo43bkKRNh3WmOOOS/5AAx9SmG8FHFFQOOuUoczL1WnsYg33+ bxpwCJj5O+11g== From: Benjamin Gaignard <benjamin.gaignard@collabora.com> To: mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, ming.qian@nxp.com, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, hverkuil-cisco@xs4all.nl, nicolas.dufresne@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard <benjamin.gaignard@collabora.com> Subject: [PATCH v14 46/56] media: test-drivers: vicodec: Increase max supported capture queue buffers Date: Tue, 31 Oct 2023 17:30:54 +0100 Message-Id: <20231031163104.112469-47-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231031163104.112469-1-benjamin.gaignard@collabora.com> References: <20231031163104.112469-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: <linux-kernel.vger.kernel.org> 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]); Tue, 31 Oct 2023 09:36:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781289671747046425 X-GMAIL-MSGID: 1781289671747046425 |
Series |
Add DELETE_BUF ioctl
|
|
Commit Message
Benjamin Gaignard
Oct. 31, 2023, 4:30 p.m. UTC
Allow to allocated up to 64 buffers on capture queue.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
---
drivers/media/test-drivers/vicodec/vicodec-core.c | 1 +
1 file changed, 1 insertion(+)
Comments
W dniu 31.10.2023 o 17:30, Benjamin Gaignard pisze: > Allow to allocated up to 64 buffers on capture queue. > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> > --- > drivers/media/test-drivers/vicodec/vicodec-core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/test-drivers/vicodec/vicodec-core.c b/drivers/media/test-drivers/vicodec/vicodec-core.c > index 6f0e20df74e9..69cbe2c094e1 100644 > --- a/drivers/media/test-drivers/vicodec/vicodec-core.c > +++ b/drivers/media/test-drivers/vicodec/vicodec-core.c > @@ -1718,6 +1718,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, > V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE : > V4L2_BUF_TYPE_VIDEO_CAPTURE); > dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; > + dst_vq->max_num_buffers = 64; > dst_vq->drv_priv = ctx; > dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); > dst_vq->ops = &vicodec_qops;
diff --git a/drivers/media/test-drivers/vicodec/vicodec-core.c b/drivers/media/test-drivers/vicodec/vicodec-core.c index 6f0e20df74e9..69cbe2c094e1 100644 --- a/drivers/media/test-drivers/vicodec/vicodec-core.c +++ b/drivers/media/test-drivers/vicodec/vicodec-core.c @@ -1718,6 +1718,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE : V4L2_BUF_TYPE_VIDEO_CAPTURE); dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; + dst_vq->max_num_buffers = 64; dst_vq->drv_priv = ctx; dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); dst_vq->ops = &vicodec_qops;