]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
panic: Add taint flag TAINT_FIRMWARE_WORKAROUND ('I')
authorBen Hutchings <ben@decadent.org.uk>
Sat, 3 Apr 2010 18:36:42 +0000 (19:36 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 19 May 2010 07:37:43 +0000 (08:37 +0100)
This taint flag will initially be used when warning about invalid ACPI
DMAR tables.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Documentation/oops-tracing.txt
include/linux/kernel.h
kernel/panic.c

index 069fab3ea4d6c2eadf9ff969fdf886e19cffcab1..6fe9001b92634ec306a745d5842883640db79597 100644 (file)
@@ -260,6 +260,9 @@ characters, each representing a particular tainted value.
 
  11: 'C' if a staging driver has been loaded.
 
+ 12: 'I' if the kernel is working around a severe bug in the platform
+     firmware (BIOS or similar).
+
 The primary reason for the 'Tainted: ' string is to tell kernel
 debuggers if this is a clean kernel or if anything unusual has
 occurred.  Tainting is permanent: even if an offending module is
index 7f07074633603463af3c80eb9c9334f31789f244..7f2f7b34dd08ee566a3d46de9e84b2a1e84f1ab5 100644 (file)
@@ -344,6 +344,7 @@ extern enum system_states {
 #define TAINT_OVERRIDDEN_ACPI_TABLE    8
 #define TAINT_WARN                     9
 #define TAINT_CRAP                     10
+#define TAINT_FIRMWARE_WORKAROUND      11
 
 extern void dump_stack(void) __cold;
 
index 8b821bce66e6a3f7475609193f5d87e973113298..dbe13dbb057a27031f7c210ed86906bd443244a7 100644 (file)
@@ -178,6 +178,7 @@ static const struct tnt tnts[] = {
        { TAINT_OVERRIDDEN_ACPI_TABLE,  'A', ' ' },
        { TAINT_WARN,                   'W', ' ' },
        { TAINT_CRAP,                   'C', ' ' },
+       { TAINT_FIRMWARE_WORKAROUND,    'I', ' ' },
 };
 
 /**
@@ -194,6 +195,7 @@ static const struct tnt tnts[] = {
  *  'A' - ACPI table overridden.
  *  'W' - Taint on warning.
  *  'C' - modules from drivers/staging are loaded.
+ *  'I' - Working around severe firmware bug.
  *
  *     The string is overwritten by the next call to print_tainted().
  */