From: sashiko-bot@kernel.org
To: "Andrzej Piątyszek" <andrzej.piatyszek@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/amd/display: Wait up to 1 s for slow sinks in FRL link training
Date: Tue, 10 Nov 2026 13:34:40 +0000 [thread overview]
Message-ID: <sashiko-outbox-207131@kernel.org> (raw)
In-Reply-To: <20261110130956.160024-3-andrzej.piatyszek@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/amd/display: unconditional 1s LTS:3 timeout violates HDMI
T_FLT spec
--
commit 2cb267c6df8cc9565556b092b803e0c5c55db242
Author: Andrzej Piątyszek <andrzej.piatyszek@gmail.com>
drm/amd/display: Wait up to 1 s for slow sinks in FRL link training
This commit increases the FRL link training state 3 (LTS:3) polling timeout
in hdmi_frl_perform_link_training() to 1 second across all link rates to
accommodate slow HDMI sinks.
> diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_hdmi_frl.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_hdmi_frl.c
> index 78e62bfec49c7..97b2b9b74cc71 100644
> --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_hdmi_frl.c
> +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_hdmi_frl.c
> @@ -612,10 +612,13 @@ static enum link_result hdmi_frl_perform_link_training(struct ddc_service *ddc_s
>
> FRL_INFO("FRL LINK TRAINING: Poll for FLT_UPDATE.\n");
> /*LTS:3: Start Link Training*/
> - /*Start FLT Timer = 200 ms, or 300ms if link rate >= 16Gbps*/
> + /*
> + * Start FLT Timer. Some sinks need longer than the nominal 200 ms
> + * (300 ms at 16 Gbps and above) to answer an LTP request, so wait
> + * up to 1 s before giving up on this rate.
> + */
> num_polls = 0;
> - if (link_settings->frl_link_rate >= HDMI_FRL_LINK_RATE_16GBPS)
> - poll_timeout_ns = 320 * 1000 * 1000;
> + poll_timeout_ns = 1000 * 1000 * 1000;
[Severity: Medium]
Does setting poll_timeout_ns to 1 second unconditionally for all sinks break
HDMI 2.1/2.2 link layer compliance testing when test_req.fields.FLT_NO_TIMEOUT
is 0?
The HDMI specification limits the LTS:3 T_FLT timer to 200 ms nominal (220 ms
max) for rates below 16 Gbps and 300 ms nominal (320 ms max) for 16 Gbps and
above. Commits f38686268b0d ("drm/amd/display: Fix HDMI2.2 LT timeout
duration"), 536ad3cf1871 ("drm/amd/display: Fix HDMI FRL FFE compliance test")
and 007834be6760 ("drm/amd/display: Adjust HDMI FRL LT timeout") specifically
tuned poll_timeout_ns to 220 ms and 320 ms so the elapsed time in LTS:3 does
not exceed the spec-defined limits during compliance tests. Could the 1 second
timeout be applied only to affected displays via an EDID quirk instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261110130956.160024-1-andrzej.piatyszek@gmail.com?part=2
next prev parent reply other threads:[~2026-11-10 13:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 13:09 [PATCH 0/3] drm/amd/display: HDMI FRL training fixes for slow sinks Andrzej Piątyszek
2026-11-10 13:09 ` [PATCH 1/3] drm/amd/display: Apply requested TxFFE level right away in FRL training Andrzej Piątyszek
2026-11-10 13:24 ` sashiko-bot
2026-11-10 13:09 ` [PATCH 2/3] drm/amd/display: Wait up to 1 s for slow sinks in FRL link training Andrzej Piątyszek
2026-11-10 13:34 ` sashiko-bot [this message]
2026-11-10 13:09 ` [PATCH 3/3] drm/amd/display: Retry the same FRL rate after a sink timeout Andrzej Piątyszek
2026-11-10 22:20 ` [PATCH 0/3] drm/amd/display: HDMI FRL training fixes for slow sinks Andrzej Piątyszek
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=sashiko-outbox-207131@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=andrzej.piatyszek@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.