Re: [GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
On Monday 11 February 2008 09:17:43 Ingo Molnar wrote: > no, it does not help - see the attached .config and the crash.log. Thanks Ingo - the cause of the crash is ACPI being disabled on your system for some reason. I can reproduce your crash every time here with acpi=off. The two WMI based drivers (acer-wmi, tc1100-wmi) in the kernel both need a simple patch each to fix this - patches to follow. -Carlos -- E-Mail: [EMAIL PROTECTED] Web: strangeworlds.co.uk GPG Key ID: 0x23EE722D -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
On Monday 11 February 2008 09:17:43 Ingo Molnar wrote: no, it does not help - see the attached .config and the crash.log. Thanks Ingo - the cause of the crash is ACPI being disabled on your system for some reason. I can reproduce your crash every time here with acpi=off. The two WMI based drivers (acer-wmi, tc1100-wmi) in the kernel both need a simple patch each to fix this - patches to follow. -Carlos -- E-Mail: [EMAIL PROTECTED] Web: strangeworlds.co.uk GPG Key ID: 0x23EE722D -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
On Saturday 09 February 2008 06:19:36 Ingo Molnar wrote: > (Carlos Cc:-ed too) > > * Ingo Molnar <[EMAIL PROTECTED]> wrote: > > * Len Brown <[EMAIL PROTECTED]> wrote: > > > Len Brown (6): > > > ACPI: add newline to printk > > > ACPI: build WMI on X86 only > > > acer-wmi, tc1100-wmi: select ACPI_WMI > > > > hm, this new WMI code caused a bootup crash in the overnight x86.git > > tests: I suspect this is a problem on systems without ACPI-WMI in the DSDT - though I can't reproduce this here on my other box that lacks ACPI-WMI. Ingo, can you try the patch below and see if this cures it? --- ACPI: WMI: Fix crash on WMI free systems From: Carlos Corbacho <[EMAIL PROTECTED]> We have two pointers in the find_guid() code that aren't checked before we use them. On ACPI-WMI free systems, this can sometimes cause a crash if another driver tries to use any of the methods provided by WMI. Also throw in an extra early check to see if the GUID list is empty, so we can try to bail out before reaching this code as well. Spotted by Ingo Molnar. Signed-off-by: Carlos Corbacho <[EMAIL PROTECTED]> CC: Ingo Molnar <[EMAIL PROTECTED]> CC: Linus Torvalds <[EMAIL PROTECTED]> CC: Andrew Morton <[EMAIL PROTECTED]> CC: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/wmi.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c index 36b84ab..b54e734 100644 --- a/drivers/acpi/wmi.c +++ b/drivers/acpi/wmi.c @@ -201,12 +201,20 @@ static bool find_guid(const char *guid_string, struct wmi_block **out) struct guid_block *block; struct list_head *p; + if (list_empty(_blocks.list)) + return 0; + wmi_parse_guid(guid_string, tmp); wmi_swap_bytes(tmp, guid_input); list_for_each(p, _blocks.list) { wblock = list_entry(p, struct wmi_block, list); + if (!wblock) + return 0; + block = >gblock; + if (!block) + return 0; if (memcmp(block->guid, guid_input, 16) == 0) { if (out) -- E-Mail: [EMAIL PROTECTED] Web: strangeworlds.co.uk GPG Key ID: 0x23EE722D -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
On Saturday 09 February 2008 06:19:36 Ingo Molnar wrote: (Carlos Cc:-ed too) * Ingo Molnar [EMAIL PROTECTED] wrote: * Len Brown [EMAIL PROTECTED] wrote: Len Brown (6): ACPI: add newline to printk ACPI: build WMI on X86 only acer-wmi, tc1100-wmi: select ACPI_WMI hm, this new WMI code caused a bootup crash in the overnight x86.git tests: I suspect this is a problem on systems without ACPI-WMI in the DSDT - though I can't reproduce this here on my other box that lacks ACPI-WMI. Ingo, can you try the patch below and see if this cures it? --- ACPI: WMI: Fix crash on WMI free systems From: Carlos Corbacho [EMAIL PROTECTED] We have two pointers in the find_guid() code that aren't checked before we use them. On ACPI-WMI free systems, this can sometimes cause a crash if another driver tries to use any of the methods provided by WMI. Also throw in an extra early check to see if the GUID list is empty, so we can try to bail out before reaching this code as well. Spotted by Ingo Molnar. Signed-off-by: Carlos Corbacho [EMAIL PROTECTED] CC: Ingo Molnar [EMAIL PROTECTED] CC: Linus Torvalds [EMAIL PROTECTED] CC: Andrew Morton [EMAIL PROTECTED] CC: Len Brown [EMAIL PROTECTED] --- drivers/acpi/wmi.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c index 36b84ab..b54e734 100644 --- a/drivers/acpi/wmi.c +++ b/drivers/acpi/wmi.c @@ -201,12 +201,20 @@ static bool find_guid(const char *guid_string, struct wmi_block **out) struct guid_block *block; struct list_head *p; + if (list_empty(wmi_blocks.list)) + return 0; + wmi_parse_guid(guid_string, tmp); wmi_swap_bytes(tmp, guid_input); list_for_each(p, wmi_blocks.list) { wblock = list_entry(p, struct wmi_block, list); + if (!wblock) + return 0; + block = wblock-gblock; + if (!block) + return 0; if (memcmp(block-guid, guid_input, 16) == 0) { if (out) -- E-Mail: [EMAIL PROTECTED] Web: strangeworlds.co.uk GPG Key ID: 0x23EE722D -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
(Carlos Cc:-ed too) * Ingo Molnar <[EMAIL PROTECTED]> wrote: > * Len Brown <[EMAIL PROTECTED]> wrote: > > > Len Brown (6): > > ACPI: add newline to printk > > ACPI: build WMI on X86 only > > acer-wmi, tc1100-wmi: select ACPI_WMI > > hm, this new WMI code caused a bootup crash in the overnight x86.git > tests: > > initcall 0x40cffbd0 ran for 0 msecs: msi_init+0x0/0x150() > Calling initcall 0x40cffd20: tc1100_init+0x0/0x70() > BUG: unable to handle kernel NULL pointer dereference at > IP: [<404b96a2>] find_guid+0x132/0x150 > *pde = > Oops: [#1] SMP > > Pid: 1, comm: swapper Not tainted (2.6.24 #34) > EIP: 0060:[<404b96a2>] EFLAGS: 00010247 CPU: 1 > EIP is at find_guid+0x132/0x150 > EAX: 05a572d4 EBX: 5f81af54 ECX: EDX: > ESI: EDI: 5f81af54 EBP: 5f81af80 ESP: 5f81af48 > DS: 007b ES: 007b FS: 00d8 GS: SS: 0068 > Process swapper (pid: 1, ti=5f81a000 task=5f815410 task.ti=5f81a000) > Stack: 5f81af74 0005 c364ac71 495a36db 39b49484 05a572d4 > 71ac64c3 >5a49db36 39b49484 05a572d4 ffed 5f81af88 > 404b96cf >5f81af94 40cffd33 5f81afe0 40cdb5d3 2c7b1366 0001 > > Call Trace: > [<404b96cf>] ? wmi_has_guid+0xf/0x20 > [<40cffd33>] ? tc1100_init+0x13/0x70 > [<40cdb5d3>] ? kernel_init+0x123/0x2f0 > [<40cdb4b0>] ? kernel_init+0x0/0x2f0 > [<401053d7>] ? kernel_thread_helper+0x7/0x10 > === > Code: 0c 41 8d 7d d4 eb 24 8d 46 08 b9 10 00 00 00 89 fa e8 e3 88 f6 ff 85 c0 > 75 0f b0 01 83 7d c8 00 74 19 8b 55 c8 89 32 eb 12 89 de <8b> 1e 0f 18 03 90 > 81 fe 90 c1 0c 41 75 ce 31 c0 83 c4 2c 5b 5e > EIP: [<404b96a2>] find_guid+0x132/0x150 SS:ESP 0068:5f81af48 > ---[ end trace 5d95b7a12e9c31b7 ]--- > Kernel panic - not syncing: Attempted to kill init! > Press any key to enter the menu > > config and crashlog attached. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
(Carlos Cc:-ed too) * Ingo Molnar [EMAIL PROTECTED] wrote: * Len Brown [EMAIL PROTECTED] wrote: Len Brown (6): ACPI: add newline to printk ACPI: build WMI on X86 only acer-wmi, tc1100-wmi: select ACPI_WMI hm, this new WMI code caused a bootup crash in the overnight x86.git tests: initcall 0x40cffbd0 ran for 0 msecs: msi_init+0x0/0x150() Calling initcall 0x40cffd20: tc1100_init+0x0/0x70() BUG: unable to handle kernel NULL pointer dereference at IP: [404b96a2] find_guid+0x132/0x150 *pde = Oops: [#1] SMP Pid: 1, comm: swapper Not tainted (2.6.24 #34) EIP: 0060:[404b96a2] EFLAGS: 00010247 CPU: 1 EIP is at find_guid+0x132/0x150 EAX: 05a572d4 EBX: 5f81af54 ECX: EDX: ESI: EDI: 5f81af54 EBP: 5f81af80 ESP: 5f81af48 DS: 007b ES: 007b FS: 00d8 GS: SS: 0068 Process swapper (pid: 1, ti=5f81a000 task=5f815410 task.ti=5f81a000) Stack: 5f81af74 0005 c364ac71 495a36db 39b49484 05a572d4 71ac64c3 5a49db36 39b49484 05a572d4 ffed 5f81af88 404b96cf 5f81af94 40cffd33 5f81afe0 40cdb5d3 2c7b1366 0001 Call Trace: [404b96cf] ? wmi_has_guid+0xf/0x20 [40cffd33] ? tc1100_init+0x13/0x70 [40cdb5d3] ? kernel_init+0x123/0x2f0 [40cdb4b0] ? kernel_init+0x0/0x2f0 [401053d7] ? kernel_thread_helper+0x7/0x10 === Code: 0c 41 8d 7d d4 eb 24 8d 46 08 b9 10 00 00 00 89 fa e8 e3 88 f6 ff 85 c0 75 0f b0 01 83 7d c8 00 74 19 8b 55 c8 89 32 eb 12 89 de 8b 1e 0f 18 03 90 81 fe 90 c1 0c 41 75 ce 31 c0 83 c4 2c 5b 5e EIP: [404b96a2] find_guid+0x132/0x150 SS:ESP 0068:5f81af48 ---[ end trace 5d95b7a12e9c31b7 ]--- Kernel panic - not syncing: Attempted to kill init! Press any key to enter the menu config and crashlog attached. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release Nothing exciting here, generally just tweaks to the previous batch. This will update the files shown below. thanks! -Len ps. individual patches are available on [EMAIL PROTECTED] and a consolidated plain patch is available here: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.24/acpi-release-20070126-2.6.24.diff.gz Documentation/thermal/sysfs-api.txt | 23 +-- drivers/acpi/Kconfig| 20 +++-- drivers/acpi/blacklist.c| 20 + drivers/acpi/osl.c |2 drivers/acpi/processor_perflib.c|7 +++ drivers/misc/Kconfig|5 +- drivers/thermal/Kconfig |4 - drivers/thermal/thermal.c | 49 +--- 8 files changed, 88 insertions(+), 42 deletions(-) through these commits: Carlos Corbacho (1): ACPI: WMI: Improve Kconfig description Len Brown (6): ACPI: add newline to printk ACPI: build WMI on X86 only intel_menlo: build on X86 only ACPI: thermal: syntax, spelling, kernel-doc ACPI: DMI: add Panasonic CF-52 and Thinpad X61 acer-wmi, tc1100-wmi: select ACPI_WMI Thomas Renninger (1): ACPI: cpufreq: Print _PPC changes via cpufreq debug layer with this log: commit 2e6c4e5101633a54aeee1f2e83020ee77fcb70d2 Merge: 446b1df... 4a507d9... Author: Len Brown <[EMAIL PROTECTED]> Date: Fri Feb 8 01:22:26 2008 -0500 Merge branches 'release', 'dmi' and 'misc' into release commit 4a507d93fac78ecd37d18343c57c564f6a126f01 Author: Len Brown <[EMAIL PROTECTED]> Date: Fri Feb 8 00:37:16 2008 -0500 acer-wmi, tc1100-wmi: select ACPI_WMI It is safe for these Kconfig entries to use select because they select ACPI_WMI, which already has its dependencies satisfied. This makes Kconfig more user friendly, since the user selects the driver they want and the dependency is met for them. Otherwise, the user would have to find and enable ACPI_WMI to make enabling these drivers possible. Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit 20b4514799ebcfb04b45537e90e421cb73fd0cc9 Author: Carlos Corbacho <[EMAIL PROTECTED]> Date: Fri Feb 8 00:36:49 2008 -0500 ACPI: WMI: Improve Kconfig description As Pavel Machek has pointed out, the Kconfig entry for WMI is pretty non-descriptive. Rewrite it so that it explains what ACPI-WMI is, and why anyone would want to enable it. Many thanks to Ray Lee for ideas on this. Signed-off-by: Carlos Corbacho <[EMAIL PROTECTED]> CC: Pavel Machek <[EMAIL PROTECTED]> CC: Ray Lee <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit 446b1dfc4cd1c2bbc7eb22d5fec38e23a577492c Author: Len Brown <[EMAIL PROTECTED]> Date: Thu Feb 7 16:23:00 2008 -0500 ACPI: DMI: add Panasonic CF-52 and Thinpad X61 Add Lenovo X61 Add Panasonic Toughbook CF-52 Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit 543a956140e1f57331c0e528d2367106057aeca0 Author: Len Brown <[EMAIL PROTECTED]> Date: Thu Feb 7 16:55:08 2008 -0500 ACPI: thermal: syntax, spelling, kernel-doc Reviewed-by: Randy Dunlap <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit 9f2eef25e044603527e121066284d22f51d853cc Author: Len Brown <[EMAIL PROTECTED]> Date: Thu Feb 7 16:19:56 2008 -0500 intel_menlo: build on X86 only Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit 9c2f7de8c0f979fc6354bf0d22c0cdcc29722bf6 Author: Len Brown <[EMAIL PROTECTED]> Date: Thu Feb 7 16:18:24 2008 -0500 ACPI: build WMI on X86 only Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit 919158d17b42683a5c7368e1e77661c65a20a48a Author: Thomas Renninger <[EMAIL PROTECTED]> Date: Wed Oct 31 15:41:42 2007 +0100 ACPI: cpufreq: Print _PPC changes via cpufreq debug layer enabled with CPU_FREQ_DEBUG Signed-off-by: Thomas Renninger <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> commit b0b23e0ade6aa265d7278e06d50bc10ec81dd174 Author: Len Brown <[EMAIL PROTECTED]> Date: Thu Feb 7 14:42:25 2008 -0500 ACPI: add newline to printk Signed-off-by: Len Brown <[EMAIL PROTECTED]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[GIT PATCH] ACPI patches for 2.6.25-rc0 (#2)
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release Nothing exciting here, generally just tweaks to the previous batch. This will update the files shown below. thanks! -Len ps. individual patches are available on [EMAIL PROTECTED] and a consolidated plain patch is available here: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.24/acpi-release-20070126-2.6.24.diff.gz Documentation/thermal/sysfs-api.txt | 23 +-- drivers/acpi/Kconfig| 20 +++-- drivers/acpi/blacklist.c| 20 + drivers/acpi/osl.c |2 drivers/acpi/processor_perflib.c|7 +++ drivers/misc/Kconfig|5 +- drivers/thermal/Kconfig |4 - drivers/thermal/thermal.c | 49 +--- 8 files changed, 88 insertions(+), 42 deletions(-) through these commits: Carlos Corbacho (1): ACPI: WMI: Improve Kconfig description Len Brown (6): ACPI: add newline to printk ACPI: build WMI on X86 only intel_menlo: build on X86 only ACPI: thermal: syntax, spelling, kernel-doc ACPI: DMI: add Panasonic CF-52 and Thinpad X61 acer-wmi, tc1100-wmi: select ACPI_WMI Thomas Renninger (1): ACPI: cpufreq: Print _PPC changes via cpufreq debug layer with this log: commit 2e6c4e5101633a54aeee1f2e83020ee77fcb70d2 Merge: 446b1df... 4a507d9... Author: Len Brown [EMAIL PROTECTED] Date: Fri Feb 8 01:22:26 2008 -0500 Merge branches 'release', 'dmi' and 'misc' into release commit 4a507d93fac78ecd37d18343c57c564f6a126f01 Author: Len Brown [EMAIL PROTECTED] Date: Fri Feb 8 00:37:16 2008 -0500 acer-wmi, tc1100-wmi: select ACPI_WMI It is safe for these Kconfig entries to use select because they select ACPI_WMI, which already has its dependencies satisfied. This makes Kconfig more user friendly, since the user selects the driver they want and the dependency is met for them. Otherwise, the user would have to find and enable ACPI_WMI to make enabling these drivers possible. Signed-off-by: Len Brown [EMAIL PROTECTED] commit 20b4514799ebcfb04b45537e90e421cb73fd0cc9 Author: Carlos Corbacho [EMAIL PROTECTED] Date: Fri Feb 8 00:36:49 2008 -0500 ACPI: WMI: Improve Kconfig description As Pavel Machek has pointed out, the Kconfig entry for WMI is pretty non-descriptive. Rewrite it so that it explains what ACPI-WMI is, and why anyone would want to enable it. Many thanks to Ray Lee for ideas on this. Signed-off-by: Carlos Corbacho [EMAIL PROTECTED] CC: Pavel Machek [EMAIL PROTECTED] CC: Ray Lee [EMAIL PROTECTED] Signed-off-by: Len Brown [EMAIL PROTECTED] commit 446b1dfc4cd1c2bbc7eb22d5fec38e23a577492c Author: Len Brown [EMAIL PROTECTED] Date: Thu Feb 7 16:23:00 2008 -0500 ACPI: DMI: add Panasonic CF-52 and Thinpad X61 Add Lenovo X61 Add Panasonic Toughbook CF-52 Signed-off-by: Len Brown [EMAIL PROTECTED] commit 543a956140e1f57331c0e528d2367106057aeca0 Author: Len Brown [EMAIL PROTECTED] Date: Thu Feb 7 16:55:08 2008 -0500 ACPI: thermal: syntax, spelling, kernel-doc Reviewed-by: Randy Dunlap [EMAIL PROTECTED] Signed-off-by: Len Brown [EMAIL PROTECTED] commit 9f2eef25e044603527e121066284d22f51d853cc Author: Len Brown [EMAIL PROTECTED] Date: Thu Feb 7 16:19:56 2008 -0500 intel_menlo: build on X86 only Signed-off-by: Len Brown [EMAIL PROTECTED] commit 9c2f7de8c0f979fc6354bf0d22c0cdcc29722bf6 Author: Len Brown [EMAIL PROTECTED] Date: Thu Feb 7 16:18:24 2008 -0500 ACPI: build WMI on X86 only Signed-off-by: Len Brown [EMAIL PROTECTED] commit 919158d17b42683a5c7368e1e77661c65a20a48a Author: Thomas Renninger [EMAIL PROTECTED] Date: Wed Oct 31 15:41:42 2007 +0100 ACPI: cpufreq: Print _PPC changes via cpufreq debug layer enabled with CPU_FREQ_DEBUG Signed-off-by: Thomas Renninger [EMAIL PROTECTED] Signed-off-by: Len Brown [EMAIL PROTECTED] commit b0b23e0ade6aa265d7278e06d50bc10ec81dd174 Author: Len Brown [EMAIL PROTECTED] Date: Thu Feb 7 14:42:25 2008 -0500 ACPI: add newline to printk Signed-off-by: Len Brown [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/