Bug 19022
Summary: | Kontron COMExpress-PC battery hotplugging not working | ||
---|---|---|---|
Product: | ACPI | Reporter: | Marc Ferland (marc.ferland) |
Component: | Power-Battery | Assignee: | Zhang Rui (rui.zhang) |
Status: | REJECTED DOCUMENTED | ||
Severity: | normal | CC: | rui.zhang |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.35.4 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
disassmebled DSDT
ADP1 info plugged ADP1 info unplugged acpidump battery info (no battery present) battery info (one battery present) battery info (two battery present) BIOS decode dmesg with i2c-i820 dmesg with i2c-scim dmidecode lspci -v output lspci -vxxx output acpi-interrupt-1 acpi-interrupt-2 dmesg interrupts-1 interrupts-2 dmesg60 |
Description
Marc Ferland
2010-09-24 14:35:50 UTC
Created attachment 31292 [details]
disassmebled DSDT
Created attachment 31302 [details]
ADP1 info plugged
Created attachment 31312 [details]
ADP1 info unplugged
Created attachment 31322 [details]
acpidump
Created attachment 31332 [details]
battery info (no battery present)
Created attachment 31342 [details]
battery info (one battery present)
Created attachment 31352 [details]
battery info (two battery present)
Created attachment 31362 [details]
BIOS decode
Created attachment 31372 [details]
dmesg with i2c-i820
Created attachment 31382 [details]
dmesg with i2c-scim
Created attachment 31392 [details]
dmidecode
Created attachment 31402 [details]
lspci -v output
Created attachment 31412 [details]
lspci -vxxx output
please boot with the latest upstream kernel, and do the following test: 1. echo 1 > /sys/module/acpi/aml_debug_output && dmesg -c 2. cat /proc/interrupts > interrupts-1 && grep . /sys/firmware/acpi/interrupts/* > acpi-interrupt-1 3. unplug or plug the battery 4. cat /proc/interrupts > interrupts-2 && grep . /sys/firmware/acpi/interrupts/* > acpi-interrupt-2 && dmesg > dmesg and attach these five files here. Created attachment 31612 [details]
acpi-interrupt-1
Created attachment 31622 [details]
acpi-interrupt-2
Created attachment 31632 [details]
dmesg
Created attachment 31642 [details]
interrupts-1
Created attachment 31652 [details]
interrupts-2
Created attachment 31662 [details]
dmesg60
A series of ACPI debug messages keep popping up in the log. See the attachment for an example.
Bad news. There is no interrupt when plugging/unplugging the battery... By reading the AML code, GPE 07 should be fired when AC/Battery is plugged/unplugged, but it doesn't. I guess the AC adapter status is not changed neither when AC is plugged/unplugged, right? This seems like an firmware problem to me and we can do nothing in Linux kernel to fix/workaround this. BTW: IMO, windows should have the same problem. It would be great if you can verify this. (In reply to comment #21) > Bad news. > There is no interrupt when plugging/unplugging the battery... > By reading the AML code, GPE 07 should be fired when AC/Battery is > plugged/unplugged, but it doesn't. I guess the AC adapter status is not > changed > neither when AC is plugged/unplugged, right? > Right plugging/unplugging the AC doesn't change it's status. > This seems like an firmware problem to me and we can do nothing in Linux > kernel > to fix/workaround this. > BTW: IMO, windows should have the same problem. It would be great if you can > verify this. The board manufacturer says it should work under windows but I haven't tested it. |