]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
drm/i915: Only print the info message about incresing stolen size for FBC once
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 27 Apr 2013 11:44:16 +0000 (12:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 27 Apr 2013 12:06:39 +0000 (14:06 +0200)
Instead of repeatedly bombarding the user with a request to reboot and
increase the stolen size with every fb refresh, just inform them the
first time only.

v2: Rearrange code so the hint to increase the amount of memory stolen
by the BIOS is only emitted if we fail to find sufficient stolen memory
for FBC.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Fixup formatting code mismatch that gcc spotted.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/intel_pm.c

index 130d1db27e288d0479804696d33e1014e1581a18..67d3510cafeddfb6c094fe6f06612eeb9b7ac174 100644 (file)
@@ -136,6 +136,7 @@ static int i915_setup_compression(struct drm_device *dev, int size)
 err_fb:
        drm_mm_put_block(compressed_fb);
 err:
+       pr_info_once("drm: not enough stolen space for compressed buffer (need %d more bytes), disabling. Hint: you may be able to increase stolen memory size in the BIOS to avoid this.\n", size);
        return -ENOSPC;
 }
 
index bb45122173dd1b830abcf80c4cc4071cf9971b97..0f4b46e949324175eee0775d717e5f537ef93090 100644 (file)
@@ -481,8 +481,6 @@ void intel_update_fbc(struct drm_device *dev)
                goto out_disable;
 
        if (i915_gem_stolen_setup_compression(dev, intel_fb->obj->base.size)) {
-               DRM_INFO("not enough stolen space for compressed buffer (need %zd bytes), disabling\n", intel_fb->obj->base.size);
-               DRM_INFO("hint: you may be able to increase stolen memory size in the BIOS to avoid this\n");
                DRM_DEBUG_KMS("framebuffer too large, disabling compression\n");
                dev_priv->no_fbc_reason = FBC_STOLEN_TOO_SMALL;
                goto out_disable;