Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1449184rwr; Wed, 26 Apr 2023 15:30:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Y8TxKkZ6w6LySOij5KdGW8XHaOd6BGO5C/VtDl5ivDbgVYgMpiwQi8RC6O1HO0yR5nUdk X-Received: by 2002:a05:6a00:179f:b0:63c:56f5:5053 with SMTP id s31-20020a056a00179f00b0063c56f55053mr5077570pfg.13.1682548207781; Wed, 26 Apr 2023 15:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682548207; cv=none; d=google.com; s=arc-20160816; b=F4XXk7gEDnjHCV5b/+wKbFApdN4RS8lVfrymU+QsNEnSNfB0Q9Ma5THGA7om8TQ+lM MsoSYG88aAcdVE1jIVO80nF1BtPfC4S+7kzzer7deoHeWHTrniyyTLf+zAw03k/5/jpk /XtOZyyL5ZOurjMrgdNpNmhV557UmffU6Z+geyVRxOjGTTrrAIMrCrtRTqrzYOt/uHDy GonxDMSHI3kw711wnFH0oNPDgGtuKzfr1OTuPmXI/XGU9uSig3f+BbqzppKTwl1evPsx DdXj6ZD3JK8VtVJRcT/aJOjEQi8NKQsHVsSBAJO7TFnBf79A7joOTNNLSOXYsJyLxQIy OmEw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=G//dr8tM9/RO5QM2gQuHnu+zE6RFhnN57ZgkdQpmeek=; b=jtu8PkDxk368kdFp+1EuA7WwCClXqM617NzVk7LksFyQ2QaCTamYNMgGRyGXhrvldY E9ULHLCjlVPV4sz13uBxbKyLBGmMmQUJBl+w+by61pOxkneJt0WnBBooQIJgZ/DmKxCD KWg/ENspC08dwcwvyYbxoDBdn3bOE2XA+vOe7ZFhGwofZDvv9TFIGT0KPzJh76qXJVG0 aPCIuY3ekZsLDNAQ2FgeAg5CQHrdr1K0nUAdtng6fVNxFAtBwb93PbtdtK2QiYyw07qo yv6dr6hfyZEnfEONPFDcuhyhJiG5LAuMj71VyWu8VyABPESVgHjMolASNxwez9n0M8pK ThEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VEDcQrFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j123-20020a625581000000b0063b2399c58asi12314704pfb.195.2023.04.26.15.29.26; Wed, 26 Apr 2023 15:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VEDcQrFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240017AbjDZWUC (ORCPT + 99 others); Wed, 26 Apr 2023 18:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239955AbjDZWUA (ORCPT ); Wed, 26 Apr 2023 18:20:00 -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 2C6E330F2; Wed, 26 Apr 2023 15:19:58 -0700 (PDT) Received: from [IPV6:2405:201:0:21ea:73f6:2283:f432:3936] (unknown [IPv6:2405:201:0:21ea:73f6:2283:f432:3936]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: shreeya) by madras.collabora.co.uk (Postfix) with ESMTPSA id F09E2660309E; Wed, 26 Apr 2023 23:19:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682547596; bh=+OscA6mJnbIYnZfMg7bAO4iT6/B0MVE8PNNsUBI7ZJU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VEDcQrFdE1I+omJfqHC8m/BHpXEM7wrEriDN2hxAn4O3x5NnuVgnf72/71aMwJ/Jo gDhkCAd5C9lFGLlUhTdsgI8HmvAP6PVhLvXTyR3DcImczEzLtX8zBP9lgcDx3xhFon 0vdJYo8OihQDlCT50sm1WWvpqgpo0/BzLR1DEY8/JKZnekpQC5Je9Z23lpnFqNYxus rB02gfObh36TMPh2yLtBTnT6N41C4BJxbiv4tn6Z5kOJeR5i+e7hv+XYeGN5Pn+Bqa HaEH6nSRFsV5pv/L76U2U86ufVKMWzzRS3DuC9o946821M3ZSF9g6sfislLIvmyrK7 yp3NsqEZo2M0A== Message-ID: <26addb7d-bb9d-34e8-d4fe-e323ff488101@collabora.com> Date: Thu, 27 Apr 2023 03:49:48 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v9 1/6] media: verisilicon: Do not set context src/dst formats in reset functions To: Benjamin Gaignard Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, robert.mader@collabora.com, nicolas.dufresne@collabora.co.uk, ezequiel@vanguardiasur.com.ar, festevam@gmail.com, p.zabel@pengutronix.de, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, hverkuil-cisco@xs4all.nl, linux-imx@nxp.com, regressions@lists.linux.dev References: <20230220104849.398203-1-benjamin.gaignard@collabora.com> <20230220104849.398203-2-benjamin.gaignard@collabora.com> Content-Language: en-US From: Shreeya Patel In-Reply-To: <20230220104849.398203-2-benjamin.gaignard@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Benjamin, On 20/02/23 16:18, Benjamin Gaignard wrote: > Setting context source and destination formats should only be done > in hantro_set_fmt_out() and hantro_set_fmt_cap() after check that > the targeted queue is not busy. > Remove these calls from hantro_reset_encoded_fmt() and > hantro_reset_raw_fmt() to clean the driver. > > Signed-off-by: Benjamin Gaignard KernelCI found this patch causes a regression in the baseline.dmesg.alert test [1] on rk3399-rock-pi-4b [2], see the bisection report for more details [3]. Let us know if you have any questions. [1] https://github.com/kernelci/kernelci-core/blob/main/config/rootfs/debos/overlays/baseline/opt/kernelci/dmesg.sh [2] https://linux.kernelci.org/test/case/id/6442e825f19134d74c2e865d/ [3] https://groups.io/g/kernelci-results/message/40740 Thanks, Shreeya Patel #regzbot introduced: db6f68b51e5c > --- > drivers/media/platform/verisilicon/hantro_v4l2.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/drivers/media/platform/verisilicon/hantro_v4l2.c b/drivers/media/platform/verisilicon/hantro_v4l2.c > index c0d427956210..d8aa42bd4cd4 100644 > --- a/drivers/media/platform/verisilicon/hantro_v4l2.c > +++ b/drivers/media/platform/verisilicon/hantro_v4l2.c > @@ -382,13 +382,10 @@ hantro_reset_encoded_fmt(struct hantro_ctx *ctx) > > vpu_fmt = hantro_get_default_fmt(ctx, true); > > - if (ctx->is_encoder) { > - ctx->vpu_dst_fmt = vpu_fmt; > + if (ctx->is_encoder) > fmt = &ctx->dst_fmt; > - } else { > - ctx->vpu_src_fmt = vpu_fmt; > + else > fmt = &ctx->src_fmt; > - } > > hantro_reset_fmt(fmt, vpu_fmt); > fmt->width = vpu_fmt->frmsize.min_width; > @@ -408,11 +405,9 @@ hantro_reset_raw_fmt(struct hantro_ctx *ctx) > raw_vpu_fmt = hantro_get_default_fmt(ctx, false); > > if (ctx->is_encoder) { > - ctx->vpu_src_fmt = raw_vpu_fmt; > raw_fmt = &ctx->src_fmt; > encoded_fmt = &ctx->dst_fmt; > } else { > - ctx->vpu_dst_fmt = raw_vpu_fmt; > raw_fmt = &ctx->dst_fmt; > encoded_fmt = &ctx->src_fmt; > }