Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp249186rdg; Thu, 12 Oct 2023 04:51:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTvoW9MHNLs4JYo78Waa1dOaaGWbge6Ie8tuu4T7/SF++zN2gGElMtXDkUuYHCZwPuOrY4 X-Received: by 2002:a05:6830:1e96:b0:6bc:a68b:ca44 with SMTP id n22-20020a0568301e9600b006bca68bca44mr24240691otr.6.1697111480841; Thu, 12 Oct 2023 04:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697111480; cv=none; d=google.com; s=arc-20160816; b=cgr6cXWpT/nkwspF1/8NGoM1BnfIJLVDYhMZY+lJwOxYcFpm+gd6wgykQuSQbiYPzY Wm/dDBGCQtyJSVst3BIKT2JkPlmL7qkgOvmtu3X+PBUo9c0AkuWMpP4+mCYyyQcRaAxz +WbckMoyCac3hBPbKa5ZIomJSaGIk5O2O7mzre+01RJRenBF4pyg8lYmSHpAt2VckqmT T8DYKk4qoZBjfJQ30Q+4tlWy6c85+/8PTTIu8BEiwBtoUYZNGGN3jvqmz6tN8ETwz/1d U7EkFxhYeC9TviBKNFh8X/KgnCOOdYRRZugBxTPcrLe9uC++3lDBmS6ZBJuVlRXerokq S+2Q== 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=rAJQ03j0818kyCErlpIh7ZcqjeF831UUdlPBXdGu/F45wGoSbgHKMvoqVtUtn1SoUO 2b/3LGWXVyazfGdSWplAaHoOn96ZqFAtT8sNRsnHJrD83PqtxZ5lg3xpthOZV7gaCbmF adVx59Um7uJf2A0dVyDh+vXA90977K4nFlrzRPj/hHI3P1mMaoeInzJiM3FIUjzR+wTO FylzmXTO9VsIjavqGCJ1jPwiMLTBJhOJMYk/s59ajXtdocy2b/0MMiWpxqQIn6DCi95i 3rJLqnQ3MDw/dh+HHeCxZkPfNJ6G4hQWdIua75dFAuhsV3Bp75PN4opRg5xjWWH8mNPQ 7KGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WWNlOzYe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cd6-20020a056a00420600b0068ff333d768si6409204pfb.384.2023.10.12.04.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 04:51:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WWNlOzYe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 71D83809926C; Thu, 12 Oct 2023 04:50:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379083AbjJLLty (ORCPT + 99 others); Thu, 12 Oct 2023 07:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379127AbjJLLrr (ORCPT ); Thu, 12 Oct 2023 07:47:47 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45DC6D44; Thu, 12 Oct 2023 04:47:15 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:7ae7:b86d:c19a:877e]) (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 E35066607392; Thu, 12 Oct 2023 12:47:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697111234; bh=/rw+5kiG9NH9F1WJEwdp/d4z1jjMgH/1J5yw8ccESj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WWNlOzYeWVdxJz0kJwj+I9ycT6eJ4G22oLnn1DWjjxeeE5QXv7BMcIPaI+vzbcF+G Y0fWXtlK28SSY4yS3dqwpL/uchKuTIK2x0EuV61TnOcc8enduMYwuz9grrAlw/7jXR Fbcz0LZaETZtulmiAmsTum8VlgR7WSK2KEWoQjrIt7+F6pOrIURMbpBVYfj//17SLr Jd74m04DhypvE+IDP5iGI6NNZ6recSZlVUiMR9MFxOkuifg0MkBunJiYPIj75SNtrQ VeBsD6VodeM4CC9jsGV2mFbs3OZAr6FomolF2Fbhx+WaPNDasvVIF2JGK6A3/4F+nF PUe6XzUrtJqBQ== From: Benjamin Gaignard 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 Subject: [PATCH v11 46/56] media: test-drivers: vicodec: Increase max supported capture queue buffers Date: Thu, 12 Oct 2023 13:46:32 +0200 Message-Id: <20231012114642.19040-47-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231012114642.19040-1-benjamin.gaignard@collabora.com> References: <20231012114642.19040-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 04:50:47 -0700 (PDT) Allow to allocated up to 64 buffers on capture queue. Signed-off-by: Benjamin Gaignard --- 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; -- 2.39.2