Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3086568imw; Mon, 18 Jul 2022 01:41:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sVZO/iRjhUTEBDLJdVmV/MWT0IUcz9tvZ/+aV22VzM0OAG7T+zefkkwcADXUg9ShBRUS5O X-Received: by 2002:a17:906:58d6:b0:72f:25c0:af2b with SMTP id e22-20020a17090658d600b0072f25c0af2bmr5268702ejs.326.1658133695195; Mon, 18 Jul 2022 01:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658133695; cv=none; d=google.com; s=arc-20160816; b=0NUM9uzEYPeOBRMRI4iwJLgIk++ECbQrmvUcpU9Y88cR80/HTCHDZLTRKqkjMpzr/z RPTQHvkx9XNvazzDTE80sBtD9P81UFofgYFBPAHbTNJ4kn3P1OxwlK88kz7F/DA7ZRYo ccoYFx6n5x5bUiQft5T8mtJyGHCOiV/t5MEpC0g03K11I1rMBh+6DKQxtUCZEBMm8GF9 xqzeFYrEeIsiKNbYr5gdQpOxOZIYrLU9aoiuVY4KxY/4ksOwUnOsb6B00IhxxbZkePXR nJs4fTYxtLZrQISPMfNqr/fZVuR8fAhFKmR+y+sesYmseHaY/FeKMwUJZraIu6DWAgfc 7Z2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BvXK+OfqA6VPu8kkNXGATx/sLT/yEPTB3v2ybp9JaF0=; b=AxEaFdxSu6JMp1PMPudL53GSu/Fpp3wQpXIbk/muPkkcgJdX1CWCya6ShmOCoPOXIG 1Ck05zeDSPSVj1/jsJIBiUw7c2cERh2Mad7u22Umi8vdJ3LDjxALddewMQaqeMSfkV7S vgvefFfXWfKq0p7qWeHB6ObIjYxl5kmhsLA0fAv0BcGZINdb//AzlDHjJjge7oMz451p JmsBxoB49a8kMlQVf2WkZLcsVNRBHGtI4m0/aLAG6a4YkcE4RjI9ywt25P+MrwIMmSC0 M13dogBWq3wrhnb+Hzq7VgwQ0Re51vWv4LLIT3K9IN2hAnxvmSn09E518+7rNCxRlTK2 DVXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=izorKfV6; 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=NONE sp=NONE 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 x26-20020a170906711a00b00726d02f0e0csi13441479ejj.816.2022.07.18.01.41.10; Mon, 18 Jul 2022 01:41:35 -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=izorKfV6; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233859AbiGRIj5 (ORCPT + 99 others); Mon, 18 Jul 2022 04:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232158AbiGRIj4 (ORCPT ); Mon, 18 Jul 2022 04:39:56 -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 30872BC92; Mon, 18 Jul 2022 01:39:55 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:4754:89ee:32c6:e620]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 441056601A12; Mon, 18 Jul 2022 09:39:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658133593; bh=VGO6bJB0It56njxoW1ZluHISXuIAwk0hlWOpYr3qvh0=; h=From:To:Cc:Subject:Date:From; b=izorKfV6D59nkihSVVKwQzSDN6Be6j30U2dXb1Obk6eo/wo2kD4uc10x9gpPwKBez LCuYFa3wmKb1txsaIlMzbu9X3P9OY7ldwE9iQVKcchwLub1flI/Al8DY6J2Wrg+Us6 +dQUhW1zx0fLkn6aDgZ5mr382mVn1Xgi5nfywkJbjYPa0rAnxsbZ+aaZRkrlAPeAeD oZn3P0PbCbYtXQAjp78j3SZx/b+XceGR9DHogelEN05zCeKLFPjJmhALUHUVRcCgP7 kX+uzdMm4NyQcA1xnayA5AM/u8WgZHUBN2XCWDrYUm/QhPdNYe+s8KMv8hPa38TPyQ 4OLYDHIsr+zyg== From: Benjamin Gaignard To: mchehab@kernel.org, hverkuil@xs4all.nl, 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, Benjamin Gaignard Subject: [PATCH v2 0/7] Enable 10bits bitstream for Hantro/G2 HEVC codec Date: Mon, 18 Jul 2022 10:39:38 +0200 Message-Id: <20220718083945.200845-1-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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 ? 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(-) -- 2.32.0