]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/fbdev: print info about stolen memory preference for fbdev
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Fri, 20 Feb 2026 17:09:08 +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 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-7-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_fbdev_fb.c

index 90993d09a73f89bfea9258ed0ce4bf9d177194a4..6f84eb6355ded9c6e75826b2f33969bc97e7caa4 100644 (file)
@@ -46,6 +46,9 @@ struct drm_gem_object *intel_fbdev_fb_bo_create(struct drm_device *drm, int size
        } else {
                if (intel_fbdev_fb_prefer_stolen(drm, size))
                        obj = i915_gem_object_create_stolen(i915, size);
+               else
+                       drm_info(drm, "Allocating fbdev: Stolen memory not preferred.\n");
+
                if (IS_ERR(obj))
                        obj = i915_gem_object_create_shmem(i915, size);
        }