Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2003 12:29:14 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Nate Lawson <nate@root.org>
Cc:        current@freebsd.org
Subject:   Re: PATCH - acpi 0619 
Message-ID:  <20030713192914.37E8C5D08@ptavv.es.net>
In-Reply-To: Message from Nate Lawson <nate@root.org>  of "Fri, 11 Jul 2003 23:07:08 PDT." <20030711230155.Q9479@root.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message.

--==_Exmh_14599644730
Content-Type: text/plain; charset=us-ascii

> Date: Fri, 11 Jul 2003 23:07:08 -0700 (PDT)
> From: Nate Lawson <nate@root.org>
> Sender: owner-freebsd-current@freebsd.org
> 
> I've prepared a new diff of the 0619 drop of acpica along with the
> appropriate changes to support code:
> 
> * Use ACPI_BUFFER as the type for AcpiGetObjectInfo
> * Remove AcpiEnableEvent/AcpiClearEvent for ACPI_EVENT_FIXED (power/sleep
> buttons) as they are no longer needed
> * Change calls to use the new GPE functions
> * Add AcpiOs*Lock functions
> * Import 0619 + local FreeBSD changes + dsmthdat.c patch (from
> kochi@netbsd.org)
> 
> Please test and let me know how this works for you.  It works fine on my
> IBM T23.
> 
>   http://www.root.org/~nate/freebsd/acpi-0619.diff.gz

OK. I installed the patches on my T30 and saw no clear regressions,
although I'd like to do more testing. I did get many more errors at
boot time, all early in the operation. messages attached.

Also, after patching, I tried building world and it would not work due
to undefined symbols in the boot/i386/libi386 build. I have put the
errors into the attachment at the top.

Observed problems: USB does not recover from suspend. Display
back-light say on after suspend. (Neither of these is different from
the CURRENT code.

Another issue that I recently noted after a complaint that battery
life was worse with FreeBSD than with Linux or Windows. I have noted
that the CPU does not seem to slow even though the system claims that
it is reduced to 50% in economy mode.

Instead, the CPU always seems to run at 1.8 GHz if it was on AC at
power-up and 1.2 GHz if the system was on battery at power-up. THIS IS
EXACTLY THE SAME THING I SEE WITH APM! So it's not a regression, but
somehow something is simply not right here. And it now appears that the
problem is not specific to T30s or even IBMs as the other report was
not an IBM, but a Compaq. I plan to do further testing of this to
confirm some details.

Since I could not build a new world with the patch in place, I have
backed it out for now.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634


--==_Exmh_14599644730
Content-Type: text/plain ; name="acpi-info.txt"; charset=us-ascii
Content-Description: acpi-info.txt
Content-Disposition: attachment; filename="acpi-info.txt"

===> sys/boot/i386/libi386
cc -O -pipe -mcpu=pentiumpro -ffreestanding -DCOMPORT=0x3f8 -DCOMSPEED=9600 -DTERM_EMU -I/usr/src/sys/boot/i386/libi386/../../common -I/usr/src/sys/boot/i386/libi386/../btx/lib  -I/usr/src/sys/boot/i386/libi386/../../../contrib/dev/acpica -I/usr/src/sys/boot/i386/libi386/../../.. -I. -I/usr/src/sys/boot/i386/libi386/../../../../lib/libstand/ -ffreestanding -mpreferred-stack-boundary=2   -c /usr/src/sys/boot/i386/libi386/biosacpi.c
In file included from /usr/src/sys/boot/i386/libi386/biosacpi.c:35:
/usr/src/sys/contrib/dev/acpica/actypes.h:922: error: `ACPI_DEVICE_ID_LENGTH' undeclared here (not in a function)
/usr/src/sys/contrib/dev/acpica/actypes.h:930: error: `ACPI_MAX_CID_LENGTH' undeclared here (not in a function)
*** Error code 1
 
Jul 13 05:31:24 puppeteer syslogd: kernel boot file is /boot/kernel/kernel
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 #6: Sat Jul 12 22:02:26 PDT 2003
oberman@puppeteer.es.net:/usr/obj/usr/src/sys/IBM-T30-D
Preloaded elf kernel "/boot/kernel/kernel" at 0xc054c000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc054c26c.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc054c2bc.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 1798479836 Hz
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz (1798.48-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
Features=0x3febf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 536281088 (511 MB)
avail memory = 515014656 (491 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <IBM    TP-1I   > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 14 entries at 0xc00fdeb0
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.FDC_._INI] (Node 0xc405d3e0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__._INI] (Node 0xc4056860), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node 0xc405a0c0), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node 0xc405a0c0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node 0xc4059ea0), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node 0xc4059ea0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node 0xc405d520), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node 0xc405d540), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node 0xc405d580), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.IDE0.SCND.MSTR._STA] (Node 0xc405d440), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.IDE0.SCND.MSTR._STA] (Node 0xc405d440), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node 0xc405d520), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node 0xc405d540), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node 0xc405d580), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.USB0.URTH.UNST._STA] (Node 0xc405da60), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.USB0.URTH.UNST._STA] (Node 0xc405da60), AE_NOT_EXIST
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node 0xc405a0c0), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node 0xc405a0c0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node 0xc4059ea0), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node 0xc4059ea0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node 0xc405d520), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node 0xc405d540), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node 0xc405d580), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.IDE0.SCND.MSTR._STA] (Node 0xc405d440), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.IDE0.SCND.MSTR._STA] (Node 0xc405d440), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node 0xc405d520), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node 0xc405d540), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node 0xc405d580), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.USB0.URTH.UNST._STA] (Node 0xc405da60), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.USB0.URTH.UNST._STA] (Node 0xc405da60), AE_NOT_EXIST
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-1287: *** Error: Method execution failed [\_SB_.LID_._PSW] (Node 0xc15213a0), AE_NOT_EXIST
acpi_button0: <Sleep Button> on acpi0
ACPI-1287: *** Error: Method execution failed [\_SB_.SLPB._PSW] (Node 0xc1521320), AE_NOT_EXIST
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 29 INTA is routed to irq 11
pcib0: slot 29 INTB is routed to irq 11
pcib0: slot 29 INTC is routed to irq 11
pcib0: slot 31 INTB is routed to irq 11
Jul 13 05:31:24 puppeteer last message repeated 2 times
agp0: <Intel 82845 host to AGP bridge> mem 0xe0000000-0xe3ffffff 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 11
pci1: <display, VGA> at device 0.0 (no driver attached)
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x1800-0x181f irq 11 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
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x1820-0x183f irq 11 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port 0x1840-0x185f irq 11 at device 29.2 on pci0
usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib2: slot 0 INTA is routed to irq 11
pcib2: slot 0 INTB is routed to irq 11
pcib2: slot 2 INTA is routed to irq 11
pcib2: slot 8 INTA is routed to irq 11
cbb0: <TI1520 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11 at device 0.0 on pci2
start (50000000) < sc->membase (d0200000)
start (50000000) < sc->pmembase (f0000000)
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <TI1520 PCI-CardBus Bridge> mem 0x51000000-0x51000fff irq 11 at device 0.1 on pci2
start (51000000) < sc->membase (d0200000)
start (51000000) < sc->pmembase (f0000000)
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pci2: <network> at device 2.0 (no driver attached)
fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x8000-0x803f mem 0xd0200000-0xd0200fff irq 11 at device 8.0 on pci2
fxp0: Ethernet address 00:09:6b:50:36:29
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 31.0 on pci0Jul 13 05:31:24 puppeteer kernel: isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port 0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 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 0x1880-0x189f irq 11 at device 31.3 on pci0
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
pcm0: <Intel ICH3 (82801CA)> port 0x18c0-0x18ff,0x1c00-0x1cff irq 11 at device 31.5 on pci0
pcm0: <Analog Devices AD1881A AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
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> flags 0x2000 irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
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
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
acpi_ec0: GPE bit is 0x1c, not using global lock
acpi_cmbat0: <Control method Battery> on acpi0Jul 13 05:31:24 puppeteer kernel: acpi_cmbat1: <Control method Battery> on acpi0Jul 13 05:31:24 puppeteer kernel: acpi_acad0: <AC adapter> on acpi0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
orm0: <Option ROMs> at iomem 0xe0000-0xeffff,0xdc000-0xdffff,0xd1000-0xd1fff,0xd0000-0xd0fff,0xc0000-0xcffff on isa0
pmtimer0 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
Timecounters tick every 10.000 msec
acpi_cpu0: set speed to 100.0%
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
acpi_cmbat0: battery initialization start
acpi_cmbat0: battery initialization done, tried 1 times
acpi_cmbat1: battery initialization start
acpi_acad0: acline initialization start
acpi_acad0: On Line
acpi_acad0: acline initialization done, tried 1 times
ad0: 38154MB <IC25N040ATCS04-0> [77520/16/63] at ata0-master UDMA100
acd0: CD-RW <DW-28E> at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s3a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC DW-28E 2.1A> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Jul 13 05:31:24 puppeteer savecore: no dumps found
Jul 13 05:31:25 puppeteer ntpd[390]: ntpd 4.1.1b-a Fri Jul 11 07:40:15 PDT 2003 (1)
Jul 13 05:31:25 puppeteer ntpd[390]: kernel time discipline status 2040
acpi_cmbat1: battery initialization failed, giving up
Jul 13 05:33:07 puppeteer login: ROOT LOGIN (root) ON ttyv0
======== acpi_printcpu() debug dump ========
gdt[0077:c04698e0] idt[0407:c0469c80] ldt[0028] tr[0020] efl[00000082]
eax[00048000] ebx[c1530c80] ecx[00000000] edx[bfc00120]
esi[00000000] edi[c153f4b0] ebp[dbb51aac] esp[dbb51a78]
cr0[8005003b] cr2[280bb708] cr3[16fe7000] cr4[00000611]
cs[0008] ds[0010] es[0010] fs[0018] gs[002f] ss[0010]
======== acpi_printcpu() debug dump ========
gdt[0077:c04698e0] idt[0407:c0469c80] ldt[0028] tr[0020] efl[00000002]
eax[00000001] ebx[c1530c80] ecx[00008000] edx[c40ed850]
esi[00000000] edi[c153f4b0] ebp[dbb51aac] esp[dbb51a78]
cr0[8005003b] cr2[280bb708] cr3[16fe7000] cr4[00000611]
cs[0008] ds[0010] es[0010] fs[0018] gs[002f] ss[0010]
usb0: cannot start
usb1: cannot start
usb2: cannot start
wakeup from sleeping state (slept 00:00:07)
ata0: resetting devices ..
usb0: host system error
usb0: host controller process error
usb0: host controller halted
usb1: host system error
usb1: host controller process error
usb1: host controller halted
usb2: host system error
usb2: host controller process error
usb2: host controller halted
done
ata1: resetting devices ..
done
acpi_cmbat0: battery initialization start
acpi_cmbat0: battery initialization done, tried 1 times
acpi_cmbat1: battery initialization start

--==_Exmh_14599644730--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030713192914.37E8C5D08>