mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Hung <alex.hung@amd.com>
To: Dan Himebauch <danielhimebauch@gmail.com>, amd-gfx@lists.freedesktop.org
Cc: harry.wentland@amd.com, sunpeng.li@amd.com, siqueira@igalia.com,
	alexander.deucher@amd.com, christian.koenig@amd.com,
	airlied@gmail.com, simona@ffwll.ch, bhawanpreet.lakha@amd.com,
	wayne.lin@amd.com, george.zhang@amd.com, jerry.zuo@amd.com,
	chen-yu.chen@amd.com, ivan.lipski@amd.com, evg28bur@yandex.ru,
	Kun.Liu2@amd.com, mario.limonciello@amd.com,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/amd/display: invalidate DP CEC state on s3 suspend
Date: Mon, 14 Sep 2026 07:55:20 -0600	[thread overview]
Message-ID: <20195022-cf18-45cd-829e-b2866e7a3080@amd.com> (raw)
In-Reply-To: <CAJxfpZ+AzJnBCw-jP5_E8FH_+cpCE68FCtf_tsi9pt7q=P2Dsw@mail.gmail.com>

Please run ./scripts/checkpatch.pl patch_file and fix reported errors 
and warnings. Thanks.

On 9/11/26 20:30, Dan Himebauch wrote:
> [You don't often get email from danielhimebauch@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> HTPC setups on Linux with discrete GPUs can opt to use an active DP to
> HDMI adaptor in order to carry CEC over DP AUX, as most GPUs do not
> wire up CEC pin 13.
> 
> Currently under s3 suspend, amdgpu invalidates native HDMI CEC state
> but leaves DP AUX CEC physical address valid, which can leave these
> adapter's CEC states stale across suspend and make wake transmissions
> to fail before adapter is reconfigured.
> 
> This patch allows invalidating the DP AUX CEC physical address during
> suspend for AUX mode connectors. Normal connector detection reattaches
> adaptor using the physical address from EDID.
> 
> Tested on a 9070xt HTPC on steamOS and UGREEN DP to HDMI adapter on
> amd-staging-drm-next at d8ab7636160e20bf6a2ad69cd975f4d63319f1d4 where
> unmodified tree reproduced resume NACK, with this patch, multiple
> cycles succeeded with ImageViewOn and ActiveSource transmission, and
> intended behavior on wake was observed with cecd.
> 
> Assisted-by: LLM
> Signed-off-by: xXJSONDeruloXx <danielhimebauch@gmail.com>
> ---
>   .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c    | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
> index 0b446133edd8..919394778a25 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
> @@ -372,10 +372,13 @@ void amdgpu_dm_s3_handle_hdmi_cec(struct
> drm_device *ddev, bool suspend)
>    continue;
> 
>    aconnector = to_amdgpu_dm_connector(connector);
> - if (suspend)
> + if (suspend) {
>    hdmi_cec_unset_edid(aconnector);
> - else
> + if (aconnector->dc_link && aconnector->dc_link->aux_mode)
> + drm_dp_cec_unset_edid(&aconnector->dm_dp_aux.aux);
> + } else {
>    amdgpu_dm_hdmi_cec_set_edid(aconnector);
> + }
>    }
>    drm_connector_list_iter_end(&conn_iter);
>   }
> --
> 2.50.1 (Apple Git-155)


  reply	other threads:[~2026-09-14 13:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-12  2:30 Dan Himebauch
2026-09-14 13:55 ` Alex Hung [this message]
2026-09-15  2:27   ` [PATCH v2] " Dan Himebauch
2026-09-15 15:46     ` Mario Limonciello

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=20195022-cf18-45cd-829e-b2866e7a3080@amd.com \
    --to=alex.hung@amd.com \
    --cc=Kun.Liu2@amd.com \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bhawanpreet.lakha@amd.com \
    --cc=chen-yu.chen@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=danielhimebauch@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=evg28bur@yandex.ru \
    --cc=george.zhang@amd.com \
    --cc=harry.wentland@amd.com \
    --cc=ivan.lipski@amd.com \
    --cc=jerry.zuo@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=simona@ffwll.ch \
    --cc=siqueira@igalia.com \
    --cc=sunpeng.li@amd.com \
    --cc=wayne.lin@amd.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

all inboxes | Powered by JetHome®