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)
commitd8241785c24d4508ecc26fb91b28b39a0dd26070
tree725448bce668d7c8df4da6b3d1cfe278c526f9ac
parent2ce12e3dffe005f96e3b3ff1f761bbb0bf570fda
drm/i915: Only print the info message about incresing stolen size for FBC once

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