http://bugzilla.kernel.org/show_bug.cgi?id=11930

           Summary: Battery not detected when EC switches to poll mode
           Product: ACPI
           Version: 2.5
     KernelVersion: 2.6.27-r2
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Power-Battery
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Latest working kernel version: < 2.6.26 
Earliest failing kernel version: 2.6.26
Distribution: Gentoo 
Hardware Environment: Benq S41 notebook with Core2Duo T7100 and Nvidia GM 8600  
Software Environment: Gentoo ~X86 
Problem Description: 
After upgrade to gentoo-sources-2.6.27-r2, which corresponds to vanilla kernel
2.6.27.4, my battery can no longer be detected.
There do exists a /proc/acpi/battery/BAT1 entry, but  when I issue the command 
"cat info", it says no, so does the "cat state" command. Obviously, my battery
is not detected by the new kernel.
I remember it is working correctly with tuxonice-sources-2.6.25-r7 which
corresponding to vanilla kernel 2.6.25.11.
Thanks to dmesg, i could see the difference between the two kernels, and found
that :
1. in tuxonice-2.6.25-r7, it says 
[quote]
ACPI: EC: Look up EC in DSDT
ACPI: BIOS _OSI(Linux) query ignored via DMI
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: EC: GPE = 0x17, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
....
ACPI: EC: non-query interrupt received, switching to interrupt mode
[/quote]
2. in 2.6.27-r2, it says
[quote]
ACPI: Using IOAPIC for interrupt routing
ACPI: EC: GPE storm detected, disabling EC GPE
ACPI: EC: GPE = 0x17, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
[/quote]

Comparing the two, I suspect the problems lies that the new kernel makes my
computer started in poll mode while the old kernel makes my computer started in
interrupt mode, and my computer works in interrupt mode.
So I make an experiment: i copyed  acpi/drivers/ec.c from
tuxoince-sources-2.6.25-r7 and replace the same file in 2.6.27-r2, recompiled
the kernel and boot, this time using 2.6.27-r2 kernel with ec.c borrowed from
2.6.25-r7, my battery is back.
So i am wondering if you could patch the ec.c in 2.6.27-r2 a little so that it
could work with my computer. Thank you very much.
Below is a list of related debug information.

Steps to reproduce:


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to