Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Wentao Guan <guanwentao@uniontech.com>,
	joonas.lahtinen@linux.intel.com, imre.deak@intel.com,
	jouni.hogander@intel.com
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
	Wentao Guan <guanwentao@uniontech.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] drm/i915/display: Don't drop the async-put delay on self-requeue
Date: Fri, 06 Nov 2026 13:30:04 +0200	[thread overview]
Message-ID: <a2b152662d219f9be0861e63ddbb78dd1971dc2a@intel.com> (raw)
In-Reply-To: <134A26B6BCDD3C9C+20261104053910.1065103-1-guanwentao@uniontech.com>

On Wed, 04 Nov 2026, Wentao Guan <guanwentao@uniontech.com> wrote:
> cancel_async_put_work() also clears async_put_next_delay, so moving it
> ahead of the requeue in intel_display_power_put_async_work() makes the
> requeue always use a zero delay. That discards the delay accumulated by
> concurrent async puts, including the 17 ms DC-state anti-toggle delay
> requested for POWER_DOMAIN_DC_OFF.
>
> Use cancel_delayed_work() directly to cancel the stale instance without
> clearing the delay, and clear the delay only after the requeue has
> consumed it.
>
> Fixes: 30ca6365bb42 ("drm/i915: Fix assert on pending async-put power domain work when it requeues itself")
> Cc: <stable@vger.kernel.org> # v6.11+
> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>

How did you find this?

Is there a bug report about this?

How did you test this?


BR,
Jani.

> ---
>  drivers/gpu/drm/i915/display/intel_display_power.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c
> index b000ec001ccfc..7da6eda46e9e0 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_power.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_power.c
> @@ -873,7 +873,7 @@ intel_display_power_put_async_work(struct work_struct *work)
>  	 * Cancel the work that got queued after this one got dequeued,
>  	 * since here we released the corresponding async-put reference.
>  	 */
> -	cancel_async_put_work(power_domains, false);
> +	cancel_delayed_work(&power_domains->async_put_work);
>  
>  	/* Requeue the work if more domains were async put meanwhile. */
>  	if (!bitmap_empty(power_domains->async_put_domains[1].bits, POWER_DOMAIN_NUM)) {
> @@ -885,9 +885,10 @@ intel_display_power_put_async_work(struct work_struct *work)
>  		queue_async_put_domains_work(power_domains,
>  					     fetch_and_zero(&new_work_wakeref),
>  					     power_domains->async_put_next_delay);
> -		power_domains->async_put_next_delay = 0;
>  	}
>  
> +	power_domains->async_put_next_delay = 0;
> +
>  out_verify:
>  	verify_async_put_domains_state(power_domains);

-- 
Jani Nikula, Intel

  reply	other threads:[~2026-11-06 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  5:39 [PATCH] drm/i915/display: Don't drop the async-put delay on self-requeue Wentao Guan
2026-11-06 11:30 ` Jani Nikula [this message]
2026-11-06 12:07   ` Wentao Guan

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=a2b152662d219f9be0861e63ddbb78dd1971dc2a@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=guanwentao@uniontech.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=jouni.hogander@intel.com \
    --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