• A
    [PATCH] savagefb: Add state save and_restore hooks · f8020dc5
    Antonino A. Daplas 提交于
    Reported by: Rich (Bugzilla Bug 6417)
    
    "if savage driver is used in x.org together with savagefb, it results in
    seriously garbled and distorted screen - coupled with severe slowdowns."
    
    This bug is the result of Xorg unable to handle savagefb altering the
    hardware which results in X failing to start properly and/or failed console
    switching.
    
    Add savagefb_state_save and savagefb_state_restore. These hooks will only
    save and restore the extended VGA registers.  Standard VGA registers will be
    left alone.  This is enough to make savagefb play nicely with the latest
    Xorg savage driver, and perhaps with savage DRI. (Transient screen artifacts
    may appear before X loads and during console switches).
    
    (Unfortunately, blanking the screen also leaves Xorg in a blanked state, so I
    have to unblank the screen before Xorg loads.  So I doubt if the transient
    screen artifacts will be completely invisible but hopefully it will only be
    for a shorter duration (not much).)
    
    [akpm@osdl.org: cleanups]
    Signed-off-by: NAntonino Daplas <adaplas@pol.net>
    Cc: <rich@hq.vsaa.lv>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    f8020dc5
savagefb_driver.c 63.9 KB