[PATCH,RFC 2.6.14 14/15] KGDB: Fix for 'lost' SysRq events

From: Tom Rini (trini_at_kernel.crashing.org)
Date: 11/10/05

  • Next message: Tom Rini: "[PATCH,RFC 2.6.14 08/15] KGDB: x86_64-specific changes"
    To: Andrew Morton <akpm@osdl.org>
    Date:	Thu, 10 Nov 2005 11:45:00 -0500
    
    

    It is possible that when SysRq-G is triggered via the keyboard that we will
    miss the "up" event and once KGDB lets the kernel go another SysRq will be
    required to clear this, without this change.

     drivers/char/keyboard.c | 1 +
     1 file changed, 1 insertion(+)

    Index: linux-2.6.14/drivers/char/keyboard.c
    ===================================================================
    --- linux-2.6.14.orig/drivers/char/keyboard.c
    +++ linux-2.6.14/drivers/char/keyboard.c
    @@ -1069,6 +1069,7 @@ static void kbd_keycode(unsigned int key
             }
             if (sysrq_down && down && !rep) {
                     handle_sysrq(kbd_sysrq_xlate[keycode], regs, tty);
    + sysrq_down = 0; /* In case we miss the 'up' event. */
                     return;
             }
     #endif

    -- 
    Tom
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Tom Rini: "[PATCH,RFC 2.6.14 08/15] KGDB: x86_64-specific changes"

    Relevant Pages

    • Re: 2.4.23 hard lock, 100% reproducible.
      ... > Not even sysrq? ... I did get msgs twice here in the past few hours, ... Unable to handle kernel NULL pointer ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: How to enable sysrq feature
      ... Krishna says, sysrq is not locateable in /proc ... >> If u compiled in sysrq into your kernel and booted the correct kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.14 kswapd eating too much CPU
      ... > something special in the kernel? ... > SysRq: Show Regs ... all-task backtrace, then locate the trace for kswapd in the resulting ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 6/8] kgdb, sysrq_bugfix
      ... It is possible that when SysRq-G is triggered via the keyboard that we ... will miss the "up" event and once KGDB lets the kernel go another ... SysRq will be required to clear this, ...
      (Linux-Kernel)
    • Re: Real-Time Preemption: BUG initializing kgdb
      ... Revert all spinlock_t types that kgdb uses to raw_spinlock_t to get the ... actual spinlock code. ... with the struct definition so that changes to the kernel code is minimized. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)