Bug 2667

Summary: no battery status (EmbeddedControl problem?)
Product: ACPI Reporter: Roderich Schupp (roderich.schupp)
Component: Power-BatteryAssignee: Shaohua (shaohua.li)
Status: REJECTED DUPLICATE    
Severity: normal    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.6.-rc3 Subsystem:
Regression: --- Bisected commit-id:
Attachments: acpidmp
dmidecode
disassembled DSDT
kernel config

Description Roderich Schupp 2004-05-10 04:24:45 UTC
Distribution:  Debian unstable
Hardware Environment: Toshiba Tecra S1
Software Environment:
Problem Description:
Battery status doesn't show, /proc/acpi/battery is empty:

# find /proc/acpi

/proc/acpi
/proc/acpi/alarm
/proc/acpi/sleep
/proc/acpi/thermal_zone
/proc/acpi/thermal_zone/THZN
/proc/acpi/thermal_zone/THZN/polling_frequency
/proc/acpi/thermal_zone/THZN/cooling_mode
/proc/acpi/thermal_zone/THZN/trip_points
/proc/acpi/thermal_zone/THZN/temperature
/proc/acpi/thermal_zone/THZN/state
/proc/acpi/processor
/proc/acpi/processor/CPU0
/proc/acpi/processor/CPU0/limit
/proc/acpi/processor/CPU0/throttling
/proc/acpi/processor/CPU0/power
/proc/acpi/processor/CPU0/info
/proc/acpi/fan
/proc/acpi/fan/FAN1
/proc/acpi/fan/FAN1/state
/proc/acpi/fan/FAN0
/proc/acpi/fan/FAN0/state
/proc/acpi/button
/proc/acpi/button/lid
/proc/acpi/button/lid/LID
/proc/acpi/button/lid/LID/state
/proc/acpi/button/lid/LID/info
/proc/acpi/button/power
/proc/acpi/button/power/PWRF
/proc/acpi/button/power/PWRF/info
/proc/acpi/battery
/proc/acpi/ac_adapter
/proc/acpi/ac_adapter/AC
/proc/acpi/ac_adapter/AC/state
/proc/acpi/debug_level
/proc/acpi/debug_layer
/proc/acpi/event
/proc/acpi/fadt
/proc/acpi/dsdt
/proc/acpi/info
/proc/acpi/power_resource
/proc/acpi/power_resource/PFA0
/proc/acpi/power_resource/PFA0/state
/proc/acpi/power_resource/PFA1
/proc/acpi/power_resource/PFA1/state
/proc/acpi/embedded_controller
/proc/acpi/embedded_controller/EC0
/proc/acpi/embedded_controller/EC0/info

Syslog shows:

May  3 18:28:52 click kernel: DMI 2.3 present.
May  3 18:28:52 click kernel: ACPI: RSDP (v000 OID_00                          
         ) @ 0x000e6010
May  3 18:28:52 click kernel: ACPI: RSDT (v001 INSYDE RSDT_000 0x00000001 _CSI
0x00010101) @ 0x1fffa9e0
May  3 18:28:52 click kernel: ACPI: FADT (v001 INSYDE FACP_000 0x00000100 _CSI
0x00010101) @ 0x1ffffb00
May  3 18:28:52 click kernel: ACPI: BOOT (v001 INSYDE SYS_BOOT 0x00000100 _CSI
0x00010101) @ 0x1ffffb90
May  3 18:28:52 click kernel: ACPI: DBGP (v001 INSYDE DBGP_000 0x00000100 _CSI
0x00010101) @ 0x1ffffbc0
May  3 18:28:52 click kernel: ACPI: SSDT (v001 INSYDE   GV3Ref 0x00002000 INTL
0x20021002) @ 0x1fffaa20
May  3 18:28:52 click kernel: ACPI: DSDT (v001 TOSINV   INT810 0x00001002 INTL
0x02002036) @ 0x00000000
...
May  3 18:28:53 click kernel: ACPI: Subsystem revision 20040326
May  3 18:28:53 click kernel:  tbxface-0117 [03] acpi_load_tables      : ACPI
Tables successfully acquired
May  3 18:28:53 click kernel: Parsing all Control
Methods:..............................................................................................................................................................
May  3 18:28:53 click kernel: Table [DSDT](id F005) - 608 Objects with 60
Devices 158 Methods 19 Regions
May  3 18:28:53 click kernel: Parsing all Control Methods:....
May  3 18:28:53 click kernel: Table [SSDT](id F003) - 7 Objects with 0 Devices 4
Methods 0 Regions
May  3 18:28:53 click kernel: ACPI Namespace successfully loaded at root c03f3d5c
May  3 18:28:53 click kernel: ACPI: IRQ9 SCI: Edge set to Level Trigger.
May  3 18:28:53 click kernel: evxfevnt-0093 [04] acpi_enable           :
Transition to ACPI mode successful
May  3 18:28:53 click kernel: evgpeblk-0867 [06] ev_create_gpe_block   : GPE 00
to 31 [_GPE] 4 regs at 0000000000001028 on int 9
May  3 18:28:53 click kernel: evgpeblk-0925 [06] ev_create_gpe_block   : Found 0
Wake, Enabled 8 Runtime GPEs in this block
May  3 18:28:53 click kernel: Completing Region/Field/Buffer/Package
initialization:........................................................................................
May  3 18:28:53 click kernel: Initialized 19/19 Regions 0/0 Fields 35/35 Buffers
34/34 Packages (624 nodes)
May  3 18:28:53 click kernel: Executing all Device _STA and_INI
methods:..............................................................
May  3 18:28:53 click kernel: 62 Devices found containing: 62 _STA, 1 _INI methods
May  3 18:28:53 click kernel: ACPI: Interpreter enabled
May  3 18:28:53 click kernel: ACPI: Using PIC for interrupt routing
May  3 18:28:53 click kernel: evregion-0251 [21] ev_address_space_dispa: No
handler for Region [ECF2] (dff6beb8) [EmbeddedControl]
May  3 18:28:53 click kernel:  exfldio-0283 [20] ex_access_region      : Region
EmbeddedControl(3) has no handler
May  3 18:28:53 click kernel:  dswexec-0435 [13] ds_exec_end_op        :
[Store]: Could not resolve operands, AE_NOT_EXIST
May  3 18:28:53 click kernel:  psparse-1133: *** Error: Method execution failed
[\_SB_.BAT0._STA] (Node dff73bb8), AE_NOT_EXIST
May  3 18:28:53 click kernel: evregion-0251 [21] ev_address_space_dispa: No
handler for Region [ECF2] (dff6beb8) [EmbeddedControl]
May  3 18:28:53 click kernel:  exfldio-0283 [20] ex_access_region      : Region
EmbeddedControl(3) has no handler
May  3 18:28:53 click kernel:  dswexec-0435 [13] ds_exec_end_op        :
[Store]: Could not resolve operands, AE_NOT_EXIST
May  3 18:28:53 click kernel:  psparse-1133: *** Error: Method execution failed
[\_SB_.BAT1._STA] (Node dff73438), AE_NOT_EXIST
May  3 18:28:53 click kernel: ACPI: PCI Root Bridge [PCI0] (00:00)


The last errors are interesting: Method _SB_BAT1.STA tries to read
from _SB.PCI0.LPCB.EC0.B2ST which lies in an EmbeddedControl 
operation region for device EC0. Shouldn't there be an ECDT
table for this region?
There are other ACPI things not working, e.g. resume from
suspend-to-ram looses USB controller and ethernet.
Comment 1 Roderich Schupp 2004-05-10 04:26:11 UTC
Created attachment 2833 [details]
acpidmp
Comment 2 Roderich Schupp 2004-05-10 04:26:41 UTC
Created attachment 2834 [details]
dmidecode
Comment 3 Roderich Schupp 2004-05-10 04:28:14 UTC
Created attachment 2835 [details]
disassembled DSDT
Comment 4 Roderich Schupp 2004-05-10 04:30:09 UTC
Created attachment 2836 [details]
kernel config
Comment 5 Shaohua 2004-05-10 22:34:00 UTC
Yet another ECDT lack error. We have some workarounds for such issue. could 
you please try the patch in Bug 1690?
Comment 6 Roderich Schupp 2004-05-11 09:11:32 UTC
Thanks, the patch from bug 1690 works, battery status is reported now.

Resume from S3 still leaves me with
- black screen (I can faintly see that both console and X seem OK though)
- dead USB 
- dead ethernet 
and the following in syslog:

May 11 13:03:57 click kernel: ehci_hcd 0000:00:1d.7: HC died; cleaning up
May 11 13:03:57 click kernel: irq 11: nobody cared!
May 11 13:03:57 click kernel: Call Trace:
May 11 13:03:57 click kernel:  [<c010642a>] __report_bad_irq+0x2a/0x90
May 11 13:03:57 click kernel:  [<c0106520>] note_interrupt+0x70/0xb0
May 11 13:03:57 click kernel:  [<c0106800>] do_IRQ+0x120/0x130
May 11 13:03:57 click kernel:  [<c0104aa8>] common_interrupt+0x18/0x20
May 11 13:03:57 click kernel:  [<c011dabe>] __do_softirq+0x2e/0x80
May 11 13:03:57 click kernel:  [<c011db37>] do_softirq+0x27/0x30
May 11 13:03:57 click kernel:  [<c01067db>] do_IRQ+0xfb/0x130
May 11 13:03:57 click kernel:  [<c0104aa8>] common_interrupt+0x18/0x20
May 11 13:03:57 click kernel:  [<c02e5750>] schedule+0x0/0x5c0
May 11 13:03:57 click kernel:  [<c0104085>] need_resched+0x27/0x32
May 11 13:03:57 click kernel:  [<c01ee272>] acpi_processor_idle+0xd1/0x1c2
May 11 13:03:57 click kernel:  [<c01020e4>] cpu_idle+0x34/0x40
May 11 13:03:57 click kernel:  [<c03c078f>] start_kernel+0x15f/0x180
May 11 13:03:57 click kernel:  [<c03c04d0>] unknown_bootoption+0x0/0x120
May 11 13:03:57 click kernel:
May 11 13:03:57 click kernel: handlers:
May 11 13:03:57 click kernel: [<c026ace0>] (usb_hcd_irq+0x0/0x70)
May 11 13:03:57 click last message repeated 3 times
May 11 13:03:57 click kernel: [<e190e890>] (snd_intel8x0_interrupt+0x0/0x240
[snd_intel8x0])
May 11 13:03:57 click kernel: [<e1959890>] (yenta_interrupt+0x0/0x40 [yenta_socket])
May 11 13:03:57 click kernel: [<e1959890>] (yenta_interrupt+0x0/0x40 [yenta_socket])
May 11 13:03:57 click kernel: [<e19adcb0>] (radeon_dma_service+0x0/0xb0 [radeon])
May 11 13:03:57 click kernel: Disabling IRQ #11
Comment 7 Shaohua 2004-05-11 17:46:12 UTC
For the S3 problem, please follow other tracks. We have many suspend/resume 
problem. I will mark this bug as duplicated.
Comment 8 Shaohua 2004-05-11 17:46:47 UTC

*** This bug has been marked as a duplicate of 1690 ***