Skip to content

Commit 765426e

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: (123 commits) dock: make dock driver not a module ACPI: fix ia64 build warning ACPI: hack around sysfs warning with link order ACPI suspend: fix build warning when CONFIG_ACPI_SLEEP=n intel_menlo: fix build warning panasonic-laptop: fix build ACPICA: Update version to 20080926 ACPICA: Add support for zero-length buffer-to-string conversions ACPICA: New: Validation for predefined ACPI methods/objects ACPICA: Fix for implicit return compatibility ACPICA: Fixed a couple memory leaks associated with "implicit return" ACPICA: Optimize buffer allocation procedure ACPICA: Fix possible memory leak, error exit path ACPICA: Fix fault after mem allocation failure in AML parser ACPICA: Remove unused ACPI register bit definition ACPICA: Update version to 20080829 ACPICA: Fix possible memory leak in acpi_ns_get_external_pathname ACPICA: Cleanup for internal Reference Object ACPICA: Update comments - no functional changes ACPICA: Update for Reference ACPI_OPERAND_OBJECT ...
2 parents 36ec891 + 898b054 commit 765426e

145 files changed

Lines changed: 5917 additions & 2212 deletions

File tree

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: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,47 @@ and is between 256 and 4096 characters. It is defined in the file
218218
acpi.debug_level= [HW,ACPI]
219219
Format: <int>
220220
Each bit of the <int> indicates an ACPI debug level,
221-
1: enable, 0: disable. It is useful for boot time
222-
debugging. After system has booted up, it can be set
223-
via /sys/module/acpi/parameters/debug_level.
224-
CONFIG_ACPI_DEBUG must be enabled for this to produce any output.
225-
Available bits (add the numbers together) to enable different
226-
debug output levels of the ACPI subsystem:
227-
0x01 error 0x02 warn 0x04 init 0x08 debug object
228-
0x10 info 0x20 init names 0x40 parse 0x80 load
229-
0x100 dispatch 0x200 execute 0x400 names 0x800 operation region
230-
0x1000 bfield 0x2000 tables 0x4000 values 0x8000 objects
231-
0x10000 resources 0x20000 user requests 0x40000 package.
232-
The number can be in decimal or prefixed with 0x in hex.
233-
Warning: Many of these options can produce a lot of
234-
output and make your system unusable. Be very careful.
221+
which corresponds to the level in an ACPI_DEBUG_PRINT
222+
statement. After system has booted up, this mask
223+
can be set via /sys/module/acpi/parameters/debug_level.
224+
225+
CONFIG_ACPI_DEBUG must be enabled for this to produce
226+
any output. The number can be in decimal or prefixed
227+
with 0x in hex. Some of these options produce so much
228+
output that the system is unusable.
229+
230+
The following global components are defined by the
231+
ACPI CA:
232+
0x01 error
233+
0x02 warn
234+
0x04 init
235+
0x08 debug object
236+
0x10 info
237+
0x20 init names
238+
0x40 parse
239+
0x80 load
240+
0x100 dispatch
241+
0x200 execute
242+
0x400 names
243+
0x800 operation region
244+
0x1000 bfield
245+
0x2000 tables
246+
0x4000 values
247+
0x8000 objects
248+
0x10000 resources
249+
0x20000 user requests
250+
0x40000 package
251+
The number can be in decimal or prefixed with 0x in hex.
252+
Warning: Many of these options can produce a lot of
253+
output and make your system unusable. Be very careful.
254+
255+
acpi.power_nocheck= [HW,ACPI]
256+
Format: 1/0 enable/disable the check of power state.
257+
On some bogus BIOS the _PSC object/_STA object of
258+
power resource can't return the correct device power
259+
state. In such case it is unneccessary to check its
260+
power state again in power transition.
261+
1 : disable the power state check
235262

236263
acpi_pm_good [X86-32,X86-64]
237264
Override the pmtimer bug detection: force the kernel
@@ -1711,6 +1738,10 @@ and is between 256 and 4096 characters. It is defined in the file
17111738
Override pmtimer IOPort with a hex value.
17121739
e.g. pmtmr=0x508
17131740

1741+
pnp.debug [PNP]
1742+
Enable PNP debug messages. This depends on the
1743+
CONFIG_PNP_DEBUG_MESSAGES option.
1744+
17141745
pnpacpi= [ACPI]
17151746
{ off }
17161747

@@ -2208,7 +2239,7 @@ and is between 256 and 4096 characters. It is defined in the file
22082239

22092240
thermal.crt= [HW,ACPI]
22102241
-1: disable all critical trip points in all thermal zones
2211-
<degrees C>: lower all critical trip points
2242+
<degrees C>: override all critical trip points
22122243

22132244
thermal.nocrt= [HW,ACPI]
22142245
Set to disable actions on ACPI thermal zone

‎Documentation/laptops/acer-wmi.txt‎

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Acer Laptop WMI Extras Driver
22
http://code.google.com/p/aceracpi
3-
Version 0.1
4-
9th February 2008
3+
Version 0.2
4+
18th August 2008
55

66
Copyright 2007-2008 Carlos Corbacho <carlos@strangeworlds.co.uk>
77

@@ -87,17 +87,7 @@ acer-wmi come with built-in wireless. However, should you feel so inclined to
8787
ever wish to remove the card, or swap it out at some point, please get in touch
8888
with me, as we may well be able to gain some data on wireless card detection.
8989

90-
To read the status of the wireless radio (0=off, 1=on):
91-
cat /sys/devices/platform/acer-wmi/wireless
92-
93-
To enable the wireless radio:
94-
echo 1 > /sys/devices/platform/acer-wmi/wireless
95-
96-
To disable the wireless radio:
97-
echo 0 > /sys/devices/platform/acer-wmi/wireless
98-
99-
To set the state of the wireless radio when loading acer-wmi, pass:
100-
wireless=X (where X is 0 or 1)
90+
The wireless radio is exposed through rfkill.
10191

10292
Bluetooth
10393
*********
@@ -117,17 +107,7 @@ For the adventurously minded - if you want to buy an internal bluetooth
117107
module off the internet that is compatible with your laptop and fit it, then
118108
it will work just fine with acer-wmi.
119109

120-
To read the status of the bluetooth module (0=off, 1=on):
121-
cat /sys/devices/platform/acer-wmi/wireless
122-
123-
To enable the bluetooth module:
124-
echo 1 > /sys/devices/platform/acer-wmi/bluetooth
125-
126-
To disable the bluetooth module:
127-
echo 0 > /sys/devices/platform/acer-wmi/bluetooth
128-
129-
To set the state of the bluetooth module when loading acer-wmi, pass:
130-
bluetooth=X (where X is 0 or 1)
110+
Bluetooth is exposed through rfkill.
131111

132112
3G
133113
**

‎MAINTAINERS‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,8 @@ M: rdunlap@xenotime.net
14331433
S: Maintained
14341434

14351435
DOCKING STATION DRIVER
1436-
P: Kristen Carlson Accardi
1437-
M: kristen.c.accardi@intel.com
1436+
P: Shaohua Li
1437+
M: shaohua.li@intel.com
14381438
L: linux-acpi@vger.kernel.org
14391439
S: Supported
14401440

@@ -2109,6 +2109,12 @@ L: linux-ide@vger.kernel.org
21092109
L: linux-scsi@vger.kernel.org
21102110
S: Orphan
21112111

2112+
IDLE-I7300
2113+
P: Andy Henroid
2114+
M: andrew.d.henroid@intel.com
2115+
L: linux-pm@lists.linux-foundation.org
2116+
S: Supported
2117+
21122118
IEEE 1394 SUBSYSTEM (drivers/ieee1394)
21132119
P: Ben Collins
21142120
M: ben.collins@ubuntu.com
@@ -3186,6 +3192,11 @@ M: olof@lixom.net
31863192
L: i2c@lm-sensors.org
31873193
S: Maintained
31883194

3195+
PANASONIC LAPTOP ACPI EXTRAS DRIVER
3196+
P: Harald Welte
3197+
M: laforge@gnumonks.org
3198+
S: Maintained
3199+
31893200
PANASONIC MN10300/AM33 PORT
31903201
P: David Howells
31913202
M: dhowells@redhat.com

‎arch/ia64/sn/kernel/io_acpi_init.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ sn_extract_device_info(acpi_handle handle, struct pcidev_info **pcidev_info,
232232
static unsigned int
233233
get_host_devfn(acpi_handle device_handle, acpi_handle rootbus_handle)
234234
{
235-
unsigned long adr;
235+
unsigned long long adr;
236236
acpi_handle child;
237237
unsigned int devfn;
238238
int function;
@@ -292,8 +292,8 @@ get_host_devfn(acpi_handle device_handle, acpi_handle rootbus_handle)
292292
static acpi_status
293293
find_matching_device(acpi_handle handle, u32 lvl, void *context, void **rv)
294294
{
295-
unsigned long bbn = -1;
296-
unsigned long adr;
295+
unsigned long long bbn = -1;
296+
unsigned long long adr;
297297
acpi_handle parent = NULL;
298298
acpi_status status;
299299
unsigned int devfn;
@@ -348,7 +348,7 @@ sn_acpi_get_pcidev_info(struct pci_dev *dev, struct pcidev_info **pcidev_info,
348348
unsigned int host_devfn;
349349
struct sn_pcidev_match pcidev_match;
350350
acpi_handle rootbus_handle;
351-
unsigned long segment;
351+
unsigned long long segment;
352352
acpi_status status;
353353

354354
rootbus_handle = PCI_CONTROLLER(dev)->acpi_handle;
@@ -357,7 +357,7 @@ sn_acpi_get_pcidev_info(struct pci_dev *dev, struct pcidev_info **pcidev_info,
357357
if (ACPI_SUCCESS(status)) {
358358
if (segment != pci_domain_nr(dev)) {
359359
printk(KERN_ERR
360-
"%s: Segment number mismatch, 0x%lx vs 0x%x for: ",
360+
"%s: Segment number mismatch, 0x%llx vs 0x%x for: ",
361361
__func__, segment, pci_domain_nr(dev));
362362
acpi_ns_print_node_pathname(rootbus_handle, NULL);
363363
printk("\n");

‎arch/x86/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ config GENERIC_TIME_VSYSCALL
116116
config ARCH_HAS_CPU_RELAX
117117
def_bool y
118118

119+
config ARCH_HAS_DEFAULT_IDLE
120+
def_bool y
121+
119122
config ARCH_HAS_CACHE_LINE_SIZE
120123
def_bool y
121124

@@ -1635,6 +1638,8 @@ source "arch/x86/kernel/cpu/cpufreq/Kconfig"
16351638

16361639
source "drivers/cpuidle/Kconfig"
16371640

1641+
source "drivers/idle/Kconfig"
1642+
16381643
endmenu
16391644

16401645

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,13 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size)
153153
}
154154

155155
#ifdef CONFIG_PCI_MMCONFIG
156+
157+
static int acpi_mcfg_64bit_base_addr __initdata = FALSE;
158+
156159
/* The physical address of the MMCONFIG aperture. Set from ACPI tables. */
157160
struct acpi_mcfg_allocation *pci_mmcfg_config;
158161
int pci_mmcfg_config_num;
159162

160-
static int acpi_mcfg_64bit_base_addr __initdata = FALSE;
161-
162163
static int __init acpi_mcfg_oem_check(struct acpi_table_mcfg *mcfg)
163164
{
164165
if (!strcmp(mcfg->header.oem_id, "SGI"))

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ unsigned long acpi_realmode_flags;
2222
static unsigned long acpi_realmode;
2323

2424
#if defined(CONFIG_SMP) && defined(CONFIG_64BIT)
25-
static char temp_stack[10240];
25+
static char temp_stack[4096];
2626
#endif
2727

2828
/**
@@ -98,7 +98,7 @@ int acpi_save_state_mem(void)
9898
#else /* CONFIG_64BIT */
9999
header->trampoline_segment = setup_trampoline() >> 4;
100100
#ifdef CONFIG_SMP
101-
stack_start.sp = temp_stack + 4096;
101+
stack_start.sp = temp_stack + sizeof(temp_stack);
102102
early_gdt_descr.address =
103103
(unsigned long)get_cpu_gdt_table(smp_processor_id());
104104
#endif

‎arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ static int __init acpi_cpufreq_init(void)
780780
{
781781
int ret;
782782

783+
if (acpi_disabled)
784+
return 0;
785+
783786
dprintk("acpi_cpufreq_init\n");
784787

785788
ret = acpi_cpufreq_early_init();

‎arch/x86/kernel/cpu/cpufreq/powernow-k8.c‎

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#endif
4646

4747
#define PFX "powernow-k8: "
48-
#define BFX PFX "BIOS error: "
4948
#define VERSION "version 2.20.00"
5049
#include "powernow-k8.h"
5150

@@ -536,35 +535,40 @@ static int check_pst_table(struct powernow_k8_data *data, struct pst_s *pst, u8
536535

537536
for (j = 0; j < data->numps; j++) {
538537
if (pst[j].vid > LEAST_VID) {
539-
printk(KERN_ERR PFX "vid %d invalid : 0x%x\n", j, pst[j].vid);
538+
printk(KERN_ERR FW_BUG PFX "vid %d invalid : 0x%x\n",
539+
j, pst[j].vid);
540540
return -EINVAL;
541541
}
542542
if (pst[j].vid < data->rvo) { /* vid + rvo >= 0 */
543-
printk(KERN_ERR BFX "0 vid exceeded with pstate %d\n", j);
543+
printk(KERN_ERR FW_BUG PFX "0 vid exceeded with pstate"
544+
" %d\n", j);
544545
return -ENODEV;
545546
}
546547
if (pst[j].vid < maxvid + data->rvo) { /* vid + rvo >= maxvid */
547-
printk(KERN_ERR BFX "maxvid exceeded with pstate %d\n", j);
548+
printk(KERN_ERR FW_BUG PFX "maxvid exceeded with pstate"
549+
" %d\n", j);
548550
return -ENODEV;
549551
}
550552
if (pst[j].fid > MAX_FID) {
551-
printk(KERN_ERR BFX "maxfid exceeded with pstate %d\n", j);
553+
printk(KERN_ERR FW_BUG PFX "maxfid exceeded with pstate"
554+
" %d\n", j);
552555
return -ENODEV;
553556
}
554557
if (j && (pst[j].fid < HI_FID_TABLE_BOTTOM)) {
555558
/* Only first fid is allowed to be in "low" range */
556-
printk(KERN_ERR BFX "two low fids - %d : 0x%x\n", j, pst[j].fid);
559+
printk(KERN_ERR FW_BUG PFX "two low fids - %d : "
560+
"0x%x\n", j, pst[j].fid);
557561
return -EINVAL;
558562
}
559563
if (pst[j].fid < lastfid)
560564
lastfid = pst[j].fid;
561565
}
562566
if (lastfid & 1) {
563-
printk(KERN_ERR BFX "lastfid invalid\n");
567+
printk(KERN_ERR FW_BUG PFX "lastfid invalid\n");
564568
return -EINVAL;
565569
}
566570
if (lastfid > LO_FID_TABLE_TOP)
567-
printk(KERN_INFO BFX "first fid not from lo freq table\n");
571+
printk(KERN_INFO FW_BUG PFX "first fid not from lo freq table\n");
568572

569573
return 0;
570574
}
@@ -672,13 +676,13 @@ static int find_psb_table(struct powernow_k8_data *data)
672676

673677
dprintk("table vers: 0x%x\n", psb->tableversion);
674678
if (psb->tableversion != PSB_VERSION_1_4) {
675-
printk(KERN_ERR BFX "PSB table is not v1.4\n");
679+
printk(KERN_ERR FW_BUG PFX "PSB table is not v1.4\n");
676680
return -ENODEV;
677681
}
678682

679683
dprintk("flags: 0x%x\n", psb->flags1);
680684
if (psb->flags1) {
681-
printk(KERN_ERR BFX "unknown flags\n");
685+
printk(KERN_ERR FW_BUG PFX "unknown flags\n");
682686
return -ENODEV;
683687
}
684688

@@ -705,7 +709,7 @@ static int find_psb_table(struct powernow_k8_data *data)
705709
}
706710
}
707711
if (cpst != 1) {
708-
printk(KERN_ERR BFX "numpst must be 1\n");
712+
printk(KERN_ERR FW_BUG PFX "numpst must be 1\n");
709713
return -ENODEV;
710714
}
711715

@@ -1130,17 +1134,19 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
11301134
"ACPI Processor module before starting this "
11311135
"driver.\n");
11321136
#else
1133-
printk(KERN_ERR PFX "Your BIOS does not provide ACPI "
1134-
"_PSS objects in a way that Linux understands. "
1135-
"Please report this to the Linux ACPI maintainers"
1136-
" and complain to your BIOS vendor.\n");
1137+
printk(KERN_ERR FW_BUG PFX "Your BIOS does not provide"
1138+
" ACPI _PSS objects in a way that Linux "
1139+
"understands. Please report this to the Linux "
1140+
"ACPI maintainers and complain to your BIOS "
1141+
"vendor.\n");
11371142
#endif
11381143
kfree(data);
11391144
return -ENODEV;
11401145
}
11411146
if (pol->cpu != 0) {
1142-
printk(KERN_ERR PFX "No ACPI _PSS objects for CPU other than "
1143-
"CPU0. Complain to your BIOS vendor.\n");
1147+
printk(KERN_ERR FW_BUG PFX "No ACPI _PSS objects for "
1148+
"CPU other than CPU0. Complain to your BIOS "
1149+
"vendor.\n");
11441150
kfree(data);
11451151
return -ENODEV;
11461152
}
@@ -1193,7 +1199,7 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
11931199

11941200
/* min/max the cpu is capable of */
11951201
if (cpufreq_frequency_table_cpuinfo(pol, data->powernow_table)) {
1196-
printk(KERN_ERR PFX "invalid powernow_table\n");
1202+
printk(KERN_ERR FW_BUG PFX "invalid powernow_table\n");
11971203
powernow_k8_cpu_exit_acpi(data);
11981204
kfree(data->powernow_table);
11991205
kfree(data);

0 commit comments

Comments
 (0)