All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <mripard@kernel.org>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	Emma Anholt <emma@anholt.net>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Maxime Ripard <mripard@kernel.org>
Subject: [PATCH RFC 00/13] drm/connector: Create HDMI Connector infrastructure
Date: Mon, 14 Aug 2023 15:56:12 +0200	[thread overview]
Message-ID: <20230814-kms-hdmi-connector-state-v1-0-048054df3654@kernel.org> (raw)

Hi,

Here's a series that creates a subclass of drm_connector specifically
targeted at HDMI controllers.

The idea behind this series came from a recent discussion on IRC during
which we discussed infoframes generation of i915 vs everything else. 

Infoframes generation code still requires some decent boilerplate, with
each driver doing some variation of it.

In parallel, while working on vc4, we ended up converting a lot of i915
logic (mostly around format / bpc selection, and scrambler setup) to
apply on top of a driver that relies only on helpers.

While currently sitting in the vc4 driver, none of that logic actually
relies on any driver or hardware-specific behaviour.

The only missing piec to make it shareable are a bunch of extra
variables stored in a state (current bpc, format, RGB range selection,
etc.).

Thus, I decided to create some generic subclass of drm_connector to
address HDMI connectors, with a bunch of helpers that will take care of
all the "HDMI Spec" related code. Scrambler setup is missing at the
moment but can easily be plugged in.

Last week, Hans Verkuil also expressed interest in retrieving the
infoframes generated from userspace to create an infoframe-decode tool.
This series thus leverages the infoframe generation code to expose it
through debugfs.

This entire series is only build-tested at the moment. Let me know what
you think,
Maxime

Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
Maxime Ripard (13):
      drm/connector: Introduce an HDMI connector
      drm/connector: hdmi: Create a custom state
      drm/connector: hdmi: Add Broadcast RGB property
      drm/connector: hdmi: Add helper to get the RGB range
      drm/connector: hdmi: Add output BPC to the connector state
      drm/connector: hdmi: Add support for output format
      drm/connector: hdmi: Calculate TMDS character rate
      drm/connector: hdmi: Add custom hook to filter TMDS character rate
      drm/connector: hdmi: Compute bpc and format automatically
      drm/connector: hdmi: Add Infoframes generation
      drm/connector: hdmi: Create Infoframe DebugFS entries
      drm/vc4: hdmi: Create destroy state implementation
      drm/vc4: hdmi: Switch to HDMI connector

 drivers/gpu/drm/Makefile             |    1 +
 drivers/gpu/drm/drm_hdmi_connector.c | 1112 ++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/vc4/vc4_hdmi.c       |  720 ++++------------------
 drivers/gpu/drm/vc4/vc4_hdmi.h       |   37 +-
 drivers/gpu/drm/vc4/vc4_hdmi_phy.c   |    4 +-
 include/drm/drm_connector.h          |  256 ++++++++
 6 files changed, 1508 insertions(+), 622 deletions(-)
---
base-commit: 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4
change-id: 20230814-kms-hdmi-connector-state-616787e67927

Best regards,
-- 
Maxime Ripard <mripard@kernel.org>


             reply	other threads:[~2023-08-14 13:57 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-14 13:56 Maxime Ripard [this message]
2023-08-14 13:56 ` [PATCH RFC 01/13] drm/connector: Introduce an HDMI connector Maxime Ripard
2023-08-15  9:19   ` Jani Nikula
2023-08-14 13:56 ` [PATCH RFC 02/13] drm/connector: hdmi: Create a custom state Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 03/13] drm/connector: hdmi: Add Broadcast RGB property Maxime Ripard
2023-08-14 14:46   ` Simon Ser
2023-08-14 14:46     ` Simon Ser
2023-08-14 13:56 ` [PATCH RFC 04/13] drm/connector: hdmi: Add helper to get the RGB range Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 05/13] drm/connector: hdmi: Add output BPC to the connector state Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 06/13] drm/connector: hdmi: Add support for output format Maxime Ripard
2023-08-14 17:17   ` kernel test robot
2023-08-14 13:56 ` [PATCH RFC 07/13] drm/connector: hdmi: Calculate TMDS character rate Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 08/13] drm/connector: hdmi: Add custom hook to filter " Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 09/13] drm/connector: hdmi: Compute bpc and format automatically Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 10/13] drm/connector: hdmi: Add Infoframes generation Maxime Ripard
2023-08-15 11:20   ` Dave Stevenson
2023-08-15 11:20     ` Dave Stevenson
2023-08-14 13:56 ` [PATCH RFC 11/13] drm/connector: hdmi: Create Infoframe DebugFS entries Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 12/13] drm/vc4: hdmi: Create destroy state implementation Maxime Ripard
2023-08-14 13:56 ` [PATCH RFC 13/13] drm/vc4: hdmi: Switch to HDMI connector Maxime Ripard
2023-08-14 17:58   ` kernel test robot
2023-08-22 10:22   ` kernel test robot
2023-08-16  8:43 ` [PATCH RFC 00/13] drm/connector: Create HDMI Connector infrastructure Hans Verkuil
2023-08-22 14:16 ` Daniel Vetter
2023-08-22 14:16   ` Daniel Vetter
2023-08-22 14:35   ` Maxime Ripard
2023-08-22 14:41     ` Daniel Vetter
2023-08-22 14:41       ` Daniel Vetter
2023-08-22 14:51     ` Jani Nikula
2023-08-22 15:05       ` Daniel Vetter
2023-08-22 15:05         ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230814-kms-hdmi-connector-state-v1-0-048054df3654@kernel.org \
    --to=mripard@kernel.org \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emma@anholt.net \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.