AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Mario Limonciello (AMD) (kernel.org)" <superm1@kernel.org>
To: IVAN.LIPSKI@amd.com, amd-gfx@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>, stable@vger.kernel.org
Subject: Re: [PATCH] drm/amd/display: Clear HDMI HPD pending work only if it is enabled
Date: Fri, 16 Jan 2026 09:07:04 -0600	[thread overview]
Message-ID: <6fe1eca2-2b4c-4852-b4ee-a87abc92a6de@kernel.org> (raw)
In-Reply-To: <20260116150411.1110886-1-IVAN.LIPSKI@amd.com>



On 1/16/2026 9:03 AM, IVAN.LIPSKI@amd.com wrote:
> From: Ivan Lipski <ivan.lipski@amd.com>
> 
> [Why&How]
> On amdgpu_dm_connector_destroy(), the driver attempts to cancel pending
> HDMI HPD work without checking if the HDMI HPD is enabled.
> 
> Added a check that it is enabled before clearing it.
> 
> Fixes: d98e9c0497ae ("drm/amd/display: Add an hdmi_hpd_debounce_delay_ms module")
> 
> Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 ++++++----
>   1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 655c9fcb078a..cba7546d3f95 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -7743,10 +7743,12 @@ static void amdgpu_dm_connector_destroy(struct drm_connector *connector)
>   		drm_dp_mst_topology_mgr_destroy(&aconnector->mst_mgr);
>   
>   	/* Cancel and flush any pending HDMI HPD debounce work */
> -	cancel_delayed_work_sync(&aconnector->hdmi_hpd_debounce_work);
> -	if (aconnector->hdmi_prev_sink) {
> -		dc_sink_release(aconnector->hdmi_prev_sink);
> -		aconnector->hdmi_prev_sink = NULL;
> +	if (aconnector->hdmi_hpd_debounce_delay_ms) {
> +		cancel_delayed_work_sync(&aconnector->hdmi_hpd_debounce_work);
> +		if (aconnector->hdmi_prev_sink) {
> +			dc_sink_release(aconnector->hdmi_prev_sink);
> +			aconnector->hdmi_prev_sink = NULL;
> +		}
>   	}
>   
>   	if (aconnector->bl_idx != -1) {


      reply	other threads:[~2026-01-16 15:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-16 15:03 [PATCH] drm/amd/display: Clear HDMI HPD pending work only if it is enabled IVAN.LIPSKI
2026-01-16 15:07 ` Mario Limonciello (AMD) (kernel.org) [this message]

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=6fe1eca2-2b4c-4852-b4ee-a87abc92a6de@kernel.org \
    --to=superm1@kernel.org \
    --cc=IVAN.LIPSKI@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=stable@vger.kernel.org \
    /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