[Intel-gfx] [PATCH 33/43] drm/i915: more debug messages when BIOS display config can't be replicated

Chris Wilson chris at chris-wilson.co.uk
Fri May 25 14:33:12 CEST 2012


From: Jesse Barnes <jbarnes at virtuousgeek.org>

Makes debugging new configs easier.

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_fb.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c
index 12a0c14..5550de7 100644
--- a/drivers/gpu/drm/i915/intel_fb.c
+++ b/drivers/gpu/drm/i915/intel_fb.c
@@ -307,8 +307,10 @@ void intel_fbdev_init_bios(struct drm_device *dev)
 			continue;
 
 		if (INTEL_INFO(dev)->gen >= 4) {
-			if (val & DISPPLANE_TILED)
+			if (val & DISPPLANE_TILED) {
+				DRM_DEBUG_KMS("tiled BIOS fb?\n");
 				continue; /* unexpected! */
+			}
 		}
 
 		switch (val & DISPPLANE_PIXFORMAT_MASK) {
@@ -361,6 +363,7 @@ void intel_fbdev_init_bios(struct drm_device *dev)
 		obj = i915_gem_object_create_stolen_for_preallocated
 			(dev, offset, offset, size);
 		if (obj == NULL) {
+			DRM_DEBUG_KMS("failed to create stolen fb\n");
 			kfree(ifbdev);
 			continue;
 		}
-- 
1.7.10




More information about the Intel-gfx mailing list