Message ID | 20221207-rpi-hdmi-improvements-v3-0-bdd54f66884e@cerno.tech |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1774495wrd; Mon, 6 Mar 2023 03:06:47 -0800 (PST) X-Google-Smtp-Source: AK7set8CgqMo9NRIpgyOlU8kT2tR76+ATzJmbnV1pFNrjaJA7XZan3+vKIrDX/Kk4hI6R9NZoQZ2 X-Received: by 2002:a05:6a20:158d:b0:c7:717f:4863 with SMTP id h13-20020a056a20158d00b000c7717f4863mr13366658pzj.21.1678100806830; Mon, 06 Mar 2023 03:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678100806; cv=none; d=google.com; s=arc-20160816; b=zpKqLt98V5hbdIfWBzfRHS2n+G97LSrfqsDGF6HjqO0T4ZagkpbiRdlsBs7Ymlujil 5dgR588O+aNKaCF4a0MiTY2mFfOO9+1hRO6NRatzF8cqqpOx8wCfz+aVMby+9xjZl6TN AFMp2w3faa/xKEoEo1Y01xhmYlRWSkSwbJEK630TUdFu35pkwnVe+jGm7AqgwUB8sHSW ExfL/HhjeObpRY2fbJKdg5EXtNGqDEBQcqq4F7bbhc/asnZPlZiShONjPCdq9cuq8u62 wGiIy8atWHgTBdVIQgyvBjrtrc+79DoC85NrdVekzy9n3xfdbTsArGNxrNKajfJcCgl6 vt/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:feedback-id:dkim-signature :dkim-signature; bh=q4ovOrCsKz1xIMfq6VOqlmn5ZsRe2oL7RgsUcVVSluQ=; b=MJp2xjPjIopgOdczvt3J0pwo/2vTx68NS4CGuW+G8tC0usnx8sGYlJ/g1ZCkekdh9T UbTofuh1Txu1qHSsZl3IuOMuCq2RMRSK40dFv4eJYQt+ywqBT2ub5uw0g0eq2PuerMPY pdm6HAkFmQPyXC4j1jVJXZD+3hPw+gZzQqeLQaB/64vixhyOckg+Duza2IhyRtbTo1dF aDCQVwpGnyHnsTNnxHy8YoNZPBxE666w3jizOXJCN43RzCXEKJY8Mvj/Na2ndsvryt5B vWOnsZcZQS6fRWpPUz9OTKbikrkdm9OAa740zn+QcPjj3ggLaW0Ahq3mtiIEjEExT5oN UIbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=OS085Plg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jFoeWdKe; 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=cerno.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020aa7972c000000b005a48ecab9a1si9942105pfg.167.2023.03.06.03.06.32; Mon, 06 Mar 2023 03:06:46 -0800 (PST) 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=@cerno.tech header.s=fm2 header.b=OS085Plg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jFoeWdKe; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbjCFKtp (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 05:49:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjCFKtn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 05:49:43 -0500 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D32E7227BC for <linux-kernel@vger.kernel.org>; Mon, 6 Mar 2023 02:49:42 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 331065C01BB; Mon, 6 Mar 2023 05:49:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 06 Mar 2023 05:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :sender:subject:subject:to:to; s=fm2; t=1678099780; x= 1678186180; bh=q4ovOrCsKz1xIMfq6VOqlmn5ZsRe2oL7RgsUcVVSluQ=; b=O S085PlgQgX/nnFBT6AGiA4YkGL9Z5TSi874M3KbNFw+NFHkkW7g8fe6qbEM/xmz9 DH3AOq8zmNW0g9L6Tijf8tNe2lmhKVcQiCyKrQj22YlC2xBKNHAjUQ3eklr0jYJD VfASsLFlHtYwGjDlCmkCDrFTTjLUNBicm95zoXy7dhIWcNcW9hMU+EAYVa/GJwue enWYzLR1b7oqVG5F5siV7nGj92Ln3eblWXnIzRD7B5KDdC/92CGTsAlBTHZu5kNo 1V49UoxBcLesMAs6VFr5oKkYzGbhDsg+44VAzCeSwKF9IaYN3NqoOs41+XOnsw2A 1LHfYv45iqkuD/MUMQ7DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1678099780; x=1678186180; bh=q 4ovOrCsKz1xIMfq6VOqlmn5ZsRe2oL7RgsUcVVSluQ=; b=jFoeWdKeMuqbkxk6d ZP4A9P1SwfPw25hFhW7MRv5wzIELrAoK22mamkJTyZGp0v5zI18V3D6YEcJ00i02 QFBldhtzvoMSd38n7iCn0UwUYexvWmXrL4NRl0ISq95wsV8VpvB5mFIZ/g+OEru6 MXWdiHXjRRNA9LsuXx8HUatfQjLmxCeaI1toMyFonytBZJ6pPckodFXA7B3Rf/Zq LKnyyz0TYLp+21vnAlhzVQwKc1fngiLnyXytI18Tg/SGlahv29k22mqiHq1/ciPK BaI3Dq5+Nt2iMkUNPCNgY9mpTUdlVWOCMwDlL1GUxPMW6uxRTj9CGbcun7yhGseM 2EObg== X-ME-Sender: <xms:Q8UFZDhRJf7_5Xvxd4o8n8M6mW1WrJjkwQpxBJ25_rWSeJyVbzOO1A> <xme:Q8UFZAABcnTWVCwme6Rq2yzRe9ydzxRpe4RqnSlHtfZXj-tcKGnZ55H47dqSCO4qp vxCCZv1TUWSNCqGpsI> X-ME-Received: <xmr:Q8UFZDHF0OQIfP493WJl4EWle4td9Gk-7JEuQE-UXmrt8B8V2PYTJf5vWdlPNiUaTmPNypDreDIfDgiXTF2N8OM6_1FxeUw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtiedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepgfeutdejvdeiheffveetieejtdfhleekleffheejtdfhkeehfeekgedvgeei tddtnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: <xmx:Q8UFZARoHYp4glZWXibcDbmTqNa6KkdYhvN5Ked4X6206Fsha2xrGg> <xmx:Q8UFZAym7NEUqYgWZS3UCBjGEFUHFsRKKLRUFOO-DZSY-vZus1HXuQ> <xmx:Q8UFZG4X6Prm0-wuCM7c-WvsVndFMP7rL56Fw_CnfLC2WLvs4ExphA> <xmx:RMUFZBoWXxkIqs33uU74zgXzSPRw6Zk_HCG5TFT8SVMqknRb5kL4Vg> Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Mar 2023 05:49:38 -0500 (EST) From: Maxime Ripard <maxime@cerno.tech> Subject: [PATCH v3 0/9] drm/vc4: hdmi: Broadcast RGB, BT601, BT2020 Date: Mon, 06 Mar 2023 11:46:41 +0100 Message-Id: <20221207-rpi-hdmi-improvements-v3-0-bdd54f66884e@cerno.tech> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJHEBWQC/43NzwrCMAwG8FcZPRtpM3XDk+8hHvon2sDWjXYWZ OzdDd486Sl8Id8vqyqUmYo6N6vKVLnwlCS0u0b5aNODgINkhRrRoO4gzwwxjAw8znmqNFJaCrS BjNfBWQxeSdfZQuCyTT5KOz2HQZaRyzLl1+dXNTKuv9hqQMPJmeO96w7etPbiKadpv5C4NyEr/ sWgML31hKGXQxu+mG3b3lM7HXIHAQAA To: Emma Anholt <emma@anholt.net>, Maxime Ripard <mripard@kernel.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dave Stevenson <dave.stevenson@raspberrypi.com>, Hans Verkuil <hverkuil@xs4all.nl>, Maxime Ripard <maxime@cerno.tech>, Thomas Zimmermann <tzimmermann@suse.de> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2265; i=maxime@cerno.tech; h=from:subject:message-id; bh=25IYmcfQdR7HII8ziNWw1kuesEjMVsnC13rHxR+abUU=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCmsR6bbyU8uFH/s8Dcu/av7ji06R6I/mTCc+Kyfrj7FLW9F wN11HaUsDGJcDLJiiiwxwuZL4k7Net3JxjcPZg4rE8gQBi5OAZjIRzmG/0F7rpqcub9h9+X6lskXzp ySnO6TvbtM2CFb+MzPRzl237gZGZbJzVrw64FYpAbbkpfVcg5vtlQmbPt8KNvkju1c14kGvCwA X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759616231517855644?= X-GMAIL-MSGID: =?utf-8?q?1759616231517855644?= |
Series |
drm/vc4: hdmi: Broadcast RGB, BT601, BT2020
|
|
Message
Maxime Ripard
March 6, 2023, 10:46 a.m. UTC
Hi,
Here's a collection of patches that have been in the downstream tree for a
while to add a bunch of new features to the HDMI controller.
Let me know what you think,
Maxime
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
Changes in v3:
- Convert only helper functions to container_of_const but drop the
direct calls in the driver
- Link to v2: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v2-0-8ace2d8221ad@cerno.tech
Changes in v2:
- Added a new patch to convert every state accessor to container_of_const
- Added a comment to mention why planes don't need to be checked
- Removed vc4_hdmi.broadcast_rgb field
- Reordered the CSC swap and CSC matrices organization patches to make it clearer
- Link to v1: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v1-0-6b15f774c13a@cerno.tech
---
Dave Stevenson (7):
drm/vc4: hdmi: Add Broadcast RGB property to allow override of RGB range
drm/vc4: hdmi: Rename full range helper
drm/vc4: hdmi: Swap CSC matrix channels for YUV444
drm/vc4: hdmi: Rework the CSC matrices organization
drm/vc4: hdmi: Add a function to retrieve the CSC matrix
drm/vc4: hdmi: Add BT.601 Support
drm/vc4: hdmi: Add BT.2020 Support
Maxime Ripard (2):
drm/vc4: Switch to container_of_const
drm/vc4: hdmi: Update all the planes if the TV margins are changed
drivers/gpu/drm/vc4/tests/vc4_mock.h | 3 +
drivers/gpu/drm/vc4/tests/vc4_mock_output.c | 4 +-
drivers/gpu/drm/vc4/vc4_dpi.c | 7 +-
drivers/gpu/drm/vc4/vc4_drv.h | 65 ++----
drivers/gpu/drm/vc4/vc4_dsi.c | 17 +-
drivers/gpu/drm/vc4/vc4_hdmi.c | 336 +++++++++++++++++++++++-----
drivers/gpu/drm/vc4/vc4_hdmi.h | 25 ++-
drivers/gpu/drm/vc4/vc4_kms.c | 16 +-
drivers/gpu/drm/vc4/vc4_plane.c | 3 +-
drivers/gpu/drm/vc4/vc4_txp.c | 12 +-
drivers/gpu/drm/vc4/vc4_vec.c | 14 +-
11 files changed, 341 insertions(+), 161 deletions(-)
---
base-commit: dc837c1a5137a8cf2e9432c1891392b6a66f4d8d
change-id: 20221207-rpi-hdmi-improvements-3de1c0dba2dc
Best regards,
Comments
On Mon, 06 Mar 2023 11:46:41 +0100, Maxime Ripard wrote: > Here's a collection of patches that have been in the downstream tree for a > while to add a bunch of new features to the HDMI controller. > > Let me know what you think, > Maxime > > > [...] Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime