diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-18 18:51:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-18 18:51:48 -0500 |
commit | 507a03c1cba0e32309223d23d19a1bfc0916c140 (patch) | |
tree | 8da15f9c635733948a73bfe35cb50e1195702952 /arch/x86 | |
parent | be405411f712489f2f780ab085e1069e8fb85f19 (diff) | |
parent | 79ba0db69c5887f1ad4ed51d58894e7e889084b0 (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
This includes initial support for the recently published ACPI 5.0 spec.
In particular, support for the "hardware-reduced" bit that eliminates
the dependency on legacy hardware.
APEI has patches resulting from testing on real hardware.
Plus other random fixes.
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (52 commits)
acpi/apei/einj: Add extensions to EINJ from rev 5.0 of acpi spec
intel_idle: Split up and provide per CPU initialization func
ACPI processor: Remove unneeded variable passed by acpi_processor_hotadd_init V2
ACPI processor: Remove unneeded cpuidle_unregister_driver call
intel idle: Make idle driver more robust
intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle
ACPI: kernel-parameters.txt : Add intel_idle.max_cstate
intel_idle: remove redundant local_irq_disable() call
ACPI processor: Fix error path, also remove sysdev link
ACPI: processor: fix acpi_get_cpuid for UP processor
intel_idle: fix API misuse
ACPI APEI: Convert atomicio routines
ACPI: Export interfaces for ioremapping/iounmapping ACPI registers
ACPI: Fix possible alignment issues with GAS 'address' references
ACPI, ia64: Use SRAT table rev to use 8bit or 16/32bit PXM fields (ia64)
ACPI, x86: Use SRAT table rev to use 8bit or 32bit PXM fields (x86/x86-64)
ACPI: Store SRAT table revision
ACPI, APEI, Resolve false conflict between ACPI NVS and APEI
ACPI, Record ACPI NVS regions
ACPI, APEI, EINJ, Refine the fix of resource conflict
...
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/e820.c | 4 | ||||
-rw-r--r-- | arch/x86/mm/srat.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 174d938d576b..62d61e9976eb 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c | |||
@@ -703,7 +703,7 @@ void __init e820_mark_nosave_regions(unsigned long limit_pfn) | |||
703 | } | 703 | } |
704 | #endif | 704 | #endif |
705 | 705 | ||
706 | #ifdef CONFIG_HIBERNATION | 706 | #ifdef CONFIG_ACPI |
707 | /** | 707 | /** |
708 | * Mark ACPI NVS memory region, so that we can save/restore it during | 708 | * Mark ACPI NVS memory region, so that we can save/restore it during |
709 | * hibernation and the subsequent resume. | 709 | * hibernation and the subsequent resume. |
@@ -716,7 +716,7 @@ static int __init e820_mark_nvs_memory(void) | |||
716 | struct e820entry *ei = &e820.map[i]; | 716 | struct e820entry *ei = &e820.map[i]; |
717 | 717 | ||
718 | if (ei->type == E820_NVS) | 718 | if (ei->type == E820_NVS) |
719 | suspend_nvs_register(ei->addr, ei->size); | 719 | acpi_nvs_register(ei->addr, ei->size); |
720 | } | 720 | } |
721 | 721 | ||
722 | return 0; | 722 | return 0; |
diff --git a/arch/x86/mm/srat.c b/arch/x86/mm/srat.c index fd61b3fb7341..1c1c4f46a7c1 100644 --- a/arch/x86/mm/srat.c +++ b/arch/x86/mm/srat.c | |||
@@ -109,6 +109,8 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa) | |||
109 | if ((pa->flags & ACPI_SRAT_CPU_ENABLED) == 0) | 109 | if ((pa->flags & ACPI_SRAT_CPU_ENABLED) == 0) |
110 | return; | 110 | return; |
111 | pxm = pa->proximity_domain_lo; | 111 | pxm = pa->proximity_domain_lo; |
112 | if (acpi_srat_revision >= 2) | ||
113 | pxm |= *((unsigned int*)pa->proximity_domain_hi) << 8; | ||
112 | node = setup_node(pxm); | 114 | node = setup_node(pxm); |
113 | if (node < 0) { | 115 | if (node < 0) { |
114 | printk(KERN_ERR "SRAT: Too many proximity domains %x\n", pxm); | 116 | printk(KERN_ERR "SRAT: Too many proximity domains %x\n", pxm); |
@@ -160,6 +162,8 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma) | |||
160 | start = ma->base_address; | 162 | start = ma->base_address; |
161 | end = start + ma->length; | 163 | end = start + ma->length; |
162 | pxm = ma->proximity_domain; | 164 | pxm = ma->proximity_domain; |
165 | if (acpi_srat_revision <= 1) | ||
166 | pxm &= 0xff; | ||
163 | node = setup_node(pxm); | 167 | node = setup_node(pxm); |
164 | if (node < 0) { | 168 | if (node < 0) { |
165 | printk(KERN_ERR "SRAT: Too many proximity domains.\n"); | 169 | printk(KERN_ERR "SRAT: Too many proximity domains.\n"); |