]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/fbdev: print info about stolen memory preference for fbdev
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Fri, 20 Feb 2026 17:09:07 +0000 (19:09 +0200)
committerVinod Govindapillai <vinod.govindapillai@intel.com>
Wed, 25 Feb 2026 12:35:28 +0000 (14:35 +0200)
If stolen memory cannot be allocated for the fbdev and initial plane
bo because of the preference for fbc, have an info about that in
the log.

v2: log text changed

Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Acked-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patch.msgid.link/20260220170908.201422-6-vinod.govindapillai@intel.com
drivers/gpu/drm/xe/display/intel_fbdev_fb.c
drivers/gpu/drm/xe/display/xe_initial_plane.c

index 4673614cd22449627252aa430745695912229139..87af5646c938a1e9a93d04d67a6f641b0e2304d5 100644 (file)
@@ -63,6 +63,8 @@ struct drm_gem_object *intel_fbdev_fb_bo_create(struct drm_device *drm, int size
                        drm_info(&xe->drm, "Allocated fbdev into stolen\n");
                else
                        drm_info(&xe->drm, "Allocated fbdev into stolen failed: %li\n", PTR_ERR(obj));
+       } else {
+               drm_info(&xe->drm, "Allocating fbdev: Stolen memory not preferred.\n");
        }
 
        if (IS_ERR(obj)) {
index 13fdc51f8f5054813629d1f585acea9f33e5306e..c46e9d8115bd885b1f5c3feab2e529d841cf1805 100644 (file)
@@ -92,8 +92,10 @@ initial_plane_bo(struct xe_device *xe,
                flags |= XE_BO_FLAG_STOLEN;
 
                if (IS_ENABLED(CONFIG_FRAMEBUFFER_CONSOLE) &&
-                   !intel_fbdev_fb_prefer_stolen(&xe->drm, plane_config->size))
+                   !intel_fbdev_fb_prefer_stolen(&xe->drm, plane_config->size)) {
+                       drm_info(&xe->drm, "Initial FB size exceeds half of stolen, discarding\n");
                        return NULL;
+               }
        }
 
        size = round_up(plane_config->base + plane_config->size,