From: Alex Hung <alex.hung@amd.com>
To: "Timur Kristóf" <timur.kristof@gmail.com>,
amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com,
Christian.Koenig@amd.com,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Ivan Lipski" <ivan.lipski@amd.com>,
"Prike Liang" <Prike.Liang@amd.com>,
"Leo Li" <sunpeng.li@amd.com>, "Ray Wu" <Ray.Wu@amd.com>,
siqueira@igalia.com
Subject: Re: [PATCH 07/14] drm/amd/display: Implement DDC probe over AUX channel
Date: Fri, 30 Jan 2026 12:53:40 -0700 [thread overview]
Message-ID: <04559485-ecb6-4132-91ee-00c7c6288e16@amd.com> (raw)
In-Reply-To: <20260126210837.21885-8-timur.kristof@gmail.com>
On 1/26/26 14:08, Timur Kristóf wrote:
> DDC probe means that we use the DDC (Display Data Channel) to
> verify whether a display is connected or not.
>
> This was written with mainly analog connectors in mind, so it
> didn't work over the AUX channel. However, in order to support
> external DP bridge encoders found in CIK APUs, it needs to work
> over the AUX channel too.
>
> Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
> ---
> drivers/gpu/drm/amd/display/dc/link/link_detection.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
> index 1585cce65b0e..e1d568905581 100644
> --- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c
> +++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
> @@ -903,11 +903,18 @@ static bool link_detect_evaluate_edid_header(uint8_t edid_header[8])
> */
> static bool link_detect_ddc_probe(struct dc_link *link)
> {
> + enum signal_type signal = link_detect_sink_signal_type(link, DETECT_REASON_HPD);
> + enum ddc_transaction_type transaction_type = get_ddc_transaction_type(signal);
> +
> if (!link->ddc)
> return false;
>
> + set_ddc_transaction_type(link->ddc, transaction_type);
> +
> uint8_t edid_header[8] = {0};
> - bool ddc_probed = i2c_read(link->ddc, 0x50, edid_header, sizeof(edid_header));
> + uint8_t zero = 0;
> + bool ddc_probed =
> + link_query_ddc_data(link->ddc, 0x50, &zero, 1, edid_header, sizeof(edid_header));
Please move variable declaration to beginning of the function. Thanks.
>
> if (!ddc_probed)
> return false;
next prev parent reply other threads:[~2026-01-30 19:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 21:08 [PATCH 00/14] drm/amd/display: Add support for external DP bridge encoders in DC Timur Kristóf
2026-01-26 21:08 ` [PATCH 01/14] drm/amd/display: Use DCE 6 link encoder for DCE 6 analog connectors Timur Kristóf
2026-01-26 21:08 ` [PATCH 02/14] drm/amd/display: Only use analog link encoder with analog engine Timur Kristóf
2026-01-26 21:08 ` [PATCH 03/14] drm/amd/display: Only use analog stream " Timur Kristóf
2026-01-26 21:08 ` [PATCH 04/14] drm/amd/display: Add color depth helper function to BIOS parser Timur Kristóf
2026-01-26 21:08 ` [PATCH 05/14] drm/amd/display: Refactor DAC load detection, move to HWSS Timur Kristóf
2026-01-30 20:00 ` Alex Hung
2026-01-26 21:08 ` [PATCH 06/14] drm/amd/display: Implement BIOS parser external encoder control Timur Kristóf
2026-01-26 21:08 ` [PATCH 07/14] drm/amd/display: Implement DDC probe over AUX channel Timur Kristóf
2026-01-30 19:53 ` Alex Hung [this message]
2026-01-26 21:08 ` [PATCH 08/14] drm/amd/display: Add ability for HWSS to prepare the DDC before use Timur Kristóf
2026-01-26 21:08 ` [PATCH 09/14] drm/amd/display: Use preferred DP link rate if specified Timur Kristóf
2026-01-26 21:08 ` [PATCH 10/14] drm/amd/display: Add DCE HWSS support for external DP bridge encoders Timur Kristóf
2026-01-26 21:08 ` [PATCH 11/14] drm/amd/display: Link detection " Timur Kristóf
2026-01-26 21:08 ` [PATCH 12/14] drm/amd/display: Use " Timur Kristóf
2026-01-26 21:08 ` [PATCH 13/14] drm/amd/display: Implement DAC load detection on " Timur Kristóf
2026-01-26 21:08 ` [PATCH 14/14] drm/amdgpu: Use DC by default on CIK APUs Timur Kristóf
2026-02-09 15:35 ` [PATCH 00/14] drm/amd/display: Add support for external DP bridge encoders in DC Rodrigo Siqueira
2026-02-09 18:12 ` Alex Hung
2026-02-09 22:10 ` Timur Kristóf
2026-02-09 23:14 ` Alex Hung
2026-02-16 4:33 ` Alex Hung
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=04559485-ecb6-4132-91ee-00c7c6288e16@amd.com \
--to=alex.hung@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Christian.Koenig@amd.com \
--cc=Prike.Liang@amd.com \
--cc=Ray.Wu@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=ivan.lipski@amd.com \
--cc=mario.limonciello@amd.com \
--cc=siqueira@igalia.com \
--cc=sunpeng.li@amd.com \
--cc=timur.kristof@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox