From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Dibin Moolakadan Subrahmanian"
<dibin.moolakadan.subrahmanian@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Murthy, Arun R" <arun.r.murthy@intel.com>,
"jani.nikula@linux.intel.com" <jani.nikula@linux.intel.com>
Subject: Re: [PATCH v2] drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation
Date: Fri, 14 Nov 2025 08:58:39 +0000 [thread overview]
Message-ID: <6e46fb72bd06dc17dbd0ddbc5bff06c014b82be5.camel@intel.com> (raw)
In-Reply-To: <20251111135403.3415947-1-dibin.moolakadan.subrahmanian@intel.com>
On Tue, 2025-11-11 at 19:24 +0530, Dibin Moolakadan Subrahmanian wrote:
> During fbdev probe, the xe driver allocates and pins a framebuffer
> BO (via xe_bo_create_pin_map_novm() → xe_ggtt_insert_bo()).
>
> Without a runtime PM reference, xe_pm_runtime_get_noresume() warns
> about
> missing outer PM protection as below:
>
> xe 0000:03:00.0: [drm] Missing outer runtime PM protection
>
> Acquire a runtime PM reference before framebuffer allocation to
> ensure
> xe_ggtt_insert_bo() executes under active runtime PM context.
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
>
> Changes in v2:
> - Update commit message to add Fixes tag (Jani Nikula)
>
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6350
> Fixes: 44e694958b95 ("drm/xe/display: Implement display support")
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Signed-off-by: Dibin Moolakadan Subrahmanian
> <dibin.moolakadan.subrahmanian@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_fbdev.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c
> b/drivers/gpu/drm/i915/display/intel_fbdev.c
> index e5449c41cfa1..7173bd1cbffd 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbdev.c
> +++ b/drivers/gpu/drm/i915/display/intel_fbdev.c
> @@ -288,13 +288,18 @@ int intel_fbdev_driver_fbdev_probe(struct
> drm_fb_helper *helper,
> drm_framebuffer_put(&fb->base);
> fb = NULL;
> }
> +
> + wakeref = intel_display_rpm_get(display);
> +
> if (!fb || drm_WARN_ON(display->drm, !intel_fb_bo(&fb-
> >base))) {
> drm_dbg_kms(display->drm,
> "no BIOS fb, allocating a new one\n");
>
> fb = __intel_fbdev_fb_alloc(display, sizes);
> - if (IS_ERR(fb))
> - return PTR_ERR(fb);
> + if (IS_ERR(fb)) {
> + ret = PTR_ERR(fb);
> + goto out_unlock;
> + }
> } else {
> drm_dbg_kms(display->drm, "re-using BIOS fb\n");
> prealloc = true;
> @@ -302,8 +307,6 @@ int intel_fbdev_driver_fbdev_probe(struct
> drm_fb_helper *helper,
> sizes->fb_height = fb->base.height;
> }
>
> - wakeref = intel_display_rpm_get(display);
> -
> /* Pin the GGTT vma for our access via info->screen_base.
> * This also validates that any existing fb inherited from
> the
> * BIOS is suitable for own access.
prev parent reply other threads:[~2025-11-14 8:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 13:54 [PATCH v2] drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation Dibin Moolakadan Subrahmanian
2025-11-11 14:58 ` ✓ i915.CI.BAT: success for drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation (rev2) Patchwork
2025-11-11 17:33 ` ✗ i915.CI.Full: failure " Patchwork
2025-11-12 8:59 ` ✓ i915.CI.BAT: success for drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation (rev3) Patchwork
2025-11-12 13:30 ` ✗ i915.CI.Full: failure " Patchwork
2025-11-13 9:52 ` ✓ i915.CI.Full: success " Patchwork
2025-11-14 8:58 ` Hogander, Jouni [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=6e46fb72bd06dc17dbd0ddbc5bff06c014b82be5.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=dibin.moolakadan.subrahmanian@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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;
as well as URLs for NNTP newsgroup(s).