]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Discard BIOS framebuffers too small to accommodate chosen mode
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Apr 2014 07:54:31 +0000 (08:54 +0100)
committerJani Nikula <jani.nikula@intel.com>
Thu, 24 Apr 2014 10:34:37 +0000 (13:34 +0300)
commit45cbb9a7f811685e025aeda572b72545373f45c1
treee84e5699c1a7bc938c88adcec0bafcba06a5904b
parent5537b08971e39a4ba6059d6b1f6496c3459d2ee8
drm/i915: Discard BIOS framebuffers too small to accommodate chosen mode

If the inherited BIOS framebuffer is smaller than the mode selected for
fbdev, then if we continue to use it then we cause display corruption as
we do not setup the panel fitter to upscale.

Regression from commit 57291828cf5a7ca1b07acfd940ae43cde6698f2f
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Fri Mar 7 08:57:51 2014 -0800

    drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v12

v2: Add a debug message to track the discard of the BIOS fb.
v3: Ville pointed out the difference between ref/unref

Reported-by: Knut Petersen <Knut_Petersen@t-online.de>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77767
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_fbdev.c