From: Maarten Lankhorst <dev@lankhorst.se>
To: intel-xe@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org,
Maarten Lankhorst <dev@lankhorst.se>,
Matthew Auld <matthew.auld@intel.com>
Subject: [PATCH v2 1/5] drm/xe/display: Avoid using stolen memory for framebuffer when media gt exists.
Date: Tue, 21 Jul 2026 16:26:12 +0200 [thread overview]
Message-ID: <20260721142610.93804-8-dev@lankhorst.se> (raw)
In-Reply-To: <20260721142610.93804-7-dev@lankhorst.se>
On systems with media GT, extra latency is added when accessing stolen
memory when the GT is in MC6.
Simply disable allocating stolen memory for framebuffers when media gt
is found.
Thanks to the previous patch, it will be possible to preserve the
contents.
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/7513
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260630135523.1775379-3-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
---
drivers/gpu/drm/xe/display/xe_display_bo.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/xe/display/xe_display_bo.c b/drivers/gpu/drm/xe/display/xe_display_bo.c
index f5102cd0e95d6..9385026a80b97 100644
--- a/drivers/gpu/drm/xe/display/xe_display_bo.c
+++ b/drivers/gpu/drm/xe/display/xe_display_bo.c
@@ -131,6 +131,14 @@ bool xe_display_bo_fbdev_prefer_stolen(struct xe_device *xe, unsigned int size)
if (IS_DGFX(xe))
return false;
+ /*
+ * Avoid stolen memory when the media_gt exists,
+ * because a lot of latency is added when media gt is in MC6
+ */
+ if (xe_device_get_root_tile(xe)->media_gt)
+ return false;
+
+ /* machine hang when doing lots of LMEMBAR accesses */
if (XE_DEVICE_WA(xe, 22019338487_display))
return false;
--
2.53.0
next prev parent reply other threads:[~2026-07-21 14:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 14:26 [PATCH v2 0/5] drm/xe/display: Transparant fallback from stolen to sysmem Maarten Lankhorst
2026-07-21 14:26 ` Maarten Lankhorst [this message]
2026-07-22 18:18 ` [PATCH v2 1/5] drm/xe/display: Avoid using stolen memory for framebuffer when media gt exists Shankar, Uma
2026-07-21 14:26 ` [PATCH v2 2/5] drm/xe/migrate: Support copying between sysmem and stolen Maarten Lankhorst
2026-07-21 19:25 ` [PATCH] " Maarten Lankhorst
2026-07-22 19:01 ` Shankar, Uma
2026-07-23 14:00 ` Matthew Auld
2026-07-21 14:26 ` [PATCH v2 3/5] drm/xe: Raise gt frequency slightly earlier Maarten Lankhorst
2026-07-21 14:26 ` [PATCH v2 4/5] HACK: Always fallback Maarten Lankhorst
2026-07-21 14:26 ` [PATCH v2 5/5] drm/i915: Introduce intel_bo_fbdev_bios_fb_takeover() Maarten Lankhorst
2026-07-23 9:06 ` Shankar, Uma
2026-07-23 13:37 ` Maarten Lankhorst
2026-07-21 14:30 ` ✗ CI.checkpatch: warning for drm/xe/display: Transparant fallback from stolen to sysmem. (rev2) Patchwork
2026-07-21 14:32 ` ✓ CI.KUnit: success " Patchwork
2026-07-21 15:22 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-21 20:02 ` ✗ CI.checkpatch: warning for drm/xe/display: Transparant fallback from stolen to sysmem. (rev3) Patchwork
2026-07-21 20:03 ` ✓ CI.KUnit: success " Patchwork
2026-07-21 20:53 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-22 8:39 ` ✓ Xe.CI.FULL: " Patchwork
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=20260721142610.93804-8-dev@lankhorst.se \
--to=dev@lankhorst.se \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.auld@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