Message ID | 20221207-rpi-hdmi-improvements-v2-0-8ace2d8221ad@cerno.tech |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp279797wrn; Thu, 26 Jan 2023 05:53:00 -0800 (PST) X-Google-Smtp-Source: AK7set/052Dkx8qMMmu4mq5n+06ceq4lB8JybGO1TwKOY1R/AxpKx0g2DR7zjBCZS7KKYvZ6/7xI X-Received: by 2002:aa7:cf07:0:b0:4a0:b659:6bbb with SMTP id a7-20020aa7cf07000000b004a0b6596bbbmr4110550edy.26.1674741179938; Thu, 26 Jan 2023 05:52:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674741179; cv=none; d=google.com; s=arc-20160816; b=Y9X6Nn4OnLE6PmQqg4sooQf7R2nj2OzqK37/qA4pswSJpju4VPTn6jPrvyUB51QW/Z PWiSJnAsohmJf96CI5oOckc/4H/FWomugqg70JZV9b0xB0bpw7Zu7soIcssZEJEPuHUW kco4m+U6QPAgwTW+HL6TItgytZNJ5SGy2RwMSk3JqWYFVUSvlZpHPlwv7MNX444/Fa+P lThQQ/8MBpCIkAtSiSfNbNkhuT5ksjLzOxkcQnHQAzyXCo42hScSQQYiQ+o1OQckJakk AHUy/Fq6gqrRrm52Vv9IkhAguAQ5PRmsVqP29L4Z9XhkbB3Zgg7DI0vRIDQqRKwmi+st /1wQ== 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=k5J6EfmVH8O4lmkv85SSqR8bROTedQCfPtI6ATiEF80=; b=QtT0FyxojucTgvypv9hxV7e8gJvTN6chOvrgJjnumVoI9w9aLaY1Eu6BquJoqUOzLJ kIZFZ5/oL9Dajz7UCALKYDLxi6M5+FoDFRf28iQt4rCLaK8o1pmhGNmtlp6Myecsg1AI QvIyDLVUDN1i2khS6bLfwEaj7OJb9euQ8kIHvS6u6N17lu2/7YBVaDvCeVRksl+sNxCh hXeOXE3OYoymOg6x4r5Eecr4JYdsP5yWbLcxPt5cYVliZOWS1Xii7yplKNIrQgAoeRcv /f2saVv7WwY7dSuTQ2jI/+cDwPQMQ13X779Si7HAakMhi2cAX1QbgjEmdIv3XMEAflt+ 1dTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=E7mweMcI; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="pwS+/XLH"; 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 y9-20020a056402440900b004a114d3e1easi308838eda.406.2023.01.26.05.52.35; Thu, 26 Jan 2023 05:52:59 -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=fm1 header.b=E7mweMcI; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="pwS+/XLH"; 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 S229629AbjAZNsG (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Thu, 26 Jan 2023 08:48:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbjAZNsD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Jan 2023 08:48:03 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7260134314 for <linux-kernel@vger.kernel.org>; Thu, 26 Jan 2023 05:48:02 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C53975C00ED; Thu, 26 Jan 2023 08:48:01 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 26 Jan 2023 08:48:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1674740881; x=1674827281; bh=k5J6EfmVH8 O4lmkv85SSqR8bROTedQCfPtI6ATiEF80=; b=E7mweMcI2FI9eK9g1n5cBnEsyv Uvr2hvB5RLotvxKelx6WTpCOc4QT5ywDC/vRyGkoQ1HLw9lSaEMg6N1VM3c+dt3v XEmO4+F/n4LJcw/ACqVGrun+p9DHV544R2sMZikOLDBUecCm7Fvx56UHmnCr0a30 DPYQEYXmpjwcy6wsoL0QvkS+clbIbtxZdO+oRXmMLK8kcnPliOxm+RyI8b+YV9DD aEXAzFRQcep4rMDK/citwwaFw/JIic2f3SJWQOMa6bFjghJtO4oYhnQjlcgHnOiR uyNMeWIfGAjUlV6Rw+BPQ99ujUKtlxnsGdAd03+jnvm2UWHvs9wHzeOKiZYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm3; t=1674740881; x=1674827281; bh=k5J6EfmVH8O4l mkv85SSqR8bROTedQCfPtI6ATiEF80=; b=pwS+/XLHcN82l09dsCUcRVty7TygA u345uJPwYZ2gFng82EZzDgNex7uySERHqOAdYr0iMPa2lh+5gPvPIw3kriy/q+Ff VpvgXzJNN0CC7soGcF9B/5/TGREMvMmoWzlcKcbh2HnfMDeM6k7DuOZrsFqR1U5a /n9cJFcZkznsombADbPFzKhhsPwvY+GfoaOZFW28B9AZJDy+Gats3Ixwl0eHFpve Efa1CAkGQOcFn9y5G7RsblqnCJ6xs99DANNFh+AtxsvMDQJ1id9Vx4xblJfNM0y2 QpiRaDRj/kuE/HW87Vgo/cHXOZltPluqIsxHeNGyrWqtB3uMpi2Z4cjsA== X-ME-Sender: <xms:kYTSY6ylFQGGg_ywe_s2SuOXTR7IT08eOuHbClkCK1eSWEwU9uobSQ> <xme:kYTSY2QulhM0rMuturj0D0Y_HfcHqeng5dR7Tn5cirVS4-Lb8pdGAdQSG1w3Micos teEzr8stXQhVSAaw5A> X-ME-Received: <xmr:kYTSY8XwL7gSbmS_4HoVEl9xNtEPbf_NmfClXs_Hwa895AOJ51ods9YPBROzWoTgp2jvufk0ForZfAxggENyq3kYAFCaIvA-TrpzdwuBBNGl6Q> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvgedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepgfeutdejvdeiheffveetieejtdfhleekleffheejtdfhkeehfeekgedvgeei tddtnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: <xmx:kYTSYwjuOY9z6Tad0tG39JMhTOBvz8rqkUA9Ye4ATnSI2zqploChbw> <xmx:kYTSY8BNKaOxXPyQlAmkARYVyzgyxRfv77rtli8OzmaLvuPJQljLMg> <xmx:kYTSYxI3V0JDeb-APWobafb01wuYk3y08Op3_mZnW9b3TMw23uMkeQ> <xmx:kYTSY2wjXr6QEPgU5470oP7jIEyQgVyvnTbpBAj2Xe8nQn2TlmsEVw> Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Jan 2023 08:48:01 -0500 (EST) From: Maxime Ripard <maxime@cerno.tech> Subject: [PATCH v2 0/9] drm/vc4: hdmi: Broadcast RGB, BT601, BT2020 Date: Thu, 26 Jan 2023 14:46:35 +0100 Message-Id: <20221207-rpi-hdmi-improvements-v2-0-8ace2d8221ad@cerno.tech> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADuE0mMC/4WNTQrCMBCFr1KydiRJ1YIr7yEu8jOagTYpkxiQ0 rs7eAFXj+/B996mKjJhVddhU4ydKpUsYA+DCsnlFwJFYWW1tcbqCXglSHEhoGXl0nHB3CqMEU3Q 0TsbgxLXu4rg2eWQxM7veZYyUW2FP7+vbiTu/2a7AQ0Xb87PaToFM7pbQM7l2FB2H/u+fwH9JJJ nwAAAAA== 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>, Maxime Ripard <maxime@cerno.tech>, Thomas Zimmermann <tzimmermann@suse.de> X-Mailer: b4 0.11.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2598; i=maxime@cerno.tech; h=from:subject:message-id; bh=1Vb0fKsZ2vacyVeb1RTpG6gPYgxfRyxw4QIlRNR9Ngg=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMmXWpx5P8zukFS6d02/9ZDuJj7L02mb+ade/VvBFXBL5tRK u5uPOkpYGMS4GGTFFFlihM2XxJ2a9bqTjW8ezBxWJpAhDFycAjARmzSGH2unZ7E/X//m+NGMCwr9ul Xc9usfHv9RW/HW6ynLXI8Zjgz/tJgXPhf/26GmfPtvVbRkCcdj3aQlXCn22vXqZbvXhpqzAQA= 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?1756093407521059165?= X-GMAIL-MSGID: =?utf-8?q?1756093407521059165?= |
Series |
drm/vc4: hdmi: Broadcast RGB, BT601, BT2020
|
|
Message
Maxime Ripard
Jan. 26, 2023, 1:46 p.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
To: Emma Anholt <emma@anholt.net>
To: Maxime Ripard <mripard@kernel.org>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org
Cc: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@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_bo.c | 2 +-
drivers/gpu/drm/vc4/vc4_crtc.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 | 19 +-
drivers/gpu/drm/vc4/vc4_gem.c | 7 +-
drivers/gpu/drm/vc4/vc4_hdmi.c | 343 +++++++++++++++++++++++-----
drivers/gpu/drm/vc4/vc4_hdmi.h | 25 +-
drivers/gpu/drm/vc4/vc4_irq.c | 2 +-
drivers/gpu/drm/vc4/vc4_kms.c | 16 +-
drivers/gpu/drm/vc4/vc4_plane.c | 2 +-
drivers/gpu/drm/vc4/vc4_txp.c | 12 +-
drivers/gpu/drm/vc4/vc4_v3d.c | 2 +-
drivers/gpu/drm/vc4/vc4_vec.c | 14 +-
16 files changed, 355 insertions(+), 172 deletions(-)
---
base-commit: 9fbee811e479aca2f3523787cae1f46553141b40
change-id: 20221207-rpi-hdmi-improvements-3de1c0dba2dc
Best regards,