diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-09 21:22:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-09 21:22:04 -0500 |
commit | e07e0d4cb0c4bfe822ec8491cc06269096a38bea (patch) | |
tree | 856bbf6c33d4de660d0b1e2c85019d0d3555123f /arch/x86/pci | |
parent | 57d3629410599a1074b02f9b2139c2a6aa2b787e (diff) | |
parent | 93d76c802644e0cab62545603381988cef84d1d7 (diff) |
Merge branch 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 RAS update from Ingo Molnar:
"The changes in this cycle were:
- allow mmcfg access to APEI error injection handlers
- improve MCE error messages
- smaller cleanups"
* 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86, mce: Fix sparse errors
x86, mce: Improve timeout error messages
ACPI, EINJ: Enhance error injection tolerance level
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 326198a4434e..676e5e04e4d4 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
@@ -610,6 +610,32 @@ static int __init pci_parse_mcfg(struct acpi_table_header *header) | |||
610 | return 0; | 610 | return 0; |
611 | } | 611 | } |
612 | 612 | ||
613 | #ifdef CONFIG_ACPI_APEI | ||
614 | extern int (*arch_apei_filter_addr)(int (*func)(__u64 start, __u64 size, | ||
615 | void *data), void *data); | ||
616 | |||
617 | static int pci_mmcfg_for_each_region(int (*func)(__u64 start, __u64 size, | ||
618 | void *data), void *data) | ||
619 | { | ||
620 | struct pci_mmcfg_region *cfg; | ||
621 | int rc; | ||
622 | |||
623 | if (list_empty(&pci_mmcfg_list)) | ||
624 | return 0; | ||
625 | |||
626 | list_for_each_entry(cfg, &pci_mmcfg_list, list) { | ||
627 | rc = func(cfg->res.start, resource_size(&cfg->res), data); | ||
628 | if (rc) | ||
629 | return rc; | ||
630 | } | ||
631 | |||
632 | return 0; | ||
633 | } | ||
634 | #define set_apei_filter() (arch_apei_filter_addr = pci_mmcfg_for_each_region) | ||
635 | #else | ||
636 | #define set_apei_filter() | ||
637 | #endif | ||
638 | |||
613 | static void __init __pci_mmcfg_init(int early) | 639 | static void __init __pci_mmcfg_init(int early) |
614 | { | 640 | { |
615 | pci_mmcfg_reject_broken(early); | 641 | pci_mmcfg_reject_broken(early); |
@@ -644,6 +670,8 @@ void __init pci_mmcfg_early_init(void) | |||
644 | else | 670 | else |
645 | acpi_sfi_table_parse(ACPI_SIG_MCFG, pci_parse_mcfg); | 671 | acpi_sfi_table_parse(ACPI_SIG_MCFG, pci_parse_mcfg); |
646 | __pci_mmcfg_init(1); | 672 | __pci_mmcfg_init(1); |
673 | |||
674 | set_apei_filter(); | ||
647 | } | 675 | } |
648 | } | 676 | } |
649 | 677 | ||