+ i8042-activate-panic-blink-only-in-x.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     i8042: activate panic blink only in X

has been added to the -mm tree.  Its filename is

     i8042-activate-panic-blink-only-in-x.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: i8042: activate panic blink only in X
From: Dmitry Torokhov <dtor@xxxxxxxxxxxxx>

This gives keyboard a chance to work in text console so user can attempt to
exctract more useful data form crashed box (for example some backtraces
from SysRq)

Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/input/serio/i8042.c |   10 ++++++++++
 1 files changed, 10 insertions(+)

diff -puN drivers/input/serio/i8042.c~i8042-activate-panic-blink-only-in-x drivers/input/serio/i8042.c
--- a/drivers/input/serio/i8042.c~i8042-activate-panic-blink-only-in-x
+++ a/drivers/input/serio/i8042.c
@@ -20,6 +20,7 @@
 #include <linux/err.h>
 #include <linux/rcupdate.h>
 #include <linux/platform_device.h>
+#include <linux/vt_kern.h>
 
 #include <asm/io.h>
 
@@ -831,6 +832,15 @@ static long i8042_panic_blink(long count
 	static char led;
 
 	/*
+	 * Only blink while in X because it messes up scrollback in console
+	 * preventing users to see the entire oops.
+	 */
+#ifdef CONFIG_HW_CONSOLE
+	if (vc_cons[fg_console].d->vc_mode != KD_GRAPHICS)
+		return 0;
+#endif
+
+	/*
 	 * We expect frequency to be about 1/2s. KDB uses about 1s.
 	 * Make sure they are different.
 	 */
_

Patches currently in -mm which might be from dtor@xxxxxxxxxxxxx are

git-acpi.patch
git-dvb.patch
git-input.patch
input-i8042-get-rid-of-polling-timer.patch
input-i8042-disable-keyboard-port-when-panicking-and-blinking.patch
i8042-activate-panic-blink-only-in-x.patch
ucb1x00-ts-handle-errors-from-input_register_device.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux