From owner-acpi-jp@jp.FreeBSD.org Thu Aug 28 18:19:43 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h7S9JhF99445;
	Thu, 28 Aug 2003 18:19:43 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from freebsd.org.ru (www.freebsd.org.ru [194.84.67.5])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id h7S9Jaa99436
	for <acpi-jp@jp.FreeBSD.org>; Thu, 28 Aug 2003 18:19:41 +0900 (JST)
	(envelope-from osa@freebsd.org.ru)
Received: by freebsd.org.ru (Postfix, from userid 1000)
	id C14F541; Thu, 28 Aug 2003 13:19:31 +0400 (MSD)
From: "Sergey A. Osokin" <osa@freebsd.org>
To: Nate Lawson <nate@root.org>
Cc: acpi-jp@jp.FreeBSD.org
Message-ID: <20030828091931.GW41860@freebsd.org.ru>
References: <20030827115225.GM41860@freebsd.org.ru> <20030827110003.H31602@root.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030827110003.H31602@root.org>
User-Agent: Mutt/1.5.4i
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Thu, 28 Aug 2003 13:19:31 +0400
X-Sequence: acpi-jp 2620
Subject: [acpi-jp 2620] Re: HP Omnibook 6100 and acpi
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: osa@FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030821

On Wed, Aug 27, 2003 at 11:04:05AM -0700, Nate Lawson wrote:
> On Wed, 27 Aug 2003, Sergey A. Osokin wrote:
> > I use FreeBSD 5.1-CURRENT (from 2003 Aug 25) on my HP
> > Omnibook 6100 and have a problem with ACPI.
> > I added following lines into my /etc/sysctl.conf
> > hw.acpi.sleep_button_state=S3
> > hw.acpi.lid_switch_state=S3
> > hw.acpi.standby_state=S3
> > then tried to close cover and computer goes in suspend
> > mode. Then tried to open cover - computer resumed, I think all
> > works fine (because I can remotely go to it), but TFT blank.
> >
> > Any idea?
> 
> You can try suspending/resuming while in X since it generally does a good
> job of resetting the display.  However, even X does not reset the display
> and/or re-enable the backlight for some video chips.  It is a known
> deficiency that our VGA driver does not ever reset console mode correctly.
> 
> > And another problem: I have some debug messages from ACPI
> > subsystem, for example:
> >
> > acpi_ec0: info: new max delay is 640 us
> > acpi_acad0: acline initialization start
> > acpi_acad0: On Line
> > acpi_acad0: acline initialization done, tried 1 times
> > acpi_cmbat1: battery initialization start
> > acpi_cmbat0: battery initialization start
> > acpi_ec0: info: new max delay is 11000 us
> > acpi_cmbat0: battery initialization done, tried 2 times
> > acpi_cmbat1: battery initialization failed, giving up
> > acpi_ec0: info: new max delay is 51000 us
> > acpi_ec0: EcCommand: no response to 0x84
> > acpi_ec0: GPE query failed - AE_NO_HARDWARE_RESPONSE
> > acpi_ec0: EcRead: Failed waiting for EC to send data.
> >     ACPI-0438: *** Error: Handler for [EmbeddedControl] returned AE_NO_HARDWARE_RESPONSE
> >     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA0.EC0_.SMWR] (Node 0xc25e5120), AE_NO_HARDWARE_RESPONSE
> >     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA0.BAT1.CHBP] (Node 0xc25e4a00), AE_NO_HARDWARE_RESPONSE
> >     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA0.EC0_.SMSL] (Node 0xc25e50e0), AE_NO_HARDWARE_RESPONSE
> >     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA0.EC0_._Q09] (Node 0xc25e5060), AE_NO_HARDWARE_RESPONSE
> 
> This indicates that your embedded controller started taking longer and
> longer to respond while battery initialization was in progress.  Please
> send full dmesg so I can know if your laptop is using _GLK.

Yes, please.

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #0: Mon Aug 25 19:53:59 MSD 2003
    root@hp6k1.freebsd.org.ru:/usr/src/sys/i386/compile/HP6100
Preloaded elf kernel "/boot/kernel/kernel" at 0xc04f0000.
Preloaded elf module "/boot/kernel/miibus.ko" at 0xc04f026c.
Preloaded elf module "/boot/kernel/if_fxp.ko" at 0xc04f0318.
Preloaded elf module "/boot/kernel/snd_maestro3.ko" at 0xc04f03c4.
Preloaded elf module "/boot/kernel/agp.ko" at 0xc04f0478.
Preloaded elf module "/boot/kernel/random.ko" at 0xc04f0520.
Preloaded elf module "/boot/kernel/radeon.ko" at 0xc04f05cc.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04f0678.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III Mobile CPU      1000MHz (996.68-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 267780096 (255 MB)
avail memory = 254672896 (242 MB)
Pentium Pro MTRR support enabled
VESA: v2.0, 16384k memory, flags:0x1, mode table:0xc03bb402 (1000022)
VESA: ATI MOBILITY RADEON
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD  EBRSDT  > on motherboard
    ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.HUB_.FDS_.FCB1.CSID] (Node 0xc25e6ee0), AE_NOT_EXIST
    ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.HUB_.FDS_._REG] (Node 0xc25e5280), AE_NOT_EXIST
pcibios: BIOS version 2.10
Using $PIR table, 14 entries at 0xc00fdee0
    ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.IDE_.SECN._STA] (Node 0xc25e58a0), AE_AML_NO_RETURN_VALUE
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.IDE_.SECN._STA] (Node 0xc25e58a0), AE_AML_NO_RETURN_VALUE
    ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.IDE_.SECN.MAST._STA] (Node 0xc25e5760), AE_AML_NO_RETURN_VALUE
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_tz0: <thermal zone> port 0x530-0x537 on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 29 INTA is routed to irq 10
pcib0: slot 31 INTB is routed to irq 10
agp0: <Intel 82830 host to AGP bridge> mem 0xe0000000-0xefffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 10
drm0: <ATI Radeon LY Mobility M6> port 0x2000-0x20ff mem 0xd0100000-0xd010ffff,0xd8000000-0xdfffffff irq 10 at device 0.0 on pci1
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized radeon 1.9.0 20020828 on minor 0
pci0: <serial bus, USB> at device 29.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib2: slot 3 INTA is routed to irq 5
pcib2: slot 4 INTA is routed to irq 10
pcib2: slot 8 INTA is routed to irq 10
pcm0: <ESS Technology Allegro-1> port 0x3000-0x30ff irq 5 at device 3.0 on pci2
pcm0: failed to enable memory mapping!
pcm0: <ESS Technology ES1988 AC97 Codec>
pci2: <simple comms> at device 4.0 (no driver attached)
pcib2: slot 5 INTA is routed to irq 10
pcic0: <TI PCI-1420 PCI-CardBus Bridge> irq 10 at device 5.0 on pci2
start (88000000) < sc->membase (d0200000)
end (ffffffff) > sc->memlimit (d02fffff)
pcic0: PCI Memory allocated: 0x88000000
pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pcib2: slot 5 INTB is routed to irq 10
pcic1: <TI PCI-1420 PCI-CardBus Bridge> irq 10 at device 5.1 on pci2
start (88000000) < sc->membase (d0200000)
end (ffffffff) > sc->memlimit (d02fffff)
pcic1: PCI Memory allocated: 0x88001000
pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq]
pccard1: <PC Card 16-bit bus (classic)> on pcic1
fxp0: <Intel 82801CAM (ICH3) Pro/100 VM Ethernet> port 0x3800-0x383f mem 0xd0200000-0xd0200fff irq 10 at device 8.0 on pci2
fxp0: Ethernet address 00:c0:9f:15:95:06
miibus0: <MII bus> on fxp0
inphy0: <i82562EM 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port 0x1820-0x182f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 mem 0xd0000000-0xd00003ff at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ichsmb0: <Intel 82801CA (ICH3) SMBus controller> port 0x1840-0x185f irq 10 at device 31.3 on pci0
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
acpi_ec0: <embedded controller: GPE 0x1c> port 0x66,0x62 on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_cmbat1: <Control method Battery> on acpi0
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 1 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio1 port 0x2f8-0x2ff irq 3 drq 0 on acpi0
sio1: type 16550A
orm0: <Option ROM> at iomem 0xc0000-0xcdfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 996684640 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 19077MB <IC25N020ATCS04-0> [38760/16/63] at ata0-master UDMA100
acd0: DVDROM <MATSHITADVD-ROM SR-8177> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
pccard: card removed, slot 0
pccard: card inserted, slot 0
sio4 at port 0x2e8-0x2ef irq 10 slot 0 on pccard0
sio4: type 16550A
sio4: unable to activate interrupt in fast mode - using normal mode
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x1800-0x181f irq 10 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ltmdm0: <Lucent Winmodem> port 0x3400-0x34ff,0x3840-0x3847 mem 0xd0201000-0xd02010ff irq 10 at device 4.0 on pci2
ltmdm0: type Virtual 16550A
    ACPI-0438: *** Error: Handler for [EmbeddedControl] returned AE_NO_HARDWARE_RESPONSE
    ACPI-1287: *** Error: Method execution failed [\\_TZ_.THRM._TMP] (Node 0xc0e94160), AE_NO_HARDWARE_RESPONSE

>  It may be
> that the EC locks the global lock for too long while processing the
> battery initialization.  Also helpful would be the output of:
> acpidump -o my.dsdt > my.asl

my.asl avaliable at http://ozz.pp.ru/my.asl

Thanks.

-- 

Rgdz,                        /"\  ASCII RIBBON CAMPAIGN
Sergey Osokin aka oZZ,       \ /    AGAINST HTML MAIL
http://ozz.pp.ru/             X          AND NEWS
                             / \
