Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp488183lqp; Thu, 21 Mar 2024 07:16:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+HzonuBO+7NoG0szwvMtRDyk3UsPicIw6Bf03wHPFdLwhoF1qoqww/96b8DjIafrrAJqGrvTpU4oFAP6vWsUMyRQHkgtlcSOWEPapnw== X-Google-Smtp-Source: AGHT+IGLuDQxQl5M6MMo9J7Q/st7z4SzCqfKt5Nr6EnkGMlPD8dKGOJRjm7LnxVstRIvHaCSPI73 X-Received: by 2002:a17:906:595:b0:a46:9be4:6037 with SMTP id 21-20020a170906059500b00a469be46037mr2537491ejn.30.1711030586822; Thu, 21 Mar 2024 07:16:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711030586; cv=pass; d=google.com; s=arc-20160816; b=Ncj24jcaM8n42AX8/xFxE9DMFUV9nMfL7Xg67IptE2VaB+W3R9mfQseSLyy7AI0uIm dTXWhe3eIqNRzgCEemVbWcsNKER8BCmjOEXgB+zaBqeAfca1tsXuZtR0vdspZG9/H2wc 61ShX3XgDKc0Z3J9PuSxtxxWJ3GGMQlNQXzAj44BV2PtYmNoo1zZcP+J+k5ReRLpCUBp mDz3qfam1Iv0i+wJ86bCfY5DW77Hk8rg2Or0x2ddPvvYgIHYB0Cp3RGTFxqegepndXI7 pXb/x4d1yDQs0Qcwfd3eOl9RE5F8NyzWJoCNPmGpkjz0qLZO6N3sn480ubncpVfbyVOD wqYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=kVG9ZMC6g+Huk5mDtO/eKFlWT1Xt+eY/gcX8iImkDl4=; fh=HXJ4WdWAz9u5jZKNTzTfhGSlMZZq4N5151a/CsolYBg=; b=jxPvYMKkId6RLxo6wZYysBdIHJ12pP9l4ogOvV51/vVk7nSXzEsfEbsbPNd1vppiQ0 WcCH//9EzG0+4mz0D7PtceXUtAvg/QbAtAasySZaGt9eIEFKAjyAx3J4TIqgLkVMcExX NFKYfmOi7JJHiAW4XsqS2uoEjbCOcujobMyrFInixPqi9LEHMukbS91td7Q9iRXEFR5R +WBm6Jg6knwiCzFEcPcLfkAqYQgLQvHAbAr5ULW+Rzdk964ITNlwoctZxxVGFJnvwJj1 ubMYckVRyUPSedl5MfYzNB64VCgCS4R4SAxKBWBkZF/re4zizPjXNQy2uAJ+qob661N7 rXAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fW9dH7BM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g23-20020a1709063b1700b00a4652723d2asi7347381ejf.967.2024.03.21.07.16.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fW9dH7BM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 88DB71F22734 for ; Thu, 21 Mar 2024 14:16:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E313D84FD8; Thu, 21 Mar 2024 14:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fW9dH7BM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1296D84FC8; Thu, 21 Mar 2024 14:16:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711030578; cv=none; b=kciv2QFogEIAKkdj9ocb755M2FbYIKRTg3M6+E/5vPKrc5gsCWIknqO/SouJSaCkskKHGFxkkmqbVdwJ86SvC+FljZuBf7FmklSUhgrp3xS0ccGmxREf/INOr0IxGo7+Km19evFb2Vq1HKX33ObR6R8CFqbJgzXqo1UPIJrqmco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711030578; c=relaxed/simple; bh=P2zV7GBm6lZnqd1GyySXrz0bEM2Hy/g25qCyixz2gNc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CE+WLIYQLxsjYfoDqIdrNWtD9A5W1o90RYJqhVgpnAgQGoDoE1FuQm/ajzSd9uQe8BMBj0ihIIIhsCSuu+/BLqwvEsqCFnrd/RXNGdmT7EOAdG6UjDNPARtoqCL1Yrk73ToHGQdxLIfhGCCys9zaLOvGTN3HYaEZqbmglmJcOi0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fW9dH7BM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59432C433F1; Thu, 21 Mar 2024 14:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711030577; bh=P2zV7GBm6lZnqd1GyySXrz0bEM2Hy/g25qCyixz2gNc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fW9dH7BMmIevERikyWGHcZmsIbOXQ9fjWzyoXErKCIDVVF3sZz35Q38spMoqCGUPQ V6P5o6VLXr2LR0+3xT7Zl28eqHrz2DGjZ46KY2QXwvVHG6u/LkgyfMWiLngP6GTIWV vhijr0O3NijoGph47oDIOt9ggTLUtlWPLV1DHGs4CvryZ+CRti4C5ePTr/jsSiCKBz a/Vahj2Z7pQJturGtGRJbE+80oBoxYEZ124/29P2RcDW8gMZp+lHutGUYTUYVFXu9K PbCxcp5y9ZJhB7KwEkACyDXDqMroHv0rq6MDAt+pLUBVqoD1bGVyToKyAT8ink4lxH GtDTJckgKsd5g== Date: Thu, 21 Mar 2024 15:16:12 +0100 From: Mauro Carvalho Chehab To: Benjamin Gaignard Cc: tfiga@chromium.org, m.szyprowski@samsung.com, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, hverkuil-cisco@xs4all.nl, nicolas@ndufresne.ca, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, kernel@collabora.com Subject: Re: [PATCH v21 9/9] media: verisilicon: Support removing buffers on capture queue Message-ID: <20240321151612.42de52a5@coco.lan> In-Reply-To: <20240314153226.197445-10-benjamin.gaignard@collabora.com> References: <20240314153226.197445-1-benjamin.gaignard@collabora.com> <20240314153226.197445-10-benjamin.gaignard@collabora.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Em Thu, 14 Mar 2024 16:32:26 +0100 Benjamin Gaignard escreveu: > Allow to remove buffers on capture queue because it the one which > own the decoded buffers. After a dynamic resolution change lot of > them could remain allocated but won't be used anymore so deleting > them save memory. LGTM. Reviewed-by: Mauro Carvalho Chehab > > Signed-off-by: Benjamin Gaignard > --- > drivers/media/platform/verisilicon/hantro_v4l2.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/verisilicon/hantro_v4l2.c b/drivers/media/platform/verisilicon/hantro_v4l2.c > index 941fa23c211a..df6f2536263b 100644 > --- a/drivers/media/platform/verisilicon/hantro_v4l2.c > +++ b/drivers/media/platform/verisilicon/hantro_v4l2.c > @@ -756,6 +756,7 @@ const struct v4l2_ioctl_ops hantro_ioctl_ops = { > .vidioc_dqbuf = v4l2_m2m_ioctl_dqbuf, > .vidioc_prepare_buf = v4l2_m2m_ioctl_prepare_buf, > .vidioc_create_bufs = v4l2_m2m_ioctl_create_bufs, > + .vidioc_remove_bufs = v4l2_m2m_ioctl_remove_bufs, > .vidioc_expbuf = v4l2_m2m_ioctl_expbuf, > > .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, Thanks, Mauro