]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only unbind vgacon, not other console drivers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Jul 2014 08:02:43 +0000 (10:02 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Jul 2014 07:52:13 +0000 (09:52 +0200)
commit9e8a055fd392b6a5678da45403c38f34d8e6d815
tree35eb715aff8606e2e19aa4e334ad413d60ae907e
parentc4d5568da74f7f32ae89c7196e36cf59d5912992
drm/i915: Only unbind vgacon, not other console drivers

The console subsystem only provides a function to switch to a given
console, but we want to actually only switach away from vgacon.
Unconditionally switching to the dummy console resulted in switching
away from fbcon in multi-gpu setups when other gpu drivers are loaded
before i915.

Then either the reinitialization of fbcon when i915 registers its
fbdev emulation or the teardown of the fbcon driver killed the
machine. So only switch to the dummy console when it's required.

Kudos to Chris for the original idea, I've only refined it a bit to
still unregister vgacon even when it's currently unused.

This regression has been introduced in

commit 580ce7ee7a18dab8285ad060a814b47591737084
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jun 5 16:20:46 2014 +0200

    drm/i915: Kick out vga console

Reported-and-tested-by: Ed Tomlinson <edt@aei.ca>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c