Subject: kern/19764: acpi caused envstat to hang
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@dokein.co.uk>
List: netbsd-bugs
Date: 01/09/2003 23:25:19
>Number:         19764
>Category:       kern
>Synopsis:       acpi caused envstat to hang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 09 15:27:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Chris Gilbert
>Release:        NetBSD 1.6L
>Organization:
>Environment:
System: NetBSD whiskas 1.6L NetBSD 1.6L (SIRIUS) #10: Thu Jan 9 01:29:43 GMT 2003 chris@pinky.buzzbee.plus.com:/usr/obj/kern/current/i386/SIRIUS i386
Architecture: i386
Machine: i386
>Description:
I wanted to see how hot my laptop was so I ran:
envstat -r
It appeared to hang, so I thought I'd try switching out of X, and then back,
which has been known to help.  In this case it didn't the process is still
hung, and xconsole shows:
acpiec0: EcRead: timeout waiting for EC to send data
    ACPI-0434: *** Error: Handler for [EmbeddedControl] returned AE_ERROR
    ACPI-1286: *** Error: Method execution failed [\_SB_.PCI0.ISA0.EC0_._Q1C] (Node 0xc07e79a0), AE_ERROR
acpiec0: evaluation of GPE query method _Q1C failed: 1
acpiec0: EcRead: timeout waiting for EC to send data
    ACPI-0434: *** Error: Handler for [EmbeddedControl] returned AE_ERROR
    ACPI-1286: *** Error: Method execution failed [\_SB_.PCI0.ISA0.EC0_.CHKS] (Node 0xc07e63c0), AE_ERROR
    ACPI-1286: *** Error: Method execution failed [\_SB_.PCI0.ISA0.EC0_.I2RB] (Node 0xc07e6400), AE_ERROR
    ACPI-1286: *** Error: Method execution failed [\_SB_.PCI0.ISA0.EC0_.BAT0._BST] (Node 0xc07e7d00), AE_ERROR
bat: failed to evaluate _BST: 1
acpiec0: EcWaitEventIntr called without EC lock!
acpiec0: EcWaitEventIntr called without EC lock!

top shows:
    2 root     -22    0     0K   20M RUN        0:01  0.00%  0.00% [acpi sched]

also ps -au shows:
chris 27806  0.0  0.0   16    4 p3 DW+        - 0:00.00 envstat -r
Which suggests it's waiting for something.

Anyway I was requested to enter this PR, so that jmcneill can work on it 8)

>How-To-Repeat:
See above
>Fix:
I wish I knew.
>Release-Note:
>Audit-Trail:
>Unformatted: