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. 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 7fbac223b0977..a5080f6540d46 100644 --- a/drivers/gpu/drm/xe/display/xe_display_bo.c +++ b/drivers/gpu/drm/xe/display/xe_display_bo.c @@ -130,6 +130,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; -- 2.53.0
