From owner-freebsd-current@FreeBSD.ORG Sun Jul 13 12:29:17 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA4FF37B401 for ; Sun, 13 Jul 2003 12:29:17 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id D60DA43F85 for ; Sun, 13 Jul 2003 12:29:16 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id MUA74016; Sun, 13 Jul 2003 12:29:15 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 37E8C5D08; Sun, 13 Jul 2003 12:29:14 -0700 (PDT) X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Nate Lawson In-Reply-To: Message from Nate Lawson of "Fri, 11 Jul 2003 23:07:08 PDT." <20030711230155.Q9479@root.org> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_14599644730" Date: Sun, 13 Jul 2003 12:29:14 -0700 From: "Kevin Oberman" Message-Id: <20030713192914.37E8C5D08@ptavv.es.net> cc: acpi-jp@jp.freebsd.org cc: current@freebsd.org Subject: Re: PATCH - acpi 0619 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 19:29:18 -0000 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 > 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 real memory = 536281088 (511 MB) avail memory = 515014656 (491 MB) Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: 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: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 acpi_lid0: on acpi0 ACPI-1287: *** Error: Method execution failed [\_SB_.LID_._PSW] (Node 0xc15213a0), AE_NOT_EXIST acpi_button0: on acpi0 ACPI-1287: *** Error: Method execution failed [\_SB_.SLPB._PSW] (Node 0xc1521320), AE_NOT_EXIST pcib0: port 0xcf8-0xcff on acpi0 pci0: 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: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA is routed to irq 11 pci1: at device 0.0 (no driver attached) uhci0: port 0x1800-0x181f irq 11 at device 29.0 on pci0 usb0: 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: port 0x1820-0x183f irq 11 at device 29.1 on pci0 usb1: 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: port 0x1840-0x185f irq 11 at device 29.2 on pci0 usb2: 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: at device 30.0 on pci0 pci2: 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: mem 0x50000000-0x50000fff irq 11 at device 0.0 on pci2 start (50000000) < sc->membase (d0200000) start (50000000) < sc->pmembase (f0000000) cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: mem 0x51000000-0x51000fff irq 11 at device 0.1 on pci2 start (51000000) < sc->membase (d0200000) start (51000000) < sc->pmembase (f0000000) cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 pci2: at device 2.0 (no driver attached) fxp0: port 0x8000-0x803f mem 0xd0200000-0xd0200fff irq 11 at device 8.0 on pci2 fxp0: Ethernet address 00:09:6b:50:36:29 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0Jul 13 05:31:24 puppeteer kernel: isa0: on isab0 atapci0: 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: port 0x1880-0x189f irq 11 at device 31.3 on pci0 smbus0: on ichsmb0 smb0: on smbus0 pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff irq 11 at device 31.5 on pci0 pcm0: pci0: at device 31.6 (no driver attached) atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: flags 0x2000 irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 fdc0: 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: port 0x66,0x62 on acpi0 acpi_ec0: GPE bit is 0x1c, not using global lock acpi_cmbat0: on acpi0Jul 13 05:31:24 puppeteer kernel: acpi_cmbat1: on acpi0Jul 13 05:31:24 puppeteer kernel: acpi_acad0: on acpi0 sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled orm0: