public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: sunpeng.li@amd.com, amd-gfx@lists.freedesktop.org
Cc: Harry.Wentland@amd.com, Aurabindo.Pillai@amd.com,
	wiagn233@outlook.com, sysdadmin@m1k.cloud,
	stable@vger.kernel.org
Subject: Re: [PATCH] drm/amd/display: Restore 5s vbl offdelay for NV3x+ DGPUs
Date: Wed, 22 Apr 2026 11:42:17 -0500	[thread overview]
Message-ID: <6b404b52-c5e2-4192-9c22-629f64ad2dc1@amd.com> (raw)
In-Reply-To: <20260422162956.620362-1-sunpeng.li@amd.com>



On 4/22/26 11:29, sunpeng.li@amd.com wrote:
> From: Leo Li <sunpeng.li@amd.com>
> 
> [Why]
> 
> Rapid vblank off is causing flip-done timeouts for NV3x and newer
> family of GPUs that support more idle optimization features.
> 
> A proper fix requires further investigation. In lieu of it, let's
> workaround it for now.
> 
> [How]
> 
> For NV3x and newer family of DGPUs, restore the old 5s vblank off timer.

Why would it be dGPU only though?  I thought we have various reports of 
flip_done timeouts for APUs too.

Is your theory they're different root causes?

> 
> Fixes: 9b47278cec98 ("drm/amd/display: temp w/a for dGPU to enter idle optimizations")
> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3787
> Link: https://lore.kernel.org/amd-gfx/20260217191632.1243826-1-sysdadmin@m1k.cloud/
> Signed-off-by: Leo Li <sunpeng.li@amd.com>
> Tested-by: Michele Palazzi <sysdadmin@m1k.cloud>
> ---
>   .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 18 +++++++++++++++---
>   1 file changed, 15 insertions(+), 3 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 3fa4dbda4517c..ce5063928413c 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -9511,9 +9511,21 @@ static void manage_dm_interrupts(struct amdgpu_device *adev,
>   	if (acrtc_state) {
>   		timing = &acrtc_state->stream->timing;
>   
> -		if (amdgpu_ip_version(adev, DCE_HWIP, 0) <
> -			   IP_VERSION(3, 5, 0) ||
> -			   !(adev->flags & AMD_IS_APU)) {
> +		if (amdgpu_ip_version(adev, DCE_HWIP, 0) >=
> +		      IP_VERSION(3, 2, 0) &&
> +		      !(adev->flags & AMD_IS_APU)) {
> +			/*
> +			 * DGPUs NV3x and newer that support idle optimizations
> +			 * experience intermittent flip-done timeouts on cursor
> +			 * updates. Restore 5s offdelay behavior for now.
> +			 *
> +			 * Discussion on the issue:
> +			 * https://lore.kernel.org/amd-gfx/20260217191632.1243826-1-sysdadmin@m1k.cloud/
> +			 */
> +			config.offdelay_ms = 5000;
> +			config.disable_immediate = false;
> +		} else if (amdgpu_ip_version(adev, DCE_HWIP, 0) <
> +			     IP_VERSION(3, 5, 0)) {
>   			/*
>   			 * Older HW and DGPU have issues with instant off;
>   			 * use a 2 frame offdelay.


  reply	other threads:[~2026-04-22 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-22 16:29 [PATCH] drm/amd/display: Restore 5s vbl offdelay for NV3x+ DGPUs sunpeng.li
2026-04-22 16:42 ` Mario Limonciello [this message]
2026-04-22 16:56 ` Alex Deucher
2026-04-22 17:19   ` Leo Li
2026-04-22 17:42     ` Mario Limonciello
2026-04-22 17:50       ` Michele Palazzi
2026-04-22 17:52         ` 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=6b404b52-c5e2-4192-9c22-629f64ad2dc1@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=Aurabindo.Pillai@amd.com \
    --cc=Harry.Wentland@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=stable@vger.kernel.org \
    --cc=sunpeng.li@amd.com \
    --cc=sysdadmin@m1k.cloud \
    --cc=wiagn233@outlook.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