Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b6e8f00fcd56b426371334d722d1f3fb251b7290
Commit:     b6e8f00fcd56b426371334d722d1f3fb251b7290
Parent:     1a3f28817e2a3f0be67ec8afa0cfd779adb5d41d
Author:     izumi <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 17 04:05:49 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 17 10:23:13 2007 -0700

    Fix the graphic corruption issue on IA64 machines
    
    VGA console driver can misunderstand the current mode(Text/Graphic) under
    "disable console blanking" setting.  When "disable console blank" is set
    (blankinterval=0), "do_unblank_screen()" function returns without changing
    "blank_state", and when "blank_state" is "blank_off", "do_blank_screen()
    function returns without invoking sw->con_blank() function.  That's why VGA
    console driver can misunderstand the current mode.
    
    Signed-off-by: Nobuhiro Tachino <[EMAIL PROTECTED]>
    Signed-off-by: Taku Izumi <[EMAIL PROTECTED]>
    Cc: "Antonino A. Daplas" <[EMAIL PROTECTED]>
    Cc: "Luck, Tony" <[EMAIL PROTECTED]>
    Acked-by: Pete Zaitcev <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/char/vt.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 45b33cf..edb7002 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -3506,9 +3506,6 @@ void do_blank_screen(int entering_gfx)
                }
                return;
        }
-       if (blank_state != blank_normal_wait)
-               return;
-       blank_state = blank_off;
 
        /* entering graphics mode? */
        if (entering_gfx) {
@@ -3516,10 +3513,15 @@ void do_blank_screen(int entering_gfx)
                save_screen(vc);
                vc->vc_sw->con_blank(vc, -1, 1);
                console_blanked = fg_console + 1;
+               blank_state = blank_off;
                set_origin(vc);
                return;
        }
 
+       if (blank_state != blank_normal_wait)
+               return;
+       blank_state = blank_off;
+
        /* don't blank graphics */
        if (vc->vc_mode != KD_TEXT) {
                console_blanked = fg_console + 1;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to