Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5156538rwr; Mon, 1 May 2023 00:37:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kIFjT371g85I0f0Q2KGyJEBkY8wNZ7mXv4riAfPWtg2QElUmiq/XiiLQTWpao44tw62e3 X-Received: by 2002:a05:6a20:a683:b0:f0:2501:349b with SMTP id ba3-20020a056a20a68300b000f02501349bmr13885352pzb.25.1682926659793; Mon, 01 May 2023 00:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682926659; cv=none; d=google.com; s=arc-20160816; b=047RwaxPAGdHpeJSd+TADnwcB8mdHzSUpYL7io13LrJwobuDsf2hTRPy5dZzLoWi9+ P2tD3jVCm6PQzr5xMx1UlvmXGVBWgkaRPvt5BBBA1mXQ8cSHYiw2iqknmCpzH0RTs/xA vIfgxHWREdqw3TRRqzU7PyHnNjMfL5ZJeN2VJ8/sM0Sw7OjkdaOhrAkWiZ3/qkEuiVRr CeHwuJrFMKtbhQBh5a9F19FX9s1f1NoEiuKyI5GXmgTLveBnC4yLE/Huq9SC92hWLOdM 8yVKX7QelqYLQ1Qd3dVb3CjH/WBC630embhQPSQhfxCgEO6cNeFzjeZ8tFvsx4SpHWXo JqQw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=H2toOeoIP6ty+DGXf0y/7yWkhnnQLabNj3hJV8NPGDw=; b=O4Y2Ihy1RjkIArPM3arj10zfFylQ5GezD+s08i7lS9lGV780BxGwEUW2fF2u2CONMB 8WPUmZm+npklZ8OvMS3z8w80yFy3g4SZOA6L3128DxGbAuyaD1PtElJkWTqoFvPzyiqX BLEqdjhq82+2E71PPEMlAnw83fHuzvz+ZZ2yb8LifgHhiAWkBPkKxoeS/Ax74GbYWQeK cfPafsa4JbjBC25VDxS6LzHZ97OeF6XOhtaGLTQ0o24sK2OzZTQundDZOhnAcLqpuM4G +B5COayqBjCnNtNAbktt6DFYwRqe/72xjW6ak3cBsPTjGRzg/bXpmncB7Wu36qhtk3S+ ldng== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a63eb18000000b005139d2b9306si27382902pgh.514.2023.05.01.00.37.26; Mon, 01 May 2023 00:37:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232208AbjEAHWB (ORCPT + 99 others); Mon, 1 May 2023 03:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbjEAHWA (ORCPT ); Mon, 1 May 2023 03:22:00 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17061E53; Mon, 1 May 2023 00:21:58 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1ptNr8-0001Go-Es; Mon, 01 May 2023 09:21:54 +0200 Message-ID: Date: Mon, 1 May 2023 09:21:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US, de-DE To: Shreeya Patel , 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> <26addb7d-bb9d-34e8-d4fe-e323ff488101@collabora.com> From: Thorsten Leemhuis Subject: Re: [PATCH v9 1/6] media: verisilicon: Do not set context src/dst formats in reset functions In-Reply-To: <26addb7d-bb9d-34e8-d4fe-e323ff488101@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1682925718;5ed265df; X-HE-SMSGID: 1ptNr8-0001Go-Es X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 27.04.23 00:19, Shreeya Patel wrote: > 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 Thx for the report. FWIW, regzbot noticed there is a patch that refers to the culprit that might have been landed in next after your test ran for the last time (and meanwhile it was mainlined): f100ce3bbd6 ("media: verisilicon: Fix crash when probing encoder") I wonder if that is related or might even fix the issue. Ciao, Thorsten >> --- >>   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; >>       } > >