diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2013-07-01 11:38:54 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-07-08 14:54:28 -0400 |
commit | 9ad95879cd1b22ed016c804f8d686ff83a41a9d4 (patch) | |
tree | 0cee9371366a6c1bfa15757356b6213aa09a565c /arch/x86 | |
parent | c3d1fb567a634dcdff4c6f6095b2053260988336 (diff) |
mce: acpi/apei: Add a boot option to disable ff mode for corrected errors
Add a boot option to disable firmware first mode for corrected errors.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/acpi.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h index b31bf97775fc..42db2b88953b 100644 --- a/arch/x86/include/asm/acpi.h +++ b/arch/x86/include/asm/acpi.h | |||
@@ -86,6 +86,7 @@ extern int acpi_pci_disabled; | |||
86 | extern int acpi_skip_timer_override; | 86 | extern int acpi_skip_timer_override; |
87 | extern int acpi_use_timer_override; | 87 | extern int acpi_use_timer_override; |
88 | extern int acpi_fix_pin2_polarity; | 88 | extern int acpi_fix_pin2_polarity; |
89 | extern int acpi_disable_cmcff; | ||
89 | 90 | ||
90 | extern u8 acpi_sci_flags; | 91 | extern u8 acpi_sci_flags; |
91 | extern int acpi_sci_override_gsi; | 92 | extern int acpi_sci_override_gsi; |
@@ -168,6 +169,7 @@ static inline void arch_acpi_set_pdc_bits(u32 *buf) | |||
168 | 169 | ||
169 | #define acpi_lapic 0 | 170 | #define acpi_lapic 0 |
170 | #define acpi_ioapic 0 | 171 | #define acpi_ioapic 0 |
172 | #define acpi_disable_cmcff 0 | ||
171 | static inline void acpi_noirq_set(void) { } | 173 | static inline void acpi_noirq_set(void) { } |
172 | static inline void acpi_disable_pci(void) { } | 174 | static inline void acpi_disable_pci(void) { } |
173 | static inline void disable_acpi(void) { } | 175 | static inline void disable_acpi(void) { } |
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 230c8ea878e5..d1998d580080 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -66,6 +66,7 @@ EXPORT_SYMBOL(acpi_pci_disabled); | |||
66 | int acpi_lapic; | 66 | int acpi_lapic; |
67 | int acpi_ioapic; | 67 | int acpi_ioapic; |
68 | int acpi_strict; | 68 | int acpi_strict; |
69 | int acpi_disable_cmcff; | ||
69 | 70 | ||
70 | u8 acpi_sci_flags __initdata; | 71 | u8 acpi_sci_flags __initdata; |
71 | int acpi_sci_override_gsi __initdata; | 72 | int acpi_sci_override_gsi __initdata; |
@@ -1619,6 +1620,10 @@ static int __init parse_acpi(char *arg) | |||
1619 | /* "acpi=copy_dsdt" copys DSDT */ | 1620 | /* "acpi=copy_dsdt" copys DSDT */ |
1620 | else if (strcmp(arg, "copy_dsdt") == 0) { | 1621 | else if (strcmp(arg, "copy_dsdt") == 0) { |
1621 | acpi_gbl_copy_dsdt_locally = 1; | 1622 | acpi_gbl_copy_dsdt_locally = 1; |
1623 | } | ||
1624 | /* "acpi=nocmcff" disables FF mode for corrected errors */ | ||
1625 | else if (strcmp(arg, "nocmcff") == 0) { | ||
1626 | acpi_disable_cmcff = 1; | ||
1622 | } else { | 1627 | } else { |
1623 | /* Core will printk when we return error. */ | 1628 | /* Core will printk when we return error. */ |
1624 | return -EINVAL; | 1629 | return -EINVAL; |