From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Nikula, Jani" <jani.nikula@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"Jason@zx2c4.com" <Jason@zx2c4.com>
Subject: Re: [PATCH] drm/i915: silence rpm wakeref asserts on GEN11_GU_MISC_IIR access
Date: Thu, 14 Aug 2025 07:04:21 +0000 [thread overview]
Message-ID: <fbb92a6aad7452188396136faced103614519e98.camel@intel.com> (raw)
In-Reply-To: <20250805115656.832235-1-jani.nikula@intel.com>
On Tue, 2025-08-05 at 14:56 +0300, Jani Nikula wrote:
> Commit 8d9908e8fe9c ("drm/i915/display: remove small micro-
> optimizations
> in irq handling") not only removed the optimizations, it also enabled
> wakeref asserts for the GEN11_GU_MISC_IIR access. Silence the asserts
> by
> wrapping the access inside
> intel_display_rpm_assert_{block,unblock}().
>
> Reported-by: Jason A. Donenfeld <Jason@zx2c4.com>
> Closes: https://lore.kernel.org/r/aG0tWkfmxWtxl_xc@zx2c4.com
> Fixes: 8d9908e8fe9c ("drm/i915/display: remove small micro-
> optimizations in irq handling")
> Cc: <stable@vger.kernel.org> # v6.13+
> Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_irq.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.c
> b/drivers/gpu/drm/i915/display/intel_display_irq.c
> index fb25ec8adae3..68157f177b6a 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_irq.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_irq.c
> @@ -1506,10 +1506,14 @@ u32 gen11_gu_misc_irq_ack(struct
> intel_display *display, const u32 master_ctl)
> if (!(master_ctl & GEN11_GU_MISC_IRQ))
> return 0;
>
> + intel_display_rpm_assert_block(display);
> +
> iir = intel_de_read(display, GEN11_GU_MISC_IIR);
> if (likely(iir))
> intel_de_write(display, GEN11_GU_MISC_IIR, iir);
>
> + intel_display_rpm_assert_unblock(display);
> +
> return iir;
> }
>
next prev parent reply other threads:[~2025-08-14 7:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 11:56 [PATCH] drm/i915: silence rpm wakeref asserts on GEN11_GU_MISC_IIR access Jani Nikula
2025-08-14 7:04 ` Hogander, Jouni [this message]
2025-08-14 10:08 ` Jani Nikula
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=fbb92a6aad7452188396136faced103614519e98.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=Jason@zx2c4.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=stable@vger.kernel.org \
--cc=ville.syrjala@linux.intel.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