]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clear the stolen fb before enabling
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 16 Dec 2012 12:15:41 +0000 (12:15 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Dec 2012 13:40:15 +0000 (14:40 +0100)
commit3700b41133cf066decb3ccb1f0b92a339480e25b
treed63f9be31177aea602421891f771e48c756e5474
parenta57fdcfd3777fe05d6d15f591f9a2bd8c4b1c95e
drm/i915: Clear the stolen fb before enabling

As the stolen memory region will contain the contents of whatever was
last there, it invariably contains garbage. To be consistent with the
shmemfs backed fb and the expectations of the fb layer, we need to clear
the fb prior to installing it as an fbcon.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58111
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Fixup sparse __iomem confusion reported by Wu Fengguang.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_fb.c