• Daniel Vetter's avatar
    drm/i915: Kick out vga console · a4de0526
    Daniel Vetter authored
    Touching the VGA resources on an IVB EFI machine causes hard hangs when
    we then kick out the efifb. Ouch.
    
    Apparently this also prevents unclaimed register errors on hsw and
    hard machine hangs on my i855gm when trying to unbind fbcon.
    
    Also, we want this to make I915_FBDEV=n safe.
    
    v2: Rebase and pimp commit message.
    
    v3: We also need to unregister the vga console, otherwise the unbind
    of the fb console before module unload might resurrect it again.
    
    v4: Ignore errors when the vga console is already unregistered - this
    can happen when e.g. reloading i915.ko.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67813
    Cc: David Herrmann <dh.herrmann@gmail.com>
    Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
    Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
    Cc: linux-fbdev@vger.kernel.org
    Cc: Jani Nikula <jani.nikula@linux.intel.com>
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
    Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
    Acked-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    a4de0526
dummycon.c 1.79 KB