Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3183580imw; Mon, 18 Jul 2022 03:43:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u0ZLPMXgTJuZPl4yyVCXkNK29FWNRZh7eJCYHtWw7G479WPKpsgE++Qmq7+CF6ApdRN9Bn X-Received: by 2002:a05:6808:3ca:b0:33a:6eb4:5f76 with SMTP id o10-20020a05680803ca00b0033a6eb45f76mr2864221oie.249.1658141009097; Mon, 18 Jul 2022 03:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658141009; cv=none; d=google.com; s=arc-20160816; b=OYcBcdwccuHYP63fO9f0SzGDc66JAu5d7YoDB8D6ZVPgYNHtDaGZNhB4TXaiWkvlUU 8MnGuiO9/ZDRn0yY0pjug1sevbZegIzzrw33E6yVI2uLUy6ajTcBYUXeWV82YtHkcYQp OQAciD3GacxmNnyE9NbI6PGysDcOom22cDKyrvgqwYXUK27LJfLQ+JUj4ojl6NGpvQLY NOr7ktgwoPAzO4zOHK07OD1oMh4UY8zzdWmnNBxgVmixmud+hq8VeBkQOMBc3VDm52wm 1mE6dKuNcHeKjI8awQApo3kDXAY6NmTGm9gHci8Y2fdlVRZ72/kGyw2m4rDisH1DQpJ7 75Uw== 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=gCJbPtejBwpbj5eT3puv3N/64nsBKCGvHl4jLeGnUAo=; b=aUwgQvTzKC/G8yDz/aTU2VHA157RAfuDpzu0uM8Uh64qnMwMOryyXY+57vIcuMXlcM tT9WwNU2FY7x1OjcUfsFVnitvXs4jBEzn4pjA9uerPTxKwEltpdbBTttJkDl2RTrMaYs BEHzLPCsofPWpb8QbLuKJ0psV7XwyfZj99dNw5YgeTcXi4QYzG+A9tTkHWCg0ZkaDNas 6KGO/LyBE/o+vMPsIHenLtsOFydMUPCHpmgnDtBpDnKaY7qpihiVy8Qf2GQiVA4r6z3M 1qKALo7N+LFFd4NXYrkkdu+3X/bzyBzcXCAKoXg6EqHfYyDIk9VOk1CSKt/Iei30F3MA wcMA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a544388000000b0033a26a4a5f0si7667375oiv.235.2022.07.18.03.43.16; Mon, 18 Jul 2022 03:43:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233943AbiGRKM7 (ORCPT + 99 others); Mon, 18 Jul 2022 06:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233833AbiGRKM6 (ORCPT ); Mon, 18 Jul 2022 06:12:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5A491CB0B; Mon, 18 Jul 2022 03:12:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5CEC5B80E25; Mon, 18 Jul 2022 10:12:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD49FC341C0; Mon, 18 Jul 2022 10:12:49 +0000 (UTC) Message-ID: Date: Mon, 18 Jul 2022 12:12:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 0/7] Enable 10bits bitstream for Hantro/G2 HEVC codec Content-Language: en-US To: Benjamin Gaignard , mchehab@kernel.org, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, nicolas.dufresne@collabora.com, andrzej.p@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, kernel@collabora.com References: <20220718083945.200845-1-benjamin.gaignard@collabora.com> From: Hans Verkuil In-Reply-To: <20220718083945.200845-1-benjamin.gaignard@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, 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 On 7/18/22 10:39, Benjamin Gaignard wrote: > Since v1 Jernej patches to support 10 bits decoding have been merged. > This v2 rebase the previously send patches and add Ezequiel reviewed-by > tag. > This series add 10bits support for newer hardware blocks (i.e without > legacy regs) and for HEVC codec. > > It based tested on IMX8MQ with HEVC conformance tests. > The results are that all 10bits bitstreams are OK. > > The problematic point raise by this series is the question of where > to put HEVC validation function. Does it have to be only hantro_try_ctrl() > or shall it be done also in .run(). > This series doesn't change that behavoir so I will argue in farvor to > merge it and to work on this validation time problem when unstaging > the driver. > Hans, Ezequiel may that sound acceptable for you ? Hmm, the hantro driver will be unstaged either this week or (hopefully) very early on in the next cycle. So I think you should no longer consider hantro as a staging driver but as a regular mainline driver. This series definitely won't make the 5.20 cut, so I think it makes more sense to get this right before merging it. Regards, Hans > > Regards, > Benjamin > > Benjamin Gaignard (7): > media: hantro: Store HEVC bit depth in context > media: hantro: HEVC: Fix auxilary buffer size calculation > media: hantro: HEVC: Fix chroma offset computation > media: hantro: postproc: Configure output regs to support 10bit > media: Hantro: HEVC: Allows 10-bit bitstream > media: hantro: imx8m: Enable 10bit decoding > media: hantro: Allows luma and chroma depth to be different > > .../staging/media/hantro/hantro_g2_hevc_dec.c | 4 +-- > drivers/staging/media/hantro/hantro_hevc.c | 13 +++++---- > .../staging/media/hantro/hantro_postproc.c | 7 ++++- > drivers/staging/media/hantro/imx8m_vpu_hw.c | 27 +++++++++++++++++++ > 4 files changed, 40 insertions(+), 11 deletions(-) >