Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3087401imw; Mon, 18 Jul 2022 01:43:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sIGqS5aq2DDN7Bh4z3WZnmH1A5ylJzHuKx3V8+AwLqaJJvQWgm7Gd9DuUn3KnzHxvlv+MP X-Received: by 2002:a17:907:3d89:b0:72f:18b7:9035 with SMTP id he9-20020a1709073d8900b0072f18b79035mr9473074ejc.13.1658133784782; Mon, 18 Jul 2022 01:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658133784; cv=none; d=google.com; s=arc-20160816; b=m+RavEtTlwnBEvokpjAtMdrPZ3a0aNINWcwDVIPGbPuw2y+it/PViMSvkrMsk9cjEI K0ModEzKkaOjPfMiMpnDyj0eDYbQ/7gJ+TsB87TZOJTyhWUl3zMQlmCB+h3b2m0r6NEh Oj9JsjMIFpUZ3Vu3kwxMJAkXqybNRxcXaLu3LVTemvSoI35BgvfDBA+gUuDVOyZQUnxC HTYsK6vovkcwmo7CbcCPXeeNXXYFlSvOkPOAH5xuE3hR9hD/AbJ6aK7wB5WOq1ahh9N9 vrAi+UaXbyNk0qpBtlMtWJyXo58H4F/nP5k53Zp+dFbL0lsn78SLR3ioHYEE411O8xdm 2aMQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2TSUoNlORUbeODRRgpXOQ/qR/j20AqfOLvYHhNDEtH0=; b=b4NtxgzD6yKOxtWOhVb+pY3RKdAXPDNC6NytSxLgq/F4Thv3rN2NgA/wOrDB5FCP4I pu9GGw0rRS4dMgkvOSS3kW6ufh+msnBz4ATnlmGMY8zglZYuCngUkwalSyfQG09zxvz6 2ROvQLig9evD57Bz/wn0BL+4ugZD9tO0fdveMsViPv9cgzG3thriGFnItFNQuDLS2blv 1WL5C5w/Pw48FGFsORkrMGQAWGM05mh8Csh7ZD/t0YrxeGap2r8wPnwBVyQbgAw8t1KI s5nQFN0fvOBBHwErTnwH6jZLpGoLdj2xFu9bXSkObs44eTtFtqrSP5JiIayYzxGkO+w3 cCUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VScNcZFo; 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 i2-20020a50d742000000b0043a41067d41si15641339edj.274.2022.07.18.01.42.39; Mon, 18 Jul 2022 01:43:04 -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=VScNcZFo; 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 S233990AbiGRIkR (ORCPT + 99 others); Mon, 18 Jul 2022 04:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233917AbiGRIj7 (ORCPT ); Mon, 18 Jul 2022 04:39:59 -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 12DACCE14; Mon, 18 Jul 2022 01:39:59 -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 653516601A60; Mon, 18 Jul 2022 09:39:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658133597; bh=jZmGvkb7n+75B0nt2mIj34v/6KyHMctIRA+CFwtwDYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VScNcZFoTG5VOL7VDsA8nOf3rzUVyHxKCx5HKNUzXsNqz8zsiUAUw5g2rfboc3Cqm v9+hrV8y1u9J6KvigdVt9aBTnTGW3vUKrK4mvWvHDmgoDy7ELR1VwhyeHwhZaa+oJd 1ss0Qj2VAc3zWqYtrIy5UmqJwNTPkDVCqmXyE69T0gzb68lucPH2zNVN1ZpCYXdEr8 Epu5O4usA4pTk4GsGr/kfeciML0pnL2LIcdGrtLAulUl0jOgCEPe1U6vEIVyZiMwkn lJwtOmWpiNC/D9VbdzfFKyp4aGYtFiiBW/I2ck4ObeEQ5d6+f22wvWro/ZC+ZsUUeY 6z0PmuKVPoRRA== 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 6/7] media: hantro: imx8m: Enable 10bit decoding Date: Mon, 18 Jul 2022 10:39:44 +0200 Message-Id: <20220718083945.200845-7-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220718083945.200845-1-benjamin.gaignard@collabora.com> References: <20220718083945.200845-1-benjamin.gaignard@collabora.com> 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 Expose 10bit pixel formats to enable 10bit decoding in IMX8M SoCs. Signed-off-by: Benjamin Gaignard Reviewed-by: Ezequiel Garcia --- drivers/staging/media/hantro/imx8m_vpu_hw.c | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/staging/media/hantro/imx8m_vpu_hw.c b/drivers/staging/media/hantro/imx8m_vpu_hw.c index 77f574fdfa77..b390228fd3b4 100644 --- a/drivers/staging/media/hantro/imx8m_vpu_hw.c +++ b/drivers/staging/media/hantro/imx8m_vpu_hw.c @@ -162,12 +162,39 @@ static const struct hantro_fmt imx8m_vpu_g2_postproc_fmts[] = { .step_height = MB_DIM, }, }, + { + .fourcc = V4L2_PIX_FMT_P010, + .codec_mode = HANTRO_MODE_NONE, + .postprocessed = true, + .frmsize = { + .min_width = FMT_MIN_WIDTH, + .max_width = FMT_UHD_WIDTH, + .step_width = MB_DIM, + .min_height = FMT_MIN_HEIGHT, + .max_height = FMT_UHD_HEIGHT, + .step_height = MB_DIM, + }, + }, }; static const struct hantro_fmt imx8m_vpu_g2_dec_fmts[] = { { .fourcc = V4L2_PIX_FMT_NV12_4L4, .codec_mode = HANTRO_MODE_NONE, + .match_depth = true, + .frmsize = { + .min_width = FMT_MIN_WIDTH, + .max_width = FMT_UHD_WIDTH, + .step_width = TILE_MB_DIM, + .min_height = FMT_MIN_HEIGHT, + .max_height = FMT_UHD_HEIGHT, + .step_height = TILE_MB_DIM, + }, + }, + { + .fourcc = V4L2_PIX_FMT_P010_4L4, + .codec_mode = HANTRO_MODE_NONE, + .match_depth = true, .frmsize = { .min_width = FMT_MIN_WIDTH, .max_width = FMT_UHD_WIDTH, -- 2.32.0