Skip to content

Commit 52cfd50

Browse files
committed
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (59 commits) ACPI / PM: Fix build problems for !CONFIG_ACPI related to NVS rework ACPI: fix resource check message ACPI / Battery: Update information on info notification and resume ACPI: Drop device flag wake_capable ACPI: Always check if _PRW is present before trying to evaluate it ACPI / PM: Check status of power resources under mutexes ACPI / PM: Rename acpi_power_off_device() ACPI / PM: Drop acpi_power_nocheck ACPI / PM: Drop acpi_bus_get_power() Platform / x86: Make fujitsu_laptop use acpi_bus_update_power() ACPI / Fan: Rework the handling of power resources ACPI / PM: Register power resource devices as soon as they are needed ACPI / PM: Register acpi_power_driver early ACPI / PM: Add function for updating device power state consistently ACPI / PM: Add function for device power state initialization ACPI / PM: Introduce __acpi_bus_get_power() ACPI / PM: Introduce function for refcounting device power resources ACPI / PM: Add functions for manipulating lists of power resources ACPI / PM: Prevent acpi_power_get_inferred_state() from making changes ACPICA: Update version to 20101209 ...
2 parents dc8e7e3 + 4263d9a commit 52cfd50

84 files changed

Lines changed: 3373 additions & 1611 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
What: A notification mechanism for thermal related events
2+
Description:
3+
This interface enables notification for thermal related events.
4+
The notification is in the form of a netlink event.

‎Documentation/IPMI.txt‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,33 @@ completion during sending a panic event.
533533
Other Pieces
534534
------------
535535

536+
Get the detailed info related with the IPMI device
537+
--------------------------------------------------
538+
539+
Some users need more detailed information about a device, like where
540+
the address came from or the raw base device for the IPMI interface.
541+
You can use the IPMI smi_watcher to catch the IPMI interfaces as they
542+
come or go, and to grab the information, you can use the function
543+
ipmi_get_smi_info(), which returns the following structure:
544+
545+
struct ipmi_smi_info {
546+
enum ipmi_addr_src addr_src;
547+
struct device *dev;
548+
union {
549+
struct {
550+
void *acpi_handle;
551+
} acpi_info;
552+
} addr_info;
553+
};
554+
555+
Currently special info for only for SI_ACPI address sources is
556+
returned. Others may be added as necessary.
557+
558+
Note that the dev pointer is included in the above structure, and
559+
assuming ipmi_smi_get_info returns success, you must call put_device
560+
on the dev pointer.
561+
562+
536563
Watchdog
537564
--------
538565

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
APEI output format
2+
~~~~~~~~~~~~~~~~~~
3+
4+
APEI uses printk as hardware error reporting interface, the output
5+
format is as follow.
6+
7+
<error record> :=
8+
APEI generic hardware error status
9+
severity: <integer>, <severity string>
10+
section: <integer>, severity: <integer>, <severity string>
11+
flags: <integer>
12+
<section flags strings>
13+
fru_id: <uuid string>
14+
fru_text: <string>
15+
section_type: <section type string>
16+
<section data>
17+
18+
<severity string>* := recoverable | fatal | corrected | info
19+
20+
<section flags strings># :=
21+
[primary][, containment warning][, reset][, threshold exceeded]\
22+
[, resource not accessible][, latent error]
23+
24+
<section type string> := generic processor error | memory error | \
25+
PCIe error | unknown, <uuid string>
26+
27+
<section data> :=
28+
<generic processor section data> | <memory section data> | \
29+
<pcie section data> | <null>
30+
31+
<generic processor section data> :=
32+
[processor_type: <integer>, <proc type string>]
33+
[processor_isa: <integer>, <proc isa string>]
34+
[error_type: <integer>
35+
<proc error type strings>]
36+
[operation: <integer>, <proc operation string>]
37+
[flags: <integer>
38+
<proc flags strings>]
39+
[level: <integer>]
40+
[version_info: <integer>]
41+
[processor_id: <integer>]
42+
[target_address: <integer>]
43+
[requestor_id: <integer>]
44+
[responder_id: <integer>]
45+
[IP: <integer>]
46+
47+
<proc type string>* := IA32/X64 | IA64
48+
49+
<proc isa string>* := IA32 | IA64 | X64
50+
51+
<processor error type strings># :=
52+
[cache error][, TLB error][, bus error][, micro-architectural error]
53+
54+
<proc operation string>* := unknown or generic | data read | data write | \
55+
instruction execution
56+
57+
<proc flags strings># :=
58+
[restartable][, precise IP][, overflow][, corrected]
59+
60+
<memory section data> :=
61+
[error_status: <integer>]
62+
[physical_address: <integer>]
63+
[physical_address_mask: <integer>]
64+
[node: <integer>]
65+
[card: <integer>]
66+
[module: <integer>]
67+
[bank: <integer>]
68+
[device: <integer>]
69+
[row: <integer>]
70+
[column: <integer>]
71+
[bit_position: <integer>]
72+
[requestor_id: <integer>]
73+
[responder_id: <integer>]
74+
[target_id: <integer>]
75+
[error_type: <integer>, <mem error type string>]
76+
77+
<mem error type string>* :=
78+
unknown | no error | single-bit ECC | multi-bit ECC | \
79+
single-symbol chipkill ECC | multi-symbol chipkill ECC | master abort | \
80+
target abort | parity error | watchdog timeout | invalid address | \
81+
mirror Broken | memory sparing | scrub corrected error | \
82+
scrub uncorrected error
83+
84+
<pcie section data> :=
85+
[port_type: <integer>, <pcie port type string>]
86+
[version: <integer>.<integer>]
87+
[command: <integer>, status: <integer>]
88+
[device_id: <integer>:<integer>:<integer>.<integer>
89+
slot: <integer>
90+
secondary_bus: <integer>
91+
vendor_id: <integer>, device_id: <integer>
92+
class_code: <integer>]
93+
[serial number: <integer>, <integer>]
94+
[bridge: secondary_status: <integer>, control: <integer>]
95+
96+
<pcie port type string>* := PCIe end point | legacy PCI end point | \
97+
unknown | unknown | root port | upstream switch port | \
98+
downstream switch port | PCIe to PCI/PCI-X bridge | \
99+
PCI/PCI-X to PCIe bridge | root complex integrated endpoint device | \
100+
root complex event collector
101+
102+
Where, [] designate corresponding content is optional
103+
104+
All <field string> description with * has the following format:
105+
106+
field: <integer>, <field string>
107+
108+
Where value of <integer> should be the position of "string" in <field
109+
string> description. Otherwise, <field string> will be "unknown".
110+
111+
All <field strings> description with # has the following format:
112+
113+
field: <integer>
114+
<field strings>
115+
116+
Where each string in <fields strings> corresponding to one set bit of
117+
<integer>. The bit position is the position of "string" in <field
118+
strings> description.
119+
120+
For more detailed explanation of every field, please refer to UEFI
121+
specification version 2.3 or later, section Appendix N: Common
122+
Platform Error Record.

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,17 @@ Who: Zhang Rui <rui.zhang@intel.com>
248248

249249
---------------------------
250250

251+
What: CONFIG_ACPI_PROCFS_POWER
252+
When: 2.6.39
253+
Why: sysfs I/F for ACPI power devices, including AC and Battery,
254+
has been working in upstream kenrel since 2.6.24, Sep 2007.
255+
In 2.6.37, we make the sysfs I/F always built in and this option
256+
disabled by default.
257+
Remove this option and the ACPI power procfs interface in 2.6.39.
258+
Who: Zhang Rui <rui.zhang@intel.com>
259+
260+
---------------------------
261+
251262
What: /proc/acpi/button
252263
When: August 2007
253264
Why: /proc/acpi/button has been replaced by events to the input layer

‎Documentation/kernel-parameters.txt‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,6 @@ and is between 256 and 4096 characters. It is defined in the file
199199
unusable. The "log_buf_len" parameter may be useful
200200
if you need to capture more output.
201201

202-
acpi_display_output= [HW,ACPI]
203-
acpi_display_output=vendor
204-
acpi_display_output=video
205-
See above.
206-
207202
acpi_irq_balance [HW,ACPI]
208203
ACPI will balance active IRQs
209204
default in APIC mode

‎Documentation/thermal/sysfs-api.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,15 @@ method, the sys I/F structure will be built like this:
278278
|---name: acpitz
279279
|---temp1_input: 37000
280280
|---temp1_crit: 100000
281+
282+
4. Event Notification
283+
284+
The framework includes a simple notification mechanism, in the form of a
285+
netlink event. Netlink socket initialization is done during the _init_
286+
of the framework. Drivers which intend to use the notification mechanism
287+
just need to call generate_netlink_event() with two arguments viz
288+
(originator, event). Typically the originator will be an integer assigned
289+
to a thermal_zone_device when it registers itself with the framework. The
290+
event will be one of:{THERMAL_AUX0, THERMAL_AUX1, THERMAL_CRITICAL,
291+
THERMAL_DEV_FAULT}. Notification can be sent when the current temperature
292+
crosses any of the configured thresholds.

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size)
426426
extern void iounmap (volatile void __iomem *addr);
427427
extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size);
428428
extern void early_iounmap (volatile void __iomem *addr, unsigned long size);
429+
static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size)
430+
{
431+
return ioremap(phys_addr, size);
432+
}
433+
429434

430435
/*
431436
* String version of IO memory access ops:

‎arch/x86/kernel/acpi/boot.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ int acpi_gsi_to_irq(u32 gsi, unsigned int *irq)
509509

510510
return 0;
511511
}
512+
EXPORT_SYMBOL_GPL(acpi_gsi_to_irq);
512513

513514
int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi)
514515
{

‎arch/x86/kernel/dumpstack.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ unsigned __kprobes long oops_begin(void)
234234
bust_spinlocks(1);
235235
return flags;
236236
}
237+
EXPORT_SYMBOL_GPL(oops_begin);
237238

238239
void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
239240
{

‎arch/x86/kernel/e820.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/bootmem.h>
1515
#include <linux/pfn.h>
1616
#include <linux/suspend.h>
17+
#include <linux/acpi.h>
1718
#include <linux/firmware-map.h>
1819
#include <linux/memblock.h>
1920

0 commit comments

Comments
 (0)