Re: ACPI issue

2007-08-16 Thread Len Brown
On Wednesday 15 August 2007 18:12, Robert Gomulka wrote: Hello, I have just bought Compaq 572US laptop with AMD X64 dual core on board. I installed Debian Etch on it. After first reboot I experienced many problems with system freeze at many random moments. I had no idea what to do, as a

[PATCH] ACPI: boot correctly with nosmp or maxcpus=0

2007-08-16 Thread Len Brown
From: Len Brown [EMAIL PROTECTED] In MPS mode, nosmp and maxcpus=0 boot a UP kernel with IOAPIC disabled. However, in ACPI mode, these parameters didn't completely disable the IO APIC initialization code and boot failed. init/main.c: Disable the IO_APIC if nosmp or maxcpus=0

Re: [linux-pm] [PATCH] ACPI: Make pnpacpi_suspend handle errors

2007-08-16 Thread Pavel Machek
Hi! pnpacpi_suspend() doesn't check the result returned by acpi_pm_device_sleep_state() before passing it to acpi_bus_set_power(), which may not be desirable. Make it select the target power state of the device using its second argument if acpi_pm_device_sleep_state() fails.

[PATCH] FS: file name should be unique in the same dir in procfs

2007-08-16 Thread Zhang Rui
Files name should be unique in the same directory. Bug is reported here: http://bugzilla.kernel.org/show_bug.cgi?id=8798 Signed-off-by: Zhang Rui [EMAIL PROTECTED] --- fs/proc/generic.c |8 1 file changed, 8 insertions(+) Index: linux-2.6.23-rc3/fs/proc/generic.c

Re: [PATCH] [-mm] ACPI: use GFP_KERNEL instead of GFP_ATOMIC

2007-08-16 Thread Mattia Dongili
On Thu, Aug 16, 2007 at 12:06:18PM +0800, Zhang Rui wrote: On Thu, 2007-08-16 at 11:36 +0800, Len Brown wrote: On Tuesday 31 July 2007 19:00, Zhang Rui wrote: Use GFP_KERNEL instead of GFP_ATOMIC. GFP_ATOMIC is still needed by the sonypi and sony-laptop driver. Why? Sony can't

Re: fan problem on new mainboard

2007-08-16 Thread Thomas Renninger
On Sat, 2007-08-11 at 17:13 +0200, Robert Lemmen wrote: On Thu, Aug 09, 2007 at 06:01:29PM +0800, Zhang Rui wrote: Hi, Robert, Please attach the full _dmesg_ output as well as the acpidump. sorry for the delay, the list seems to eat mails with lareg attachemnts, therefore you can find the

[PATCH 02/12] ACPI: Battery: don't use acpi_extract_package()

2007-08-16 Thread Alexey Starikovskiy
acpi_extract_package() creates more problems with memory management than solves as helper for package handling. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 309 +++- 1 files changed, 123 insertions(+), 186

[PATCH 05/12] ACPI: Battery: Add sysfs support

2007-08-16 Thread Alexey Starikovskiy
Refer to Documentation/power_supply_class.txt for interface description. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 201 +++- 1 files changed, 179 insertions(+), 22 deletions(-) diff --git

[PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] acpi_bus_generate_event() takes two strings out of passed device object. SBS needs to supply these strings directly. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/bus.c | 25 -

[PATCH 07/12] ACPI: EC: Add new query handler to list head.

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/ec.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 56bee9e..25a84af 100644 --- a/drivers/acpi/ec.c +++

[PATCH 08/12] ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002)

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Replace poll-based host controller driver with the notify-based one. Split it out of sbs.c. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/Makefile |1 drivers/acpi/sbs.c| 374

[PATCH 09/12] ACPI: SBS: Simplify data structures in SBS

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 280 +--- 1 files changed, 134 insertions(+), 146 deletions(-) diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index

[PATCH 11/12] ACPI: SBS: Add support for power_supply class (and sysfs)

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Add support for power_supply class and sysfs interface of it. Refer to Documentation/power_supply_class.txt for interface description. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 331

[PATCH 10/12] ACPI: SBS: Make SBS reads table-driven.

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Re-factor SBS functions to use tables and cycles for repeated operations. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 1286 +++- 1 files changed, 275 insertions(+), 1011

RE: scripts/mod/file2alias.c cross compile problem

2007-08-16 Thread Thomas Renninger
On Fri, 2007-08-03 at 08:08 +1000, Rusty Russell wrote: On Thu, 2007-08-02 at 09:25 -0700, Luck, Tony wrote: Adrian Bunk: scripts/mod/file2alias.c is compiled with HOSTCC and ensures that kernel_ulong_t is correct, but it can't cope with different padding on different architectures.

[PATCH 12/12] ACPI: SBS: Add ACPI_PROCFS around procfs handling code.

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Make procfs support optional under ACPI_PROCFS Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/sbs.c

[PATCH 01/12] ACPI: AC: Add sysfs interface

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Refer to Documentation/power_supply_class.txt for interface description. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/ac.c | 49 +++-- 1 files changed, 47 insertions(+), 2

[PATCH 03/12] ACPI: Battery: simplify update scheme

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 274 +--- 1 files changed, 52 insertions(+), 222 deletions(-) diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c

[PATCH 02/12] ACPI: Battery: don't use acpi_extract_package()

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] acpi_extract_package() creates more problems with memory management than solves as helper for package handling. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 309 +++- 1

[PATCH 05/12] ACPI: Battery: Add sysfs support

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Refer to Documentation/power_supply_class.txt for interface description. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 201 +++- 1 files changed, 179 insertions(+), 22

[PATCH 04/12] ACPI: Battery: Misc clean-ups, no functional changes

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 346 +--- 1 files changed, 126 insertions(+), 220 deletions(-) diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c

[PATCH 09/12] ACPI: SBS: Simplify data structures in SBS

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 280 +--- 1 files changed, 134 insertions(+), 146 deletions(-) diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index

[PATCH 11/12] ACPI: SBS: Add support for power_supply class (and sysfs)

2007-08-16 Thread Alexey Starikovskiy
Add support for power_supply class and sysfs interface of it. Refer to Documentation/power_supply_class.txt for interface description. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 331 +++- 1 files changed, 250

[PATCH 12/12] ACPI: SBS: Add ACPI_PROCFS around procfs handling code.

2007-08-16 Thread Alexey Starikovskiy
Make procfs support optional under ACPI_PROCFS Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index 87bee1e..7db85a9 100644 ---

[PATCH 10/12] ACPI: SBS: Make SBS reads table-driven.

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Re-factor SBS functions to use tables and cycles for repeated operations. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 1286 +++- 1 files changed, 275 insertions(+), 1011

[PATCH 07/12] ACPI: EC: Add new query handler to list head.

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/ec.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 56bee9e..25a84af 100644 --- a/drivers/acpi/ec.c +++

[PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] acpi_bus_generate_event() takes two strings out of passed device object. SBS needs to supply these strings directly. Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/bus.c | 25 -

dmidecode report

2007-08-16 Thread Brian ABTrafco
# dmidecode 2.8 SMBIOS 2.4 present. 34 structures occupying 1157 bytes. Table at 0x000DC010. Handle 0x, DMI type 0, 24 bytes BIOS Information Vendor: Phoenix Technologies LTD Version: NAPA0001.86C..D.0704231854 Release Date: 04/23/2007 Address: 0xE5850

dmidecode output

2007-08-16 Thread John Haywood
# dmidecode 2.9 SMBIOS 2.4 present. 47 structures occupying 2141 bytes. Table at 0x000E. Handle 0x, DMI type 4, 35 bytes Processor Information Socket Designation: U2E1 Type: Central Processor Family: Unknown Manufacturer: Intel(R) Corporation ID:

[PATCH] Fix rmmod of asus_laptop

2007-08-16 Thread Guillaume Chazarain
[Resent, with a bigger recipients list] Hi, The asus laptop driver conditionnaly registers leds in asus_led_register() depending on their availability, but unconditionnaly registers them all at exit time or when the module fails to load. Unregistering not registered leds result in the following

RE: scripts/mod/file2alias.c cross compile problem

2007-08-16 Thread Luck, Tony
-#define ACPI_ID_LEN 9 +#define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ What will happen if someone uses more than 9 bytes? With the old limit there would be a compile time error it someone initialized with: {PNP0C0ABCDEFGH, 0}, But if we change ACPI_ID_LEN

Re: [PATCH] ACPI: boot correctly with nosmp or maxcpus=0

2007-08-16 Thread Andi Kleen
@@ -157,10 +162,13 @@ early_param(nosmp, nosmp); static int __init maxcpus(char *str) { get_option(str, max_cpus); - return 1; + if (max_cpus == 0) + disable_ioapic_setup(); I must say I never liked that maxcpus=0 ... does disable the APIC too. There can be

[PATCH 12/12] ACPI: SBS: Add ACPI_PROCFS around procfs handling code.

2007-08-16 Thread Alexey Starikovskiy
Make procfs support optional under ACPI_PROCFS Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/sbs.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index 87bee1e..abf7b94 100644 ---

ACPI: Battery: Add alarm sysfs support

2007-08-16 Thread Alexey Starikovskiy
From: Alexey Starikovskiy [EMAIL PROTECTED] Signed-off-by: Alexey Starikovskiy [EMAIL PROTECTED] --- drivers/acpi/battery.c | 36 +++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index

Re: [PATCH] ACPI: boot correctly with nosmp or maxcpus=0

2007-08-16 Thread Len Brown
On Thursday 16 August 2007 15:36, Andi Kleen wrote: @@ -157,10 +162,13 @@ early_param(nosmp, nosmp); static int __init maxcpus(char *str) { get_option(str, max_cpus); - return 1; + if (max_cpus == 0) + disable_ioapic_setup(); I must say I never liked that

Re: [PATCH] ACPI: boot correctly with nosmp or maxcpus=0

2007-08-16 Thread Andi Kleen
On Friday 17 August 2007 01:06:47 Len Brown wrote: On Thursday 16 August 2007 15:36, Andi Kleen wrote: @@ -157,10 +162,13 @@ early_param(nosmp, nosmp); static int __init maxcpus(char *str) { get_option(str, max_cpus); - return 1; + if (max_cpus == 0) +

BIOS update breaks HP2125nr backlight keys

2007-08-16 Thread Ryan May
Hi, I recently updated the BIOS on my HP Pavilion dv2125nr laptop to F.34 (to enable the virtualization instructions). Since I did this, the Fn keys to control brightness have failed to work properly under Linux, though they work fine before booting (ie. at Grub). Hitting the Fn keys caused the

Re: [PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Zhang Rui
On Thu, 2007-08-16 at 18:03 +0400, Alexey Starikovskiy wrote: From: Alexey Starikovskiy [EMAIL PROTECTED] acpi_bus_generate_event() takes two strings out of passed device object. SBS needs to supply these strings directly. This doesn't make sense. acpi_dev-dev.bus_id is the name we are

Re: [PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Alexey Starikovskiy
Zhang Rui wrote: On Thu, 2007-08-16 at 18:03 +0400, Alexey Starikovskiy wrote: From: Alexey Starikovskiy [EMAIL PROTECTED] acpi_bus_generate_event() takes two strings out of passed device object. SBS needs to supply these strings directly. This doesn't make sense. acpi_dev-dev.bus_id is

Re: [PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Alexey Starikovskiy
Alexey Starikovskiy wrote: Zhang Rui wrote: On Thu, 2007-08-16 at 18:03 +0400, Alexey Starikovskiy wrote: From: Alexey Starikovskiy [EMAIL PROTECTED] acpi_bus_generate_event() takes two strings out of passed device object. SBS needs to supply these strings directly. This