Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp583765rdb; Tue, 19 Sep 2023 04:42:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDKf+UMzke/cJgxreJXolvciHLX/D0fKRZ9lCFc5rOV1mhEHvFv/CuWKwOSx3Bdfp+dncX X-Received: by 2002:a17:903:249:b0:1b8:2ba0:c9c0 with SMTP id j9-20020a170903024900b001b82ba0c9c0mr12565362plh.59.1695123766765; Tue, 19 Sep 2023 04:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695123766; cv=none; d=google.com; s=arc-20160816; b=GFyAgBcq3zr6C/zVsIZbzlmbm9/ATvKGzXO9dOQaM4hBNBoe9f6pe2UnH2HaU2iWw0 gEc03CgZbvmL4PA3UDU5TntO6oZtfrzS1S3rw/CMtCCQhWVagJ5rnnBy/tDJ/5QFD0jU aAHNZipr+HGzkFTARlYgrWK2htGj2AO3M0RDJipGNf2xnKWwywUgtZMxjHplawetM4RW yS6BgQgiPezgb98IG/m0CkE3X9QIUYTENKP0WMPWEvFYAR5ObfB1kG+dRz8QhBXGlgJa XYcykgM/Um0d9nF13WzhB969WesBGlLEZYJY875AvVtoaLWRbc6TxmlOkAKmbWGg9ip4 vHDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=RgLJ+UX4E9t+LX0j9Zq5TtVtUDy1rjiLB202BBcIoXk=; fh=rvfjkWKWQ7H3dxwU/Mrzlf1SBsZ3Tuo/EBElQFetDNM=; b=wcfnPviPbY7fYbwOav9rdmna0o+34bFyaZvdPfcdtVGqDwQtqwYncS4jQfsAHUUYpG syxDoJf8qbksp2OvwW8L6F3QTfNaIWpE5iECqF5kPrhTURQVZYUf/k56FwnJMZQBbO3+ icHDcJSCTHGrFWUb1W1DUJ3OyEyAl5nTS30ufWF6YdXNPrbs8xHuTciu+qw6h5bZj/7f NMEfjO0+Q2cnS0i6Zsr5AKlP7dK+QbLBVTQ/9cR8Hp1QGJ/dkSK/5fn2NnkGmin9roqb EyyZOusPFVWmgKVb5L07UGOhE5vPKo58R0zMjuc9bg05/p2eCxQBZnZecAaR7FZmEE1o I/lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i2-20020a170902c94200b001bb8c4279f5si4087215pla.148.2023.09.19.04.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 691CE827D65D; Tue, 19 Sep 2023 04:16:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232244AbjISLQb (ORCPT + 99 others); Tue, 19 Sep 2023 07:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbjISLQQ (ORCPT ); Tue, 19 Sep 2023 07:16:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 740CAFC; Tue, 19 Sep 2023 04:16:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 544B8C433C8; Tue, 19 Sep 2023 11:16:05 +0000 (UTC) Message-ID: Date: Tue, 19 Sep 2023 13:16:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 16/49] media: verisilicon: postproc: Fix down scale test Content-Language: en-US, nl To: Benjamin Gaignard , 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, 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 References: <20230914133323.198857-1-benjamin.gaignard@collabora.com> <20230914133323.198857-17-benjamin.gaignard@collabora.com> From: Hans Verkuil In-Reply-To: <20230914133323.198857-17-benjamin.gaignard@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 04:16:50 -0700 (PDT) On 14/09/2023 15:32, Benjamin Gaignard wrote: > Do not allow down scaling if the source buffer resolution is > smaller than destination one. > > Signed-off-by: Benjamin Gaignard > Fixes: fbb6c848dd89 ("media: destage Hantro VPU driver") Is this really a fix? I gather that this relies on "VP9 resolution change without doing stream off/on" support, and support for that is added by these patches. Adding the Fixes tag would cause stable maintainers to queue this patch up for older kernels, but I don't think that is needed here at all. And related I also think that this really does not belong to this patch series. As I understand it, patch 13/49 extends the verisilicon driver to support more than 32 buffers, so that one makes sense in the context of this series. But the other verisilicon patches appear to be unrelated and instead add a new feature, and I don't believe it relates to this series at all. If I am right, then please post this as a separate series, possibly mentioning that it sits on top of this series. Regards, Hans > --- > drivers/media/platform/verisilicon/hantro_postproc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/verisilicon/hantro_postproc.c b/drivers/media/platform/verisilicon/hantro_postproc.c > index e624cd98f41b..77d8ecfbe12f 100644 > --- a/drivers/media/platform/verisilicon/hantro_postproc.c > +++ b/drivers/media/platform/verisilicon/hantro_postproc.c > @@ -107,7 +107,7 @@ static void hantro_postproc_g1_enable(struct hantro_ctx *ctx) > > static int down_scale_factor(struct hantro_ctx *ctx) > { > - if (ctx->src_fmt.width == ctx->dst_fmt.width) > + if (ctx->src_fmt.width <= ctx->dst_fmt.width) > return 0; > > return DIV_ROUND_CLOSEST(ctx->src_fmt.width, ctx->dst_fmt.width);