From: Jani Nikula <jani.nikula@linux.intel.com>
To: Maxime Ripard <mripard@kernel.org>, dri-devel@lists.freedesktop.org
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
Maxime Ripard <mripard@kernel.org>,
Javier Martinez Canillas <javierm@redhat.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Subject: Re: [PATCH 1/3] drm/todo: Create a TODO item for additional HDMI work
Date: Thu, 13 Jun 2024 10:44:42 +0300 [thread overview]
Message-ID: <87tthxi8wl.fsf@intel.com> (raw)
In-Reply-To: <20240612143553.915966-1-mripard@kernel.org>
On Wed, 12 Jun 2024, Maxime Ripard <mripard@kernel.org> wrote:
> We recently added some infrastructure to deal with HDMI but we're still
> lacking a couple of things. Add a TODO entry with the remaining items.
>
> Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: Maxime Ripard <mripard@kernel.org>
> ---
> Documentation/gpu/todo.rst | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst
> index 2ea6ffc9b22b..52fd8672fb6d 100644
> --- a/Documentation/gpu/todo.rst
> +++ b/Documentation/gpu/todo.rst
> @@ -633,10 +633,39 @@ long as that supports DMA. Otherwise importing can still needlessly fail.
>
> Contact: Thomas Zimmermann <tzimmermann@suse.de>, Daniel Vetter
>
> Level: Advanced
>
> +Improve HDMI Infrastructure
> +---------------------------
> +
> +We have a bunch of helpers to handle HDMI and reduce the boilerplate in
> +drivers. Support so far includes HDMI 1.4 support, but we need to extend
> +it with:
> +
> + - CEC handling support. CEC requires a bit of integration into every
> + HDMI driver to set the device physical address according to the EDID
> + in `.get_modes`, and to clear/reset it in the hotplug detection
> + path. We should create the ``drm_atomic_helper_connector_hdmi_get_modes()``
> + and ``drm_atomic_helper_connector_hdmi_handle_hotplug()`` helpers to handle
> + this properly, and convert drivers to use them.
Furthermore, we should stop passing EDID to the CEC functions, and
instead use the source physical address we've parsed ourselves and
stored to connector->display_info.source_physical_address.
I.e. stop using
- drm_dp_cec_set_edid()
- cec_s_phys_addr_from_edid()
- cec_get_edid_phys_addr()
And instead use .source_physical_address and
- drm_dp_cec_attach()
- cec_s_phys_addr()
The main rationale is to avoid using a separate EDID parser that's
outside of the drm subsystem and unaware of struct drm_edid and frankly
cdoes not look very robust.
BR,
Jani.
> +
> + - In order to support HDMI 2.0 properly, the scrambler parameters need
> + to be moved into the state. This includes figuring out in
> + drm_atomic_helper_connector_hdmi_check() if the scrambler and TMDS ratio
> + need to be changed, and make the
> + ``drm_atomic_helper_connector_hdmi_handle_hotplug()`` helper reset the
> + scrambler status when the device is plugged and unplugged.
> +
> + - We need to support YUV420 too.
> +
> +The `vc4` driver is a good example for all this.
> +
> +Contact: Maxime Ripard <mripard@kernel.org>
> +
> +Level: Intermediate
> +
>
> Better Testing
> ==============
>
> Add unit tests using the Kernel Unit Testing (KUnit) framework
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-06-13 7:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 14:35 [PATCH 1/3] drm/todo: Create a TODO item for additional HDMI work Maxime Ripard
2024-06-12 14:35 ` [PATCH 2/3] drm/todo: Create a TODO item for MIPI-DSI rework Maxime Ripard
2024-06-12 14:35 ` [PATCH 3/3] drm/todo: Add TODO entry for "lints" Maxime Ripard
2024-06-12 18:49 ` Dmitry Baryshkov
2024-06-12 16:11 ` [PATCH 1/3] drm/todo: Create a TODO item for additional HDMI work Dmitry Baryshkov
2024-06-13 7:44 ` Jani Nikula [this message]
2024-06-20 13:33 ` Maxime Ripard
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=87tthxi8wl.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=javierm@redhat.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--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.