Latest working kernel version: 2.6.23 Earliest failing kernel version: 2.6.24 Distribution: Gentoo, vanilla-sources Hardware Environment: notebook Acer TravelMate 4501WLMi, Pentium M 1.6GHz, ATI Mobility Radeon 9700, two monitors (panel+LCD) Software Environment: N/A Problem Description: Kernel ends-up with OOPS during boot - very early after the video is switched to graphics mode with Tux logo. It looks like there is something wrong in initialization of ACPI SBS. I tried to investigate and it seems that the NULL parameter was passed as a parameter "hc" to acpi_smbus_transaction. I will attach text of OOPS (written down from camera-taken snapshot), my .config, `lspci -v`, /proc/cpuinfo. What else? Steps to reproduce: Always prints OOPS at the same stage of boot (very early after the video mode is switched to graphics), no need to do special steps
Created attachment 14740 [details] OOPS text (hand-written from camera snapshot)
Created attachment 14741 [details] Configuration used for 2.6.24
Created attachment 14742 [details] lspci -v
Created attachment 14743 [details] /proc/cpuinfo
Thanks. Next time, it's fine to just appatch the jpeg file to the bug report - no need to do all that typing! I'll tag this as a regression.
Created attachment 14756 [details] Init HC before SBS in static case Please try this patch.
Works great. As a verification I looked at the battery status and it works (/proc/acpi/battery/BAT0/*). I will also attach `dmesg` output to you if you want to check anything.
Created attachment 14757 [details] Output of `dmesg` for verification
Hm, do you really have two batteries installed?
(In reply to comment #9) > Hm, do you really have two batteries installed? Not really; it is possible to install the second battery, but it is not my case. The file /proc/acpi/battery/BAT1/{alarm,info,state} correctly contains text "present: no".
Actually 2.6.23 also shows BAT1 as present event it is not present: ACPI: Smart Battery System [SMBC]: AC Adapter [AC0] (on-line) ACPI: Smart Battery System [SMBC]: Battery Slot [BAT0] (battery present) ACPI: Smart Battery System [SMBC]: Battery Slot [BAT1] (battery present) But the files in /proc/acpi are correctly showing the status in both kernels.
Created attachment 14759 [details] Init HC before SBS in static case #2 Please try this patch. Typo in printk fixed.
(In reply to comment #12) > Please try this patch. Typo in printk fixed. This patch is identical to former one...
Created attachment 14760 [details] Init HC before SBS in static case #2 try 2 Right, forgot to export new version...
(In reply to comment #14) > Created an attachment (id=14760) [details] > Init HC before SBS in static case #2 try 2 > > Right, forgot to export new version... Perfect, works. Also the battery status is correct in `dmesg`: ACPI: Smart Battery System [SBS0]: AC Adapter [AC0] (on-line) ACPI: Smart Battery System [SBS0]: Battery Slot [BAT0] (battery present) ACPI: Smart Battery System [SBS0]: Battery Slot [BAT1] (battery absent)
Thanks for report.
Thanks for fast response and for the fix.
thanks for the quick response, Alexey -- and thanks for the quick testing, Oldřich. patch in comment #14 applied to acpi tree
patch in comment #14 shipped in linux-2.6.24-rc22. closed.
linux-2.6.24-git22, that is