diff options
| -rw-r--r-- | Documentation/oops-tracing.txt | 3 | ||||
| -rw-r--r-- | include/linux/kernel.h | 1 | ||||
| -rw-r--r-- | kernel/panic.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/oops-tracing.txt b/Documentation/oops-tracing.txt index 069fab3ea4d6..6fe9001b9263 100644 --- a/Documentation/oops-tracing.txt +++ b/Documentation/oops-tracing.txt | |||
| @@ -260,6 +260,9 @@ characters, each representing a particular tainted value. | |||
| 260 | 260 | ||
| 261 | 11: 'C' if a staging driver has been loaded. | 261 | 11: 'C' if a staging driver has been loaded. |
| 262 | 262 | ||
| 263 | 12: 'I' if the kernel is working around a severe bug in the platform | ||
| 264 | firmware (BIOS or similar). | ||
| 265 | |||
| 263 | The primary reason for the 'Tainted: ' string is to tell kernel | 266 | The primary reason for the 'Tainted: ' string is to tell kernel |
| 264 | debuggers if this is a clean kernel or if anything unusual has | 267 | debuggers if this is a clean kernel or if anything unusual has |
| 265 | occurred. Tainting is permanent: even if an offending module is | 268 | occurred. Tainting is permanent: even if an offending module is |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 7f0707463360..7f2f7b34dd08 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -344,6 +344,7 @@ extern enum system_states { | |||
| 344 | #define TAINT_OVERRIDDEN_ACPI_TABLE 8 | 344 | #define TAINT_OVERRIDDEN_ACPI_TABLE 8 |
| 345 | #define TAINT_WARN 9 | 345 | #define TAINT_WARN 9 |
| 346 | #define TAINT_CRAP 10 | 346 | #define TAINT_CRAP 10 |
| 347 | #define TAINT_FIRMWARE_WORKAROUND 11 | ||
| 347 | 348 | ||
| 348 | extern void dump_stack(void) __cold; | 349 | extern void dump_stack(void) __cold; |
| 349 | 350 | ||
diff --git a/kernel/panic.c b/kernel/panic.c index 8b821bce66e6..dbe13dbb057a 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
| @@ -178,6 +178,7 @@ static const struct tnt tnts[] = { | |||
| 178 | { TAINT_OVERRIDDEN_ACPI_TABLE, 'A', ' ' }, | 178 | { TAINT_OVERRIDDEN_ACPI_TABLE, 'A', ' ' }, |
| 179 | { TAINT_WARN, 'W', ' ' }, | 179 | { TAINT_WARN, 'W', ' ' }, |
| 180 | { TAINT_CRAP, 'C', ' ' }, | 180 | { TAINT_CRAP, 'C', ' ' }, |
| 181 | { TAINT_FIRMWARE_WORKAROUND, 'I', ' ' }, | ||
| 181 | }; | 182 | }; |
| 182 | 183 | ||
| 183 | /** | 184 | /** |
| @@ -194,6 +195,7 @@ static const struct tnt tnts[] = { | |||
| 194 | * 'A' - ACPI table overridden. | 195 | * 'A' - ACPI table overridden. |
| 195 | * 'W' - Taint on warning. | 196 | * 'W' - Taint on warning. |
| 196 | * 'C' - modules from drivers/staging are loaded. | 197 | * 'C' - modules from drivers/staging are loaded. |
| 198 | * 'I' - Working around severe firmware bug. | ||
| 197 | * | 199 | * |
| 198 | * The string is overwritten by the next call to print_tainted(). | 200 | * The string is overwritten by the next call to print_tainted(). |
| 199 | */ | 201 | */ |
