On 30/06/2026 14:55, Maarten Lankhorst wrote:
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.

Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/7513
Signed-off-by: Maarten Lankhorst <[email protected]>
---
  drivers/gpu/drm/xe/display/xe_display_bo.c | 7 +++++++
  1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/xe/display/xe_display_bo.c 
b/drivers/gpu/drm/xe/display/xe_display_bo.c
index 8953da0136dcb..677ae3af9ac0c 100644
--- a/drivers/gpu/drm/xe/display/xe_display_bo.c
+++ b/drivers/gpu/drm/xe/display/xe_display_bo.c
@@ -131,6 +131,13 @@ 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;
+
        if (XE_DEVICE_WA(xe, 22019338487_display))
                return false;

There is also the question for why this WA only applies to LNL, but the GT side of the WA applies even to PTL+, which seems highly suspect. Might be worth mentioning that in the commit. Also wondering if can now just drop 22019338487_display?

Also not sure if should just go with platform check here:

if (info.platform >= LNL)

?

Either way:
Reviewed-by: Matthew Auld <[email protected]>


Reply via email to