Subject: kern/22982: acpi sensors don't return valid data on Dell Inspiron 8200
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <wulf@ping.net.au>
List: netbsd-bugs
Date: 09/28/2003 01:44:34
>Number:         22982
>Category:       kern
>Synopsis:       acpi sensors don't return valid data on Dell Inspiron 8200
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 28 01:45:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Berndt Josef Wulf
>Release:        NetBSD-1.6ZC
>Organization:
NTC-Electronics
>Environment:
NetBSD husky 1.6ZC NetBSD 1.6ZC (HUSKY-acpi) #3: Sun Sep 28 10:46:06 CST 2003  wulf@husky:/sys/arch/i386/compile/HUSKY-acpi i386
>Description:
ACPI sensors are detected but don't return valid data when queried using the envstat utility.

This used to work at one stage (~6-12month ago) on a Dell Inspiron 8100 using a NetBSD-current at that time.

Boot message:

NetBSD 1.6ZC (HUSKY-acpi) #3: Sun Sep 28 10:46:06 CST 2003
        wulf@husky:/sys/arch/i386/compile/HUSKY-acpi
total memory = 383 MB
avail memory = 350 MB
using 4934 buffers containing 19736 KB of memory
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium 4 (686-class), 2193.64 MHz, id 0xf27
cpu0: features bfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features bfebf9ff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebf9ff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
cpu0: L2 cache 512 KB 64b/line 8-way
cpu0: ITLB 4K/4M: 128 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 16 page colors
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <DELL  , CPi R  ,27d20c0a>, AslId <ASL ,00000061>
acpi0: SCI interrupting at int 9
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpiacad0 at acpi0 (ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (PNP0C0A-1): ACPI Battery (Control Method)
acpibat1 at acpi0 (PNP0C0A-2): ACPI Battery (Control Method)
acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (PNP0C0E): ACPI Sleep Button
PNP0C01 [System Board] at acpi0 not configured
PNP0A03 [PCI Bus] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
pckbc0 at acpi0 (PNP0F13): aux port
pckbc0: irq 12
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
PNP0100 [AT Timer] at acpi0 not configured
PNP0800 [AT-style speaker sound] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: using exception 16
PNP0C01 [System Board] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
acpitz0 at acpi0: ACPI Thermal Zone
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82845 Host (rev. 0x04)
agp0 at pchb0: aperture at 0xe8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82845 AGP (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: ATI Technologies Radeon Mobility M9 (rev. 0x01)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
uhci0 at pci0 dev 29 function 0: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 2: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ppb1 at pci0 dev 30 function 0: Intel 82801BAM Hub-to-PCI Bridge (rev. 0x42)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
ex0 at pci2 dev 0 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x
78)
ex0: interrupting at irq 11
ex0: MAC address 00:0b:db:15:d2:68
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cbb0 at pci2 dev 1 function 0: Texas Instruments PCI4451 PCI-CardBus Bridge w/ O
HCI IEEE 1394 Controller (rev. 0x00)
cbb1 at pci2 dev 1 function 1: Texas Instruments PCI4451 PCI-CardBus Bridge w/ O
HCI IEEE 1394 Controller (rev. 0x00)
fwohci0 at pci2 dev 1 function 2: Texas Instruments PCI4451 OHCI IEEE 1394 HOST
Controller w/ PCI-CardBus Bridge (rev. 0x00)
fwohci0: interrupting at irq 11
fwohci0: OHCI 1.0, 39:4f:c0:00:22:e8:9c:38, 400Mb/s, 2048 max_rec, 4 ir_ctx, 4 i
t_ctx
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 0 device 0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 0 device 0
pcmcia1 at cardslot1
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801CAM LPC Interface (rev. 0x02)
pciide0 at pci0 dev 31 function 1
pciide0: Intel 82801CA IDE Controller (ICH3) (rev. 0x02)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel interrupting at irq 15
auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
auich0: interrupting at irq 11
auich0: ac97: Crystal CS4205 codec; dedicated mic channel, tone, simulated stere
o, bass boost, 20 bit DAC, 18 bit ADC, SRS 3D
auich0: ac97: ext id 209<AMAP,VRM,VRA>
audio0 at auich0: full duplex, mmap, independent
Intel 82801CA/CAM Modem (modem communications, revision 0x02) at pci0 dev 31 fun
ction 6 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 1: <Samsung CD-RW/DVD-ROM SN-324B, , U101> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at pciide0 channel 0 drive 0: <IC25N040ATCS05-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data
 transfers)
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
auich0: measured ac97 link rate at 45898 Hz, will use 48000 Hz
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
IPsec: Initialized Security Association Processing.
fw0 at fwohci0: 39:4f:c0:00:22:e8:9c:38:0a:02:ff:ff:f0:01:00:00
pcmcia1: CIS version PC Card Standard 5.0
pcmcia1: CIS info: Avaya Communication, Avaya Wireless PC Card, Version 01.01,
pcmcia1: Manufacturer code 0x156, product 0x2
pcmcia1: function 0: network adapter, ccr addr 3e0 mask 1
pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, io
space 0-3f; io16 irqpulse irqlevel
wi0 at pcmcia1 function 0: Avaya Communication, Avaya Wireless PC Card, Version
 01.01,
wi0: 802.11 address 00:02:2d:74:39:50
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station (7.28.1)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wi0: command timed out, cmd=0x2, arg=0x0
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)


envstat output

husky: {2} envstat -r
	acpiacad0 connected
	acpibat0 design cap:      0.000 Ah
	acpibat0 lfc cap:      0.000 Ah (  nan%)
	acpibat0 technology:          0
	acpibat0 design voltage:      0.000 V
	acpibat0 warn cap:      0.000 Ah
	acpibat0 low cap:      0.000 Ah
	acpibat0 voltage:      0.000 V
	acpibat0 current:      0.000 A
	acpibat0 charge:      0.000 Ah (  nan%)
	acpibat1 design cap:      0.000 Ah
	acpibat1 lfc cap:      0.000 Ah (  nan%)
	acpibat1 technology:          0
	acpibat1 design voltage:      0.000 V
	acpibat1 warn cap:      0.000 Ah
	acpibat1 low cap:      0.000 Ah
	acpibat1 voltage:      0.000 V
	acpibat1 current:      0.000 A
	acpibat1 charge:      0.000 Ah (  nan%)
	acpitz0 temperature:     25.050 degC


configuration file (acpi relevant options only):

[...]
cpu* at mainbus?
ioapic* at mainbus?

options         MPACPI
options         MPACPI_SCANPCI

acpiacad*       at acpi?                # ACPI AC Adapter
acpibat*        at acpi?                # ACPI Battery
acpibut*        at acpi?                # ACPI Button
acpiec*         at acpi?                # ACPI Embedded Controller
acpilid*        at acpi?                # ACPI Lid Switch
acpitz*         at acpi?                # ACPI Thermal Zone

com*            at acpi?                # Serial communications interface
fdc*            at acpi?                # Floppy disk controller
lpt*            at acpi?                # Parallel port
npx*            at acpi?                # Math coprocessor
pckbc*          at acpi?                # PC keyboard controller
wss*            at acpi?                # NeoMagic 256AV in wss mode
[...]


>How-To-Repeat:
built acpi enabled kernel, run it on a Dell Inspiron 8200 laptop. Execute
envstat -r to read sensors.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: