From owner-freebsd-current@FreeBSD.ORG Thu May 8 21:34:48 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 ADC6A37B401 for ; Thu, 8 May 2003 21:34:48 -0700 (PDT) Received: from fire.org.nz (firewall.fire.org.nz [203.97.144.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3190843F75 for ; Thu, 8 May 2003 21:34:47 -0700 (PDT) (envelope-from andy@fud.org.nz) Received: by homer.fire.org.nz id <119063>; Fri, 9 May 2003 16:34:29 +1200 From: Andrew Thompson To: Magnus B{ckstr|m In-Reply-To: References: Content-Type: multipart/mixed; boundary="=-iCURT/sZCDJyGwwA4+Z5" Organization: Message-Id: <03May9.163429nzst.119063@homer.fire.org.nz> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 09 May 2003 16:34:50 +1200 cc: acpi-jp@jp.FreeBSD.org cc: current@freebsd.org Subject: Re: [acpi-jp 2190] Re: Outstanding ACPI issues for 5.1-RELEASE 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: Fri, 09 May 2003 04:34:49 -0000 --=-iCURT/sZCDJyGwwA4+Z5 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2003-05-08 at 20:28, Magnus B{ckstr|m wrote: > I'm afraid this may not be the end of it. An N800c I encountered a few > weeks ago consistently had _HIDs with asterisks. If I may contribute > an untested general workaround (untested because I don't currently have > access to the hardware): > > Index: src/sys/dev/acpica/acpi.c > diff -u src/sys/dev/acpica/acpi.c:1.1.1.6.2.1 src/sys/dev/acpica/acpi.c:1.1.1.6.2.2 > [snip] > Furthermore, the laptop used idioms that were a bit too modern for > our ACPI implementation. CIDs are allowed to be not only integers, > but also buffers (think `char *') with images of ACPI_INTEGERs, and > packages with multiple integer objects in them (for multiple possible > CIDs). The below -should- fix this but is also untested. > > Index: src/sys/dev/acpica/acpi.c > diff -u src/sys/dev/acpica/acpi.c:1.1.1.6.2.2 src/sys/dev/acpica/acpi.c:1.1.1.6.2.3 > [snip] Amazing, she works now. :-D I applied these two patches and recompiled. Attached is my dmesg and sysctl output. Thanks Magnus & everyone else who helped. The main reason I wanted this is to be able to suspend rather than powering off. Andy --=-iCURT/sZCDJyGwwA4+Z5 Content-Disposition: attachment; filename=dmesg Content-Type: text/plain; name=dmesg; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-BETA #1: Fri May 9 16:06:12 NZST 2003 thompsa@holly.fire.org.nz:/usr/obj/usr/src/sys/HOLLY Preloaded elf kernel "/boot/kernel/kernel" at 0xc05b3000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05b31f4. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1993544336 Hz CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (1993.54-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febf9ff real memory = 536674304 (511 MB) avail memory = 515076096 (491 MB) bios32: Bad BIOS32 Service Directory Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi_bus_number: root bus has no _BBN, assuming 0 acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: root bus has no _BBN, assuming 0 acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: root bus has no _BBN, assuming 0 acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR ACPI-1287: *** Error: Method execution failed [\\_SB_.C03B.C04E.C0CF.C0D3] (Node 0xc4047740), AE_NOT_EXIST ACPI-1287: *** Error: Method execution failed [\\_SB_.C03B.C04E.C0CF._INI] (Node 0xc4049f20), AE_NOT_EXIST acpi_bus_number: root bus has no _BBN, assuming 0 acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_tz0: on acpi0 acpi_tz1: on acpi0 acpi_tz2: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0x60000000-0x6fffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 pci2: at device 4.0 (no driver attached) fwohci0: mem 0x40080000-0x40083fff,0x40300000-0x403007ff irq 11 at device 5.0 on pci2 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:08:02:71:9c:cf:1e:9c fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 if_fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:08:02:cf:1e:9c sbp0: on firewire0 fwohci0: Initiate bus reset cbb0: mem 0x40100000-0x40100fff irq 11 at device 6.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fxp0: port 0x2000-0x203f mem 0x40180000-0x40180fff irq 10 at device 8.0 on pci2 fxp0: Ethernet address 00:08:02:cf:14:be miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ohci0: mem 0x40200000-0x40200fff irq 10 at device 14.0 on pci2 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0x40280000-0x40280fff irq 10 at device 14.1 on pci2 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ums0: Cypress Sem PS2/USB Browser Combo Mouse, rev 1.00/0.00, addr 2, iclass 3/1 ums0: 5 buttons and Z dir. pci2: at device 14.2 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x4440-0x444f,0-0x3,0-0x7,0-0x3,0-0x7 irq 11 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pcm0: port 0x4400-0x443f,0x4000-0x40ff irq 5 at device 31.5 on pci0 pcm0: acpi_cmbat0: on acpi0 acpi_acad0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_lid0: on acpi0 acpi_ec0: port 0x66,0x62 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x3e8-0x3ef irq 3 drq 3 on acpi0 sio1: type 16550A orm0: