Skip to content

Commit 0e36d43

Browse files
committed
Merge branch 'acpica'
* acpica: (63 commits) ACPICA: Namespace: Remove _PRP method support. ACPI: Fix x86 regression related to early mapping size limitation ACPICA: Tables: Add mechanism to control early table checksum verification. ACPICA: acpidump: Fix repetitive table dump in -n mode. ACPI: Clean up acpi_os_map/unmap_memory() to eliminate __iomem. ACPICA: Clean up redudant definitions already defined elsewhere ACPICA: Linux headers: Add <asm/acenv.h> to remove mis-ordered inclusion of <asm/acpi.h> ACPICA: Linux headers: Add <acpi/platform/aclinuxex.h> ACPICA: Linux headers: Remove ACPI_PREEMPTION_POINT() due to no usages. ACPICA: Update version to 20140424. ACPICA: Comment/format update, no functional change. ACPICA: Events: Update GPE handling and initialization code. ACPICA: Remove extraneous error message for large number of GPEs. ACPICA: Tables: Remove old mechanism to validate if XSDT contains NULL entries. ACPICA: Tables: Add new mechanism to skip NULL entries in RSDT and XSDT. ACPICA: acpidump: Add support to force using RSDT. ACPICA: Back port of improvements on exception code. ACPICA: Back port of _PRP update. ACPICA: acpidump: Fix truncated RSDP signature validation. ACPICA: Linux header: Add support for stubbed externals. ...
2 parents b04c58b + 729ddb6 commit 0e36d43

65 files changed

Lines changed: 6060 additions & 2271 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/kernel-parameters.txt‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
214214
unusable. The "log_buf_len" parameter may be useful
215215
if you need to capture more output.
216216

217+
acpi_force_table_verification [HW,ACPI]
218+
Enable table checksum verification during early stage.
219+
By default, this is disabled due to x86 early mapping
220+
size limitation.
221+
217222
acpi_irq_balance [HW,ACPI]
218223
ACPI will balance active IRQs
219224
default in APIC mode
@@ -237,7 +242,15 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
237242
This feature is enabled by default.
238243
This option allows to turn off the feature.
239244

240-
acpi_no_auto_ssdt [HW,ACPI] Disable automatic loading of SSDT
245+
acpi_no_static_ssdt [HW,ACPI]
246+
Disable installation of static SSDTs at early boot time
247+
By default, SSDTs contained in the RSDT/XSDT will be
248+
installed automatically and they will appear under
249+
/sys/firmware/acpi/tables.
250+
This option turns off this feature.
251+
Note that specifying this option does not affect
252+
dynamic table installation which will install SSDT
253+
tables to /sys/firmware/acpi/tables/dynamic.
241254

242255
acpica_no_return_repair [HW, ACPI]
243256
Disable AML predefined validation mechanism

‎arch/ia64/include/asm/acenv.h‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* IA64 specific ACPICA environments and implementation
3+
*
4+
* Copyright (C) 2014, Intel Corporation
5+
* Author: Lv Zheng <lv.zheng@intel.com>
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License version 2 as
9+
* published by the Free Software Foundation.
10+
*/
11+
12+
#ifndef _ASM_IA64_ACENV_H
13+
#define _ASM_IA64_ACENV_H
14+
15+
#include <asm/intrinsics.h>
16+
17+
#define COMPILER_DEPENDENT_INT64 long
18+
#define COMPILER_DEPENDENT_UINT64 unsigned long
19+
20+
/* Asm macros */
21+
22+
#ifdef CONFIG_ACPI
23+
24+
static inline int
25+
ia64_acpi_acquire_global_lock(unsigned int *lock)
26+
{
27+
unsigned int old, new, val;
28+
do {
29+
old = *lock;
30+
new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));
31+
val = ia64_cmpxchg4_acq(lock, new, old);
32+
} while (unlikely (val != old));
33+
return (new < 3) ? -1 : 0;
34+
}
35+
36+
static inline int
37+
ia64_acpi_release_global_lock(unsigned int *lock)
38+
{
39+
unsigned int old, new, val;
40+
do {
41+
old = *lock;
42+
new = old & ~0x3;
43+
val = ia64_cmpxchg4_acq(lock, new, old);
44+
} while (unlikely (val != old));
45+
return old & 0x1;
46+
}
47+
48+
#define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \
49+
((Acq) = ia64_acpi_acquire_global_lock(&facs->global_lock))
50+
51+
#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \
52+
((Acq) = ia64_acpi_release_global_lock(&facs->global_lock))
53+
54+
#endif
55+
56+
#endif /* _ASM_IA64_ACENV_H */

‎arch/ia64/include/asm/acpi.h‎

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -34,56 +34,6 @@
3434
#include <linux/numa.h>
3535
#include <asm/numa.h>
3636

37-
#define COMPILER_DEPENDENT_INT64 long
38-
#define COMPILER_DEPENDENT_UINT64 unsigned long
39-
40-
/*
41-
* Calling conventions:
42-
*
43-
* ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
44-
* ACPI_EXTERNAL_XFACE - External ACPI interfaces
45-
* ACPI_INTERNAL_XFACE - Internal ACPI interfaces
46-
* ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
47-
*/
48-
#define ACPI_SYSTEM_XFACE
49-
#define ACPI_EXTERNAL_XFACE
50-
#define ACPI_INTERNAL_XFACE
51-
#define ACPI_INTERNAL_VAR_XFACE
52-
53-
/* Asm macros */
54-
55-
#define ACPI_FLUSH_CPU_CACHE()
56-
57-
static inline int
58-
ia64_acpi_acquire_global_lock (unsigned int *lock)
59-
{
60-
unsigned int old, new, val;
61-
do {
62-
old = *lock;
63-
new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));
64-
val = ia64_cmpxchg4_acq(lock, new, old);
65-
} while (unlikely (val != old));
66-
return (new < 3) ? -1 : 0;
67-
}
68-
69-
static inline int
70-
ia64_acpi_release_global_lock (unsigned int *lock)
71-
{
72-
unsigned int old, new, val;
73-
do {
74-
old = *lock;
75-
new = old & ~0x3;
76-
val = ia64_cmpxchg4_acq(lock, new, old);
77-
} while (unlikely (val != old));
78-
return old & 0x1;
79-
}
80-
81-
#define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \
82-
((Acq) = ia64_acpi_acquire_global_lock(&facs->global_lock))
83-
84-
#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \
85-
((Acq) = ia64_acpi_release_global_lock(&facs->global_lock))
86-
8737
#ifdef CONFIG_ACPI
8838
extern int acpi_lapic;
8939
#define acpi_disabled 0 /* ACPI always enabled on IA64 */

‎arch/x86/include/asm/acenv.h‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* X86 specific ACPICA environments and implementation
3+
*
4+
* Copyright (C) 2014, Intel Corporation
5+
* Author: Lv Zheng <lv.zheng@intel.com>
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License version 2 as
9+
* published by the Free Software Foundation.
10+
*/
11+
12+
#ifndef _ASM_X86_ACENV_H
13+
#define _ASM_X86_ACENV_H
14+
15+
#include <asm/special_insns.h>
16+
17+
/* Asm macros */
18+
19+
#define ACPI_FLUSH_CPU_CACHE() wbinvd()
20+
21+
#ifdef CONFIG_ACPI
22+
23+
int __acpi_acquire_global_lock(unsigned int *lock);
24+
int __acpi_release_global_lock(unsigned int *lock);
25+
26+
#define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \
27+
((Acq) = __acpi_acquire_global_lock(&facs->global_lock))
28+
29+
#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \
30+
((Acq) = __acpi_release_global_lock(&facs->global_lock))
31+
32+
/*
33+
* Math helper asm macros
34+
*/
35+
#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \
36+
asm("divl %2;" \
37+
: "=a"(q32), "=d"(r32) \
38+
: "r"(d32), \
39+
"0"(n_lo), "1"(n_hi))
40+
41+
#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \
42+
asm("shrl $1,%2 ;" \
43+
"rcrl $1,%3;" \
44+
: "=r"(n_hi), "=r"(n_lo) \
45+
: "0"(n_hi), "1"(n_lo))
46+
47+
#endif
48+
49+
#endif /* _ASM_X86_ACENV_H */

‎arch/x86/include/asm/acpi.h‎

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -32,51 +32,6 @@
3232
#include <asm/mpspec.h>
3333
#include <asm/realmode.h>
3434

35-
#define COMPILER_DEPENDENT_INT64 long long
36-
#define COMPILER_DEPENDENT_UINT64 unsigned long long
37-
38-
/*
39-
* Calling conventions:
40-
*
41-
* ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
42-
* ACPI_EXTERNAL_XFACE - External ACPI interfaces
43-
* ACPI_INTERNAL_XFACE - Internal ACPI interfaces
44-
* ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
45-
*/
46-
#define ACPI_SYSTEM_XFACE
47-
#define ACPI_EXTERNAL_XFACE
48-
#define ACPI_INTERNAL_XFACE
49-
#define ACPI_INTERNAL_VAR_XFACE
50-
51-
/* Asm macros */
52-
53-
#define ACPI_FLUSH_CPU_CACHE() wbinvd()
54-
55-
int __acpi_acquire_global_lock(unsigned int *lock);
56-
int __acpi_release_global_lock(unsigned int *lock);
57-
58-
#define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \
59-
((Acq) = __acpi_acquire_global_lock(&facs->global_lock))
60-
61-
#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \
62-
((Acq) = __acpi_release_global_lock(&facs->global_lock))
63-
64-
/*
65-
* Math helper asm macros
66-
*/
67-
#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \
68-
asm("divl %2;" \
69-
: "=a"(q32), "=d"(r32) \
70-
: "r"(d32), \
71-
"0"(n_lo), "1"(n_hi))
72-
73-
74-
#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \
75-
asm("shrl $1,%2 ;" \
76-
"rcrl $1,%3;" \
77-
: "=r"(n_hi), "=r"(n_lo) \
78-
: "0"(n_hi), "1"(n_lo))
79-
8035
#ifdef CONFIG_ACPI
8136
extern int acpi_lapic;
8237
extern int acpi_ioapic;

‎drivers/acpi/acpi_extlog.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ static int __init extlog_init(void)
220220
goto err;
221221
}
222222

223-
extlog_l1_hdr = acpi_os_map_memory(l1_dirbase, l1_hdr_size);
223+
extlog_l1_hdr = acpi_os_map_iomem(l1_dirbase, l1_hdr_size);
224224
l1_head = (struct extlog_l1_head *)extlog_l1_hdr;
225225
l1_size = l1_head->total_len;
226226
l1_percpu_entry = l1_head->entries;
227227
elog_base = l1_head->elog_base;
228228
elog_size = l1_head->elog_len;
229-
acpi_os_unmap_memory(extlog_l1_hdr, l1_hdr_size);
229+
acpi_os_unmap_iomem(extlog_l1_hdr, l1_hdr_size);
230230
release_mem_region(l1_dirbase, l1_hdr_size);
231231

232232
/* remap L1 header again based on completed information */
@@ -237,7 +237,7 @@ static int __init extlog_init(void)
237237
(unsigned long long)l1_dirbase + l1_size);
238238
goto err;
239239
}
240-
extlog_l1_addr = acpi_os_map_memory(l1_dirbase, l1_size);
240+
extlog_l1_addr = acpi_os_map_iomem(l1_dirbase, l1_size);
241241
l1_entry_base = (u64 *)((u8 *)extlog_l1_addr + l1_hdr_size);
242242

243243
/* remap elog table */
@@ -248,7 +248,7 @@ static int __init extlog_init(void)
248248
(unsigned long long)elog_base + elog_size);
249249
goto err_release_l1_dir;
250250
}
251-
elog_addr = acpi_os_map_memory(elog_base, elog_size);
251+
elog_addr = acpi_os_map_iomem(elog_base, elog_size);
252252

253253
rc = -ENOMEM;
254254
/* allocate buffer to save elog record */
@@ -270,11 +270,11 @@ static int __init extlog_init(void)
270270

271271
err_release_elog:
272272
if (elog_addr)
273-
acpi_os_unmap_memory(elog_addr, elog_size);
273+
acpi_os_unmap_iomem(elog_addr, elog_size);
274274
release_mem_region(elog_base, elog_size);
275275
err_release_l1_dir:
276276
if (extlog_l1_addr)
277-
acpi_os_unmap_memory(extlog_l1_addr, l1_size);
277+
acpi_os_unmap_iomem(extlog_l1_addr, l1_size);
278278
release_mem_region(l1_dirbase, l1_size);
279279
err:
280280
pr_warn(FW_BUG "Extended error log disabled because of problems parsing f/w tables\n");
@@ -287,9 +287,9 @@ static void __exit extlog_exit(void)
287287
mce_unregister_decode_chain(&extlog_mce_dec);
288288
((struct extlog_l1_head *)extlog_l1_addr)->flags &= ~FLAG_OS_OPTIN;
289289
if (extlog_l1_addr)
290-
acpi_os_unmap_memory(extlog_l1_addr, l1_size);
290+
acpi_os_unmap_iomem(extlog_l1_addr, l1_size);
291291
if (elog_addr)
292-
acpi_os_unmap_memory(elog_addr, elog_size);
292+
acpi_os_unmap_iomem(elog_addr, elog_size);
293293
release_mem_region(elog_base, elog_size);
294294
release_mem_region(l1_dirbase, l1_size);
295295
kfree(elog_buf);

‎drivers/acpi/acpica/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ acpi-y += \
135135
rsxface.o
136136

137137
acpi-y += \
138+
tbdata.o \
138139
tbfadt.o \
139140
tbfind.o \
140141
tbinstal.o \

0 commit comments

Comments
 (0)