From koitsu at FreeBSD.org Mon Oct 6 06:21:10 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 06:21:17 2008 Subject: acpi_tz0: _TMP value is absurd ignored (-269.7C) Message in every 3 seconds . In-Reply-To: References: Message-ID: <20081006061107.GA11751@icarus.home.lan> On Mon, Oct 06, 2008 at 06:07:17AM +0000, dhaneshk k wrote: > People ; > I installed freebsd-7.0 in a p4 machine , after installation when I reboot the machine , I am getting the message > acpi_tz0: _TMP value is absurd ignored (-269.7C) in every 3 seconds .. > intel p4 3.0 GHz > Intel 82915G (915G GMCH ) > > How can i get rid off this ... can someone shed some light on this regard .. You posted this mail 3 days ago; I'm not sure why you're re-posting it. This question should go to the freebsd-acpi list, not freebsd-questions, as the problem is ACPI-related. (I am not subscribed to freebsd-acpi). A BIOS upgrade might fix the problem. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From bugmaster at FreeBSD.org Mon Oct 6 11:06:50 2008 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Oct 6 11:07:04 2008 Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org Message-ID: <200810061106.m96B6nHL035375@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/127581 acpi [patch] [acpi_sony] Add support for more Sony features o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin f kern/121454 acpi [pst] Promise SuperTrak SX6000 does not load during bo o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120953 acpi [acpi]: FreeBSD 6.3 Release: acpi_tz0: _TMP value is o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/117605 acpi [acpi] [request] add debug.cpufreq.highest o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108581 acpi [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid argume o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o kern/89411 acpi [acpi] acpiconf bug o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o kern/81000 acpi [apic] Via 8235 sound card worked great with FreeBSD 5 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys s kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 f kern/67309 acpi zzz reboot computer (ACPI S3) o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 o i386/54756 acpi ACPI suspend/resume problem on CF-W2 laptop 42 problems total. From geo at pulsar.bg Thu Oct 9 18:46:33 2008 From: geo at pulsar.bg (Georgi Iovchev) Date: Thu Oct 9 18:46:40 2008 Subject: can not wake on lan after halt -p (or shutdown -p now) on releng_7 and releng_7_0 Message-ID: <1C96321E3BE34064B1A1FF306147FB85@geo> Hello list. Recently I posted a mail to freebsd-stable list about my problem, but still no response. I'll post my problem here too, because I think that it may be ACPI related. I have a shutdown problem. I have a machine with gigabyte GA-G33M-DS2R motherboard. Integrated network card is Realtek 8111B. I can not wake the computer after I shutdown it from FreeBSD. It is a dualboot system - windows xp and freebsd. If I shutdown the computer from windows - later I can wake it up with magic packet. Even if I shutdown the machine on the boot menu with the power button - than later I can wake on lan. The only situation where I CANNOT wake it is when I shutdown the machine from freebsd (halt -p). First I tested with 7.0-RELEASE-p5 amd64 (RELENG_7_0) and than I upgraded to 7.1 PRERELASE amd64 (RELENG_7). I also tested with two network cards - the integrated one Realtek 8111B and another one Intel PRO1000PT PCI-E with WOL enabled. With both nics and both freebsd versions the situation is the same - after shutdown from bsd the computer is not able to wake on lan. The indication on the switch port says that after shut down there is active link. Here is some information after last update: Code: [root at backup ~]# uname -a FreeBSD backup.pulsar.bg 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Mon Oct 6 17:01:26 EEST 2008 root at backup.pulsar.bg:/usr/obj/usr/src/sys/MYCONF amd64 [root at backup ~]# pciconf -lv ... re0 at pci0:3:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x01 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' class = network subclass = ethernet ... em0 at pci0:1:0:0: class=0x020000 card=0x10838086 chip=0x10b98086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '82572EI PRO/1000 PT Desktop Adapter (Copper)' class = network subclass = ethernet ... [root at backup ~]# ifconfig re0 wol [root at backup ~]# ifconfig em0 wol [root at backup ~]# ifconfig em0: flags=8802 metric 0 mtu 1500 options=19b ether 00:1b:21:22:52:cd media: Ethernet autoselect status: no carrier re0: flags=8843 metric 0 mtu 1500 options=389b ether 00:1f:d0:24:19:e9 inet 78.142.42.158 netmask 0xfffffff0 broadcast 78.142.42.159 inet 192.168.0.6 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff000000 I suppose that I should post more info but I dont know what exactly is needed. Need help! 10x in advance Georgi Iovchev p.s.: original post freebsd-stable: http://lists.freebsd.org/pipermail/freebsd-stable/2008-October/045689.html p.s.2: in case of response please cc to freebsd@pulsar.bg From geo at pulsar.bg Fri Oct 10 08:42:42 2008 From: geo at pulsar.bg (Georgi Iovchev) Date: Fri Oct 10 08:42:55 2008 Subject: can not wake on lan after halt -p (or shutdown -p now) on releng_7 and releng_7_0 In-Reply-To: <20081010012058.GA99376@cdnetworks.co.kr> References: <596673353.20081006181334@pulsar.bg> <20081010012058.GA99376@cdnetworks.co.kr> Message-ID: <1948191744.20081010114326@pulsar.bg> -- Friday, October 10, 2008, 4:20:58 AM: > On Mon, Oct 06, 2008 at 06:13:34PM +0300, Georgi Iovchev wrote: >> Hello list >> >> I have a shutdown problem. I have a machine with gigabyte GA-G33M-DS2R >> motherboard. Integrated network card is Realtek 8111B. >> I can not wake the computer after I shutdown it from FreeBSD. >> It is a dualboot system - windows xp and freebsd. If I shutdown the >> computer from windows - later I can wake it up with magic packet. Even >> if i shutdown the machine on the boot menu with the power button - than >> later I can wake on lan. The only situation where I CANNOT wake it is >> when I shutdown the machine from freebsd (halt -p). >> >> First I tested with 7.0-RELEASE-p5 amd64 (RELENG_7_0) and than I >> upgraded to 7.1 PRERELASE amd64 (RELENG_7). I also tested with two >> network cards - the integrated one Realtek 8111B and another one Intel >> PRO1000PT PCI-E with WOL enabled. >> > Don't know WOL issue of em(4) but re(4) should respond to WOL. > 7.0-RELEASE had no support for WOL so RELENG_7 or 7.1-PRERELEASE > should be used to experiment WOL. Now I am using 7.1-prerelase >> With both nics and both freebsd versions the situation is the same - >> after shutdown from bsd the computer is not able to wake on lan. The > Because you can wake up your sytem from Windows shutdown I think > your BIOS is already configured to allow wakeup from WOL. Would > you compare ethernet address of re(4) to Winwods? Have you tried to > send Magic packets to FreeBSD box? I have tried sending magic packets from another bsd machine. I am using net/wol. I also tried to send magic packets from windows machine using 3 different programs. > You may also try suspend your box with acpiconf and resume from WOL. I cant. [root@backup ~]# acpiconf -s 5 acpiconf: invalid sleep type (5) Actually I cant enter in any sleep state [root@backup ~]# acpiconf -s 4 acpiconf: request sleep type (4) failed: Operation not supported [root@backup ~]# acpiconf -s 3 acpiconf: request sleep type (3) failed: Operation not supported [root@backup ~]# acpiconf -s 2 acpiconf: request sleep type (2) failed: Operation not supported [root@backup ~]# acpiconf -s 1 acpiconf: request sleep type (1) failed: Operation not supported I am using generic kernel with little modifications, (generally i have commented many unused drivers - raid, if_....) Acpi is in generic kernel now. I even tried to wake the machine with magic packet after shutdown -h. But still no luck. >> indication on the switch port says that after shut down there is >> active link. >> > That indicates the controller is alive so it shall respond to WOL > if it was correctly configured to receive WOL packets. Have you > tried to send Magic packets to FreeBSD box? >> Here is some information after last update: >> >> [root@backup ~]# uname -a >> FreeBSD backup.pulsar.bg 7.1-PRERELEASE FreeBSD >> 7.1-PRERELEASE #1: Mon Oct 6 17:01:26 EEST 2008 >> root@backup.pulsar.bg:/usr/obj/usr/src/sys/MYCONF amd64 >> >> [root@backup ~]# pciconf -lv >> ... >> re0@pci0:3:0:0: class=0x020000 card=0xe0001458 >> chip=0x816810ec rev=0x01 hdr=0x00 >> vendor = 'Realtek Semiconductor' >> device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' >> class = network >> subclass = ethernet >> ... > Show me dmesg output pertinent to re(4). re0: port 0xd000-0xd0ff mem 0xf2000000-0xf2000fff irq 17 at device 0.0 on pci3 re0: turning off MSI enable bit. re0: Chip rev. 0x38000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1f:d0:24:19:e9 re0: [FILTER] From ilgiz at reid.ru Mon Oct 13 05:20:07 2008 From: ilgiz at reid.ru (Ilgiz Yanuzakov) Date: Mon Oct 13 05:57:07 2008 Subject: Acer Aspire 3610 Message-ID: <48F2D6E6.4070408@reid.ru> Some errors on boot. ######### #dmesg -a ######### $ dmesg -a Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-PRERELEASE #0: Fri Sep 19 23:05:06 UTC 2008 root@.ufanet.ru:/usr/obj/usr/src/sys/HOME Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) M processor 1.50GHz (1496.40-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8 Features=0xafe9fbff AMD Features=0x100000 real memory = 258867200 (246 MB) avail memory = 243437568 (232 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) cryptosoft0: on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 7932k stolen memory agp0: aperture size is 256M vgapci1: at device 2.1 on pci0 uhci0: port 0x1820-0x183f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1840-0x185f irq 17 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1860-0x187f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1880-0x189f irq 19 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xb0040000-0xb00403ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered pcib1: at device 30.0 on pci0 pci6: on pcib1 rl0: port 0x3000-0x30ff mem 0xb0100000-0xb01000ff irq 20 at device 7.0 on pci6 miibus0: on rl0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:0a:e4:e4:45:50 rl0: [ITHREAD] cbb0: at device 9.0 on pci6 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xb0040800-0xb00409ff,0xb0040400-0xb00404ff irq 21 at device 30.2 on pci0 pcm0: [ITHREAD] pcm0: pci0: at device 30.3 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f irq 16 at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE battery0: on acpi0 acpi_ec0: EcRead: failed waiting to get data ACPI Exception (evregion-0529): AE_NO_HARDWARE_RESPONSE, Returned by Handler for [EmbeddedControl] [20070320] ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.LPCB.EC0_.BAT0._STA] (Node 0xc1da0900), AE_NO_HARDWARE_RESPONSE acpi_acad0: on acpi0 cpu0: on acpi0 p4tcc0: on cpu0 pmtimer0 on isa0 orm0: at iomem 0xcf800-0xd07ff,0xdc000-0xdffff,0xe0000-0xe3fff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub0 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 1496403865 Hz quality 800 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ad0: 38154MB at ata0-master UDMA100 acd0: CDRW at ata0-slave UDMA33 GEOM_LABEL: Label for provider ad0s1 is ntfs/winxp. acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 cd0 at ata0 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed ######### #dmesg -a ######### ############### #sysctl hw.acpi ############### $ sysctl hw.acpi hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 47,0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 95,0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 100,0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: 4 hw.acpi.thermal.tz0._TC2: 3 hw.acpi.thermal.tz0._TSP: 150 hw.acpi.thermal.tz1.temperature: 42,0C hw.acpi.thermal.tz1.active: -1 hw.acpi.thermal.tz1.passive_cooling: 0 hw.acpi.thermal.tz1.thermal_flags: 0 hw.acpi.thermal.tz1._PSV: -1 hw.acpi.thermal.tz1._HOT: -1 hw.acpi.thermal.tz1._CRT: 70,0C hw.acpi.thermal.tz1._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz1._TC1: -1 hw.acpi.thermal.tz1._TC2: -1 hw.acpi.thermal.tz1._TSP: -1 hw.acpi.battery.life: 99 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.acline: 1 hw.acpi.cpu.cx_lowest: C1 ############### #sysctl hw.acpi ############### -- ? ?????????, ?????? ????????, ????????? ????????????? ??? "????". ?. ???, ??. ?????????????? ?????, 44/1 ???./????: (347) 264-97-15 ???. ???: 8 901 8107914 E-mail: ilgiz@reid.ru http://www.reid.ru/ ----------------------------- FreeBSD - The Power to Serve! -------------- next part -------------- /* RSD PTR: OEM=PTLTD, ACPI_Rev=1.0x (0) RSDT=0x0f6e5e2d, cksum=49 */ /* RSDT: Length=60, Revision=1, Checksum=44, OEMID=PTLTD, OEM Table ID= RSDT, OEM Revision=0x6040000, Creator ID= LTP, Creator Revision=0x0 Entries={ 0x0f6e9e78, 0x0f6e9efc, 0x0f6e9fd8, 0x0f6e9f9c, 0x0f6e6064, 0x0f6e5e69 } */ /* FACP: Length=132, Revision=2, Checksum=97, OEMID=INTEL, OEM Table ID=ALVISO, OEM Revision=0x6040000, Creator ID=LOHR, Creator Revision=0x5f FACS=0xf6fafc0, DSDT=0xf6e6246 INT_MODEL=PIC Preferred_PM_Profile=Unspecified (0) SCI_INT=9 SMI_CMD=0xb2, ACPI_ENABLE=0xf0, ACPI_DISABLE=0xf1, S4BIOS_REQ=0xf2 PSTATE_CNT=0x80 PM1a_EVT_BLK=0x1000-0x1003 PM1a_CNT_BLK=0x1004-0x1005 PM2_CNT_BLK=0x1020-0x1020 PM_TMR_BLK=0x1008-0x100b GPE0_BLK=0x1028-0x102f CST_CNT=0x85 P_LVL2_LAT=1 us, P_LVL3_LAT=85 us FLUSH_SIZE=0, FLUSH_STRIDE=0 DUTY_OFFSET=1, DUTY_WIDTH=3 DAY_ALRM=13, MON_ALRM=0, CENTURY=50 IAPC_BOOT_ARCH={LEGACY_DEV,8042} Flags={WBINVD,PROC_C1,SLP_BUTTON,RTC_S4,DCK_CAP,RESET_REG} RESET_REG=0xcf9:0[8] (IO), RESET_VALUE=0x6 */ /* FACS: Length=64, HwSig=0x00000f7b, Firm_Wake_Vec=0x00000000 Global_Lock= Flags= Version=0 */ /* DSDT: Length=15410, Revision=1, Checksum=168, OEMID=INTEL, OEM Table ID=ALVISO, OEM Revision=0x6040000, Creator ID=MSFT, Creator Revision=0x100000e */ /* APIC: Length=104, Revision=1, Checksum=26, OEMID=INTEL, OEM Table ID=ALVISO, OEM Revision=0x6040000, Creator ID=LOHR, Creator Revision=0x5f Local APIC ADDR=0xfee00000 Flags={PC-AT} Type=Local APIC ACPI CPU=0 Flags={ENABLED} APIC ID=0 Type=Local APIC ACPI CPU=1 Flags={DISABLED} APIC ID=1 Type=IO APIC APIC ID=1 INT BASE=0 ADDR=0x00000000fec00000 Type=INT Override BUS=0 IRQ=0 INTR=2 Flags={Polarity=conforming, Trigger=conforming} Type=INT Override BUS=0 IRQ=9 INTR=9 Flags={Polarity=active-hi, Trigger=level} Type=Local NMI ACPI CPU=0 LINT Pin=1 Flags={Polarity=active-hi, Trigger=edge} Type=Local NMI ACPI CPU=1 LINT Pin=1 Flags={Polarity=active-hi, Trigger=edge} */ /* BOOT: Length=40, Revision=1, Checksum=164, OEMID=PTLTD, OEM Table ID=$SBFTBL$, OEM Revision=0x6040000, Creator ID= LTP, Creator Revision=0x1 */ /* MCFG: Length=60, Revision=1, Checksum=127, OEMID=INTEL, OEM Table ID=ALVISO, OEM Revision=0x6040000, Creator ID=LOHR, Creator Revision=0x5f Base Address= 0x00000000e0000000 Segment Group= 0x0000 Start Bus= 0 End Bus= 255 */ /* SSDT: Length=478, Revision=1, Checksum=128, OEMID=PmRef, OEM Table ID=Cpu0Cst, OEM Revision=0x3001, Creator ID=INTL, Creator Revision=0x20030224 */ /* SSDT: Length=507, Revision=1, Checksum=231, OEMID=PmRef, OEM Table ID=CpuPm, OEM Revision=0x3000, Creator ID=INTL, Creator Revision=0x20030224 */ /* * Intel ACPI Component Architecture * AML Disassembler version 20070320 * * Disassembly of /tmp/acpidump.6Ddvdy, Mon Oct 13 10:55:34 2008 * * * Original Table Header: * Signature "DSDT" * Length 0x00003FC3 (16323) * Revision 0x01 * OEM ID "INTEL " * OEM Table ID "ALVISO " * OEM Revision 0x06040000 (100925440) * Creator ID "MSFT" * Creator Revision 0x0100000E (16777230) */ DefinitionBlock ("/tmp/acpidump.aml", "DSDT", 1, "INTEL ", "ALVISO ", 0x06040000) { OperationRegion (PORT, SystemIO, 0x80, 0x01) Field (PORT, ByteAcc, NoLock, Preserve) { P80H, 8 } OperationRegion (IO_T, SystemIO, 0x0800, 0x10) Field (IO_T, ByteAcc, NoLock, Preserve) { Offset (0x02), Offset (0x04), Offset (0x06), Offset (0x08), TRP0, 8, Offset (0x0A), Offset (0x0B), Offset (0x0C), Offset (0x0D), Offset (0x0E), Offset (0x0F), Offset (0x10) } OperationRegion (GPIO, SystemIO, 0x1180, 0x3C) Field (GPIO, ByteAcc, NoLock, Preserve) { GU00, 8, GU01, 8, GU02, 8, GU03, 8, GIO0, 8, GIO1, 8, GIO2, 8, GIO3, 8, Offset (0x0C), GL00, 8, GL01, 8, , 5, GP21, 1, , 1, GP23, 1, , 1, GP25, 1, Offset (0x10), Offset (0x18), GB00, 8, GB01, 8, GB02, 8, GB03, 8, Offset (0x2C), GIV0, 8, GIV1, 8, GIV2, 8, GIV3, 8, GU04, 8, GU05, 8, GU06, 8, GU07, 8, GIO4, 8, GIO5, 8, GIO6, 8, GIO7, 8, , 1, GP33, 1, Offset (0x39), GL05, 8, GL06, 8, GL07, 8 } OperationRegion (MNVS, SystemMemory, 0x0F6EAE4D, 0x0100) Field (MNVS, AnyAcc, Lock, Preserve) { OSYS, 16, SMIF, 8, PRM0, 8, PRM1, 8, SCIF, 8, PRM2, 8, PRM3, 8, LCKF, 8, PRM4, 8, PRM5, 8, P80D, 32, LIDS, 8, PWRS, 8, DBGS, 8, Offset (0x28), APIC, 8, CPUL, 8, CPUH, 8, GV3E, 8, HTTE, 8, WTHT, 8, Offset (0x32), NATP, 8, CMAP, 8, CMBP, 8, LPTP, 8, Offset (0x3C), IGDS, 8, TLST, 8, CADL, 8, PADL, 8, CSTE, 16, NSTE, 16, SSTE, 16, NDID, 8, DID1, 32, DID2, 32, DID3, 32, DID4, 32, DID5, 32, Offset (0x82), GTF0, 56, GTF2, 56, IDEM, 8, Offset (0x96), WNVA, 32, WNVB, 32, WNVC, 32, WNVD, 32, WFLG, 32 } OperationRegion (RCRB, SystemMemory, 0xF0008000, 0x4000) Field (RCRB, DWordAcc, Lock, Preserve) { Offset (0x1000), Offset (0x3000), Offset (0x3404), HPAS, 2, , 5, HPAE, 1, Offset (0x3418), , 1, PATD, 1, SATD, 1, SMBD, 1, AZAD, 1, A97D, 1, Offset (0x341A), RP1D, 1, RP2D, 1, RP3D, 1, RP4D, 1 } Mutex (MSMI, 0x07) Method (PHSR, 2, NotSerialized) { Acquire (MSMI, 0xFFFF) Store (Arg1, PRM0) Store (Arg0, SMIF) Store (Zero, TRP0) Store (PRM0, Local0) Release (MSMI) Return (Local0) } Method (HKEY, 1, NotSerialized) { PHSR (0x1E, Arg0) } Method (LAMN, 1, NotSerialized) { If (\_SB.AMW0.WLMP) { Store (Arg0, \_SB.AMW0.WLID) Notify (\_SB.AMW0, 0xB0) } Else { PHSR (0x1F, Arg0) } } Method (RBEC, 1, NotSerialized) { Return (PHSR (0x20, Arg0)) } Method (WBEC, 2, NotSerialized) { Acquire (MSMI, 0xFFFF) Store (Arg1, PRM1) Store (Arg0, PRM0) Store (0x21, SMIF) Store (Zero, TRP0) Release (MSMI) } Method (MBEC, 3, NotSerialized) { Acquire (MSMI, 0xFFFF) Store (Arg2, PRM2) Store (Arg1, PRM1) Store (Arg0, PRM0) Store (0x22, SMIF) Store (Zero, TRP0) Release (MSMI) } Name (B2ED, Buffer (0x14) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0010 */ 0x00, 0x00, 0x00, 0x00 }) Method (WH15, 2, NotSerialized) { Acquire (MSMI, 0xFFFF) CreateDWordField (Arg1, 0x00, DEAX) CreateDWordField (Arg1, 0x04, DEBX) CreateDWordField (Arg1, 0x08, DECX) CreateDWordField (Arg1, 0x0C, DEDX) Store (DEAX, WNVA) Store (DEBX, WNVB) Store (DECX, WNVC) Store (DEDX, WNVD) Store (0x23, SMIF) Store (Zero, TRP0) Concatenate (WNVA, WNVB, Local0) Concatenate (WNVC, WNVD, Local1) Concatenate (Local0, Local1, B2ED) Store (WFLG, Index (B2ED, 0x10)) Release (MSMI) Return (B2ED) } Mutex (MUTX, 0x00) Name (_S0, Package (0x03) { 0x00, 0x00, 0x00 }) Name (_S3, Package (0x03) { 0x05, 0x05, 0x00 }) Name (_S4, Package (0x03) { 0x06, 0x06, 0x00 }) Name (_S5, Package (0x03) { 0x07, 0x07, 0x00 }) Scope (\_PR) { Processor (CPU0, 0x00, 0x00001010, 0x06) {} Processor (CPU1, 0x01, 0x00001010, 0x06) {} } Name (\DSEN, 0x01) Name (\ECON, 0x00) Name (\GPIC, 0x00) Name (\CTYP, 0x00) Name (\L01C, 0x00) Method (\_PIC, 1, NotSerialized) { Store (Arg0, GPIC) } Method (_PTS, 1, NotSerialized) { Store (Arg0, P80H) If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) { PHSR (0x30, 0x00) } If (LEqual (Arg0, 0x04)) { Store (0x01, \_SB.PCI0.LPCB.EC0.BLNK) } If (LEqual (Arg0, 0x05)) { PHSR (0x31, 0x00) } } Method (_WAK, 1, NotSerialized) { Store (Arg0, P80H) Store (0x00, \_SB.PCI0.LPCB.EC0.KTAF) Store (0x01, \_SB.PCI0.LPCB.EC0.KTEE) If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) { Store (0x00, \_SB.PCI0.LPCB.EC0.MUTE) } Notify (\_SB.PCI0.LPCB.EC0.BAT0, 0x81) } Name (FWSO, "FWSO") Name (_PSC, 0x00) Method (_PS0, 0, NotSerialized) { Store (_PSC, Local0) Store (0x00, _PSC) } Method (_PS3, 0, NotSerialized) { Store (0x03, _PSC) } Scope (\_SI) { Method (_SST, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) {} If (LOr (LEqual (Arg0, 0x01), LEqual (Arg0, 0x02))) {} If (LEqual (Arg0, 0x03)) {} If (LEqual (Arg0, 0x04)) {} } } Scope (\_GPE) { Method (_L01, 0, NotSerialized) { Add (L01C, 0x01, L01C) } Method (_L03, 0, NotSerialized) { Notify (\_SB.PCI0.USB1, 0x02) } Method (_L04, 0, NotSerialized) { Notify (\_SB.PCI0.USB2, 0x02) } Method (_L05, 0, NotSerialized) { If (AZAD) { Notify (\_SB.PCI0.MODM, 0x02) } Else { } } Method (_L09, 0, NotSerialized) { } Method (_L0B, 0, NotSerialized) { Notify (\_SB.PCI0.PCIB, 0x02) } Method (_L0C, 0, NotSerialized) { Notify (\_SB.PCI0.USB3, 0x02) } Method (_L0D, 0, NotSerialized) { Notify (\_SB.PCI0.USB7, 0x02) } Method (_L0E, 0, NotSerialized) { Notify (\_SB.PCI0.USB4, 0x02) } Method (_L1D, 0, NotSerialized) { Store (0x1D, P80H) Notify (\_SB.SLPB, 0x02) } } Scope (\_TZ) { Name (TBSE, 0x0AAC) Name (CRT0, 0x00) Name (PSV0, 0x00) Name (PSVA, 0x00) ThermalZone (TZS0) { Method (_TMP, 0, NotSerialized) { If (\ECON) { Store (\_SB.PCI0.LPCB.EC0.THS0, Local0) Store (\_SB.PCI0.LPCB.EC0.KCSS, Local1) Store (\_SB.PCI0.LPCB.EC0.KOSD, Local2) } Else { Store (RBEC (0x92), Local0) And (Local0, 0x01, Local1) And (Local0, 0x08, Local2) Store (RBEC (0xA8), Local0) } If (LOr (Local1, PSVA)) { If (LGreaterEqual (PSVA, 0x01)) { Subtract (CRT0, 0x02, Local0) } Else { If (LLessEqual (Local0, PSV0)) { Add (PSV0, 0x02, Local0) } } } If (Local2) { If (LLessEqual (Local0, CRT0)) { Add (CRT0, 0x02, Local0) } } Return (C2K (Local0)) } Method (_CRT, 0, NotSerialized) { If (\ECON) { Store (0x20, \_SB.PCI0.LPCB.EC0.TIID) Store (\_SB.PCI0.LPCB.EC0.TSC0, Local0) } Else { WBEC (0x01, 0x20) Store (RBEC (0xD1), Local0) } If (LOr (LGreaterEqual (Local0, 0x80), LLess (Local0, 0x1E))) { Store (0x78, Local0) } Store (Local0, CRT0) Return (C2K (Local0)) } Name (_PSL, Package (0x01) { \_PR.CPU0 }) Method (_PSV, 0, NotSerialized) { If (\ECON) { Store (0x20, \_SB.PCI0.LPCB.EC0.TIID) Store (\_SB.PCI0.LPCB.EC0.TSP0, Local0) } Else { WBEC (0x01, 0x20) Store (RBEC (0xD0), Local0) } If (LOr (LGreaterEqual (Local0, 0x80), LLess (Local0, 0x1E))) { Store (0x5A, Local0) } Store (Local0, PSV0) Return (C2K (Local0)) } Name (_TC1, 0x04) Name (_TC2, 0x03) Name (_TSP, 0x96) } ThermalZone (TZS1) { Method (_TMP, 0, NotSerialized) { If (\ECON) { Store (\_SB.PCI0.LPCB.EC0.THS1, Local0) } Else { Store (RBEC (0xA9), Local0) } Return (C2K (Local0)) } Method (_CRT, 0, NotSerialized) { If (\ECON) { Store (0x20, \_SB.PCI0.LPCB.EC0.TIID) Store (\_SB.PCI0.LPCB.EC0.TSC1, Local0) } Else { WBEC (0x01, 0x20) Store (RBEC (0xD3), Local0) } If (LOr (LGreaterEqual (Local0, 0x80), LLess (Local0, 0x1E))) { Store (0x78, Local0) } Return (C2K (Local0)) } } Method (C2K, 1, NotSerialized) { Store (Arg0, Local0) If (LLessEqual (Local0, 0x10)) { Store (0x1E, Local0) } If (LGreaterEqual (Local0, 0x7F)) { Store (0x1E, Local0) } Add (Multiply (Local0, 0x0A), TBSE, Local0) Return (Local0) } Method (SPSV, 2, NotSerialized) { ShiftLeft (0x01, Arg0, Local0) If (Arg1) { Or (PSVA, Local0, PSVA) } Else { And (PSVA, Not (Local0), PSVA) } } } Method (GETP, 1, Serialized) { If (LEqual (And (Arg0, 0x09), 0x00)) { Return (0xFFFFFFFF) } If (LEqual (And (Arg0, 0x09), 0x08)) { Return (0x0384) } ShiftRight (And (Arg0, 0x0300), 0x08, Local0) ShiftRight (And (Arg0, 0x3000), 0x0C, Local1) Return (Multiply (0x1E, Subtract (0x09, Add (Local0, Local1)) )) } Method (GDMA, 5, Serialized) { If (Arg0) { If (LAnd (Arg1, Arg4)) { Return (0x14) } If (LAnd (Arg2, Arg4)) { Return (Multiply (Subtract (0x04, Arg3), 0x0F)) } Return (Multiply (Subtract (0x04, Arg3), 0x1E)) } Return (0xFFFFFFFF) } Method (GETT, 1, Serialized) { Return (Multiply (0x1E, Subtract (0x09, Add (And (ShiftRight (Arg0, 0x02 ), 0x03), And (Arg0, 0x03))))) } Method (GETF, 3, Serialized) { Name (TMPF, 0x00) If (Arg0) { Or (TMPF, 0x01, TMPF) } If (And (Arg2, 0x02)) { Or (TMPF, 0x02, TMPF) } If (Arg1) { Or (TMPF, 0x04, TMPF) } If (And (Arg2, 0x20)) { Or (TMPF, 0x08, TMPF) } If (And (Arg2, 0x4000)) { Or (TMPF, 0x10, TMPF) } Return (TMPF) } Method (SETP, 3, Serialized) { If (LGreater (Arg0, 0xF0)) { Return (0x08) } Else { If (And (Arg1, 0x02)) { If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02))) { Return (0x2301) } If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, 0x01))) { Return (0x2101) } } Return (0x1001) } } Method (SDMA, 1, Serialized) { If (LLessEqual (Arg0, 0x14)) { Return (0x01) } If (LLessEqual (Arg0, 0x1E)) { Return (0x02) } If (LLessEqual (Arg0, 0x2D)) { Return (0x01) } If (LLessEqual (Arg0, 0x3C)) { Return (0x02) } If (LLessEqual (Arg0, 0x5A)) { Return (0x01) } Return (0x00) } Method (SETT, 3, Serialized) { If (And (Arg1, 0x02)) { If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02))) { Return (0x0B) } If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, 0x01))) { Return (0x09) } } Return (0x04) } Scope (\_SB) { Device (AMW0) { Name (_HID, "*pnp0c14") Name (_UID, 0x00) Name (WLID, 0x00) Name (WLMP, 0x00) Name (_WDG, Buffer (0x3C) { /* 0000 */ 0x81, 0x17, 0xF4, 0xD9, 0x33, 0xF6, 0x00, 0x44, /* 0008 */ 0x93, 0x55, 0x60, 0x17, 0x70, 0xBE, 0xC5, 0x10, /* 0010 */ 0x41, 0x41, 0x01, 0x00, 0x1D, 0x37, 0xC3, 0x67, /* 0018 */ 0xA3, 0x95, 0x37, 0x4C, 0xBB, 0x61, 0xDD, 0x47, /* 0020 */ 0xB4, 0x91, 0xDA, 0xAB, 0x41, 0x42, 0x01, 0x02, /* 0028 */ 0x71, 0xBF, 0xD1, 0x40, 0x2D, 0xA8, 0x59, 0x4E, /* 0030 */ 0xA1, 0x68, 0x39, 0x85, 0xE0, 0x3B, 0x2E, 0x87, /* 0038 */ 0xB0, 0x00, 0x01, 0x08 }) Name (B0ED, Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }) Name (B1ED, Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }) Method (_WED, 1, NotSerialized) { Store (0xB0, P80H) If (LEqual (Arg0, 0xB0)) { Store (WLID, B0ED) Return (B0ED) } } Method (WQAA, 1, NotSerialized) { Store (0xAA, P80H) Return (B1ED) } Method (WSAA, 2, NotSerialized) { Store (0xA1, P80H) CreateDWordField (Arg1, 0x00, DDD0) If (LEqual (DDD0, 0x01)) { Add (DDD0, 0x02, DDD0) Store (DDD0, Index (B1ED, 0x00)) } } Method (WMAB, 3, NotSerialized) { Store (0xAB, P80H) Store (0x01, WLMP) Return (WH15 (Arg1, Arg2)) } } Device (LID0) { Name (_HID, EisaId ("PNP0C0D")) Method (_LID, 0, NotSerialized) { If (\ECON) { Store (\_SB.PCI0.LPCB.EC0.KLID, Local0) } Else { And (\RBEC (0x70), 0x02, Local0) } If (Local0) { Return (0x01) } Else { Return (0x00) } } Method (_PSW, 1, NotSerialized) { If (\ECON) { Store (Arg0, \_SB.PCI0.LPCB.EC0.LIDW) } Else { If (Arg0) { \MBEC (0x72, 0xEF, 0x10) } Else { \MBEC (0x72, 0xEF, 0x00) } } } Name (_PRW, Package (0x02) { 0x1D, 0x03 }) } Device (SLPB) { Name (_HID, EisaId ("PNP0C0E")) Name (_PRW, Package (0x02) { 0x1D, 0x03 }) } Device (PCI0) { Method (_INI, 0, NotSerialized) { If (CondRefOf (_OSI, Local0)) { Store (0x07D1, OSYS) } Else { If (LOr (LEqual (SizeOf (_OS), 0x14), LEqual (SizeOf (_OS), 0x05))) { Store (0x07D0, OSYS) } Else { If (LEqual (SizeOf (_OS), 0x27)) { Store (0x07CF, OSYS) } Else { Store (0x07CE, OSYS) } } } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } Name (_HID, EisaId ("PNP0A08")) Name (_CID, 0x030AD041) Name (_ADR, 0x00) Name (_BBN, 0x00) OperationRegion (HBUS, PCI_Config, 0x40, 0xC0) Field (HBUS, DWordAcc, NoLock, Preserve) { Offset (0x50), , 4, PM0H, 2, Offset (0x51), PM1L, 2, , 2, PM1H, 2, Offset (0x52), PM2L, 2, , 2, PM2H, 2, Offset (0x53), PM3L, 2, , 2, PM3H, 2, Offset (0x54), PM4L, 2, , 2, PM4H, 2, Offset (0x55), PM5L, 2, , 2, PM5H, 2, Offset (0x56), PM6L, 2, , 2, PM6H, 2, Offset (0x57), , 7, HENA, 1, Offset (0x5C), , 3, TOUD, 5, Offset (0xA4), , 6, IGDD, 1 } Name (BUF0, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0x0000, // Granularity 0x0000, // Range Minimum 0x00FF, // Range Maximum 0x0000, // Translation Offset 0x0100, // Length 0x00,, ) DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000CF7, // Range Maximum 0x00000000, // Translation Offset 0x00000CF8, // Length 0x00,, , TypeStatic) IO (Decode16, 0x0CF8, // Range Minimum 0x0CF8, // Range Maximum 0x01, // Alignment 0x08, // Length ) DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity 0x00000D00, // Range Minimum 0x0000FFFF, // Range Maximum 0x00000000, // Translation Offset 0x0000F300, // Length 0x00,, , TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000A0000, // Range Minimum 0x000BFFFF, // Range Maximum 0x00000000, // Translation Offset 0x00020000, // Length 0x00,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000C0000, // Range Minimum 0x000C3FFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y00, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000C4000, // Range Minimum 0x000C7FFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y01, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000C8000, // Range Minimum 0x000CBFFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y02, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000CC000, // Range Minimum 0x000CFFFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y03, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000D0000, // Range Minimum 0x000D3FFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y04, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000D4000, // Range Minimum 0x000D7FFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y05, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000D8000, // Range Minimum 0x000DBFFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y06, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000DC000, // Range Minimum 0x000DFFFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y07, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000E0000, // Range Minimum 0x000E3FFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y08, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000E4000, // Range Minimum 0x000E7FFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y09, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000E8000, // Range Minimum 0x000EBFFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y0A, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000EC000, // Range Minimum 0x000EFFFF, // Range Maximum 0x00000000, // Translation Offset 0x00004000, // Length 0x00,, _Y0B, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x000F0000, // Range Minimum 0x000FFFFF, // Range Maximum 0x00000000, // Translation Offset 0x00010000, // Length 0x00,, _Y0C, AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Granularity 0x00000000, // Range Minimum 0xFEBFFFFF, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0x00,, _Y0D, AddressRangeMemory, TypeStatic) }) Method (_CRS, 0, Serialized) { If (PM1L) { CreateDWordField (BUF0, \_SB.PCI0._Y00._LEN, C0LN) Store (Zero, C0LN) } If (LEqual (PM1L, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y00._RW, C0RW) Store (Zero, C0RW) } If (PM1H) { CreateDWordField (BUF0, \_SB.PCI0._Y01._LEN, C4LN) Store (Zero, C4LN) } If (LEqual (PM1H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y01._RW, C4RW) Store (Zero, C4RW) } If (PM2L) { CreateDWordField (BUF0, \_SB.PCI0._Y02._LEN, C8LN) Store (Zero, C8LN) } If (LEqual (PM2L, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y02._RW, C8RW) Store (Zero, C8RW) } If (PM2H) { CreateDWordField (BUF0, \_SB.PCI0._Y03._LEN, CCLN) Store (Zero, CCLN) } If (LEqual (PM2H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y03._RW, CCRW) Store (Zero, CCRW) } If (PM3L) { CreateDWordField (BUF0, \_SB.PCI0._Y04._LEN, D0LN) Store (Zero, D0LN) } If (LEqual (PM3L, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y04._RW, D0RW) Store (Zero, D0RW) } If (PM3H) { CreateDWordField (BUF0, \_SB.PCI0._Y05._LEN, D4LN) Store (Zero, D4LN) } If (LEqual (PM3H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y05._RW, D4RW) Store (Zero, D4RW) } If (PM4L) { CreateDWordField (BUF0, \_SB.PCI0._Y06._LEN, D8LN) Store (Zero, D8LN) } If (LEqual (PM4L, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y06._RW, D8RW) Store (Zero, D8RW) } If (PM4H) { CreateDWordField (BUF0, \_SB.PCI0._Y07._LEN, DCLN) Store (Zero, DCLN) } If (LEqual (PM4H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y07._RW, DCRW) Store (Zero, DCRW) } If (PM5L) { CreateDWordField (BUF0, \_SB.PCI0._Y08._LEN, E0LN) Store (Zero, E0LN) } If (LEqual (PM5L, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y08._RW, E0RW) Store (Zero, E0RW) } If (PM5H) { CreateDWordField (BUF0, \_SB.PCI0._Y09._LEN, E4LN) Store (Zero, E4LN) } If (LEqual (PM5H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y09._RW, E4RW) Store (Zero, E4RW) } If (PM6L) { CreateDWordField (BUF0, \_SB.PCI0._Y0A._LEN, E8LN) Store (Zero, E8LN) } If (LEqual (PM6L, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y0A._RW, E8RW) Store (Zero, E8RW) } If (PM6H) { CreateDWordField (BUF0, \_SB.PCI0._Y0B._LEN, ECLN) Store (Zero, ECLN) } If (LEqual (PM6H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y0B._RW, ECRW) Store (Zero, ECRW) } If (PM0H) { CreateDWordField (BUF0, \_SB.PCI0._Y0C._LEN, F0LN) Store (Zero, F0LN) } If (LEqual (PM0H, 0x01)) { CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, F0RW) Store (Zero, F0RW) } CreateDWordField (BUF0, \_SB.PCI0._Y0D._MIN, M1MN) CreateDWordField (BUF0, \_SB.PCI0._Y0D._MAX, M1MX) CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, M1LN) ShiftLeft (TOUD, 0x1B, M1MN) Add (Subtract (M1MX, M1MN), 0x01, M1LN) Return (BUF0) } Method (_PRT, 0, NotSerialized) { If (GPIC) { Return (Package (0x11) { Package (0x04) { 0x0001FFFF, 0x00, 0x00, 0x10 }, Package (0x04) { 0x0002FFFF, 0x00, 0x00, 0x10 }, Package (0x04) { 0x0007FFFF, 0x00, 0x00, 0x10 }, Package (0x04) { 0x001CFFFF, 0x00, 0x00, 0x11 }, Package (0x04) { 0x001CFFFF, 0x01, 0x00, 0x10 }, Package (0x04) { 0x001CFFFF, 0x02, 0x00, 0x12 }, Package (0x04) { 0x001CFFFF, 0x03, 0x00, 0x13 }, Package (0x04) { 0x001DFFFF, 0x00, 0x00, 0x17 }, Package (0x04) { 0x001DFFFF, 0x01, 0x00, 0x11 }, Package (0x04) { 0x001DFFFF, 0x02, 0x00, 0x12 }, Package (0x04) { 0x001DFFFF, 0x03, 0x00, 0x13 }, Package (0x04) { 0x001DFFFF, 0x07, 0x00, 0x17 }, Package (0x04) { 0x001EFFFF, 0x00, 0x00, 0x15 }, Package (0x04) { 0x001EFFFF, 0x01, 0x00, 0x15 }, Package (0x04) { 0x001FFFFF, 0x00, 0x00, 0x10 }, Package (0x04) { 0x001FFFFF, 0x01, 0x00, 0x11 }, Package (0x04) { 0x001FFFFF, 0x03, 0x00, 0x11 } }) } Else { Return (Package (0x11) { Package (0x04) { 0x0001FFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 }, Package (0x04) { 0x0002FFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 }, Package (0x04) { 0x0007FFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 }, Package (0x04) { 0x001CFFFF, 0x00, \_SB.PCI0.LPCB.LNKB, 0x00 }, Package (0x04) { 0x001CFFFF, 0x01, \_SB.PCI0.LPCB.LNKA, 0x00 }, Package (0x04) { 0x001CFFFF, 0x02, \_SB.PCI0.LPCB.LNKC, 0x00 }, Package (0x04) { 0x001CFFFF, 0x03, \_SB.PCI0.LPCB.LNKD, 0x00 }, Package (0x04) { 0x001DFFFF, 0x00, \_SB.PCI0.LPCB.LNKH, 0x00 }, Package (0x04) { 0x001DFFFF, 0x01, \_SB.PCI0.LPCB.LNKB, 0x00 }, Package (0x04) { 0x001DFFFF, 0x02, \_SB.PCI0.LPCB.LNKC, 0x00 }, Package (0x04) { 0x001DFFFF, 0x03, \_SB.PCI0.LPCB.LNKD, 0x00 }, Package (0x04) { 0x001DFFFF, 0x07, \_SB.PCI0.LPCB.LNKH, 0x00 }, Package (0x04) { 0x001EFFFF, 0x00, \_SB.PCI0.LPCB.LNKF, 0x00 }, Package (0x04) { 0x001EFFFF, 0x01, \_SB.PCI0.LPCB.LNKF, 0x00 }, Package (0x04) { 0x001FFFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 }, Package (0x04) { 0x001FFFFF, 0x01, \_SB.PCI0.LPCB.LNKB, 0x00 }, Package (0x04) { 0x001FFFFF, 0x03, \_SB.PCI0.LPCB.LNKB, 0x00 } }) } } Device (PEGP) { Name (_ADR, 0x00010000) Method (_PRT, 0, NotSerialized) { If (GPIC) { Return (Package (0x04) { Package (0x04) { 0xFFFF, 0x00, 0x00, 0x10 }, Package (0x04) { 0xFFFF, 0x01, 0x00, 0x11 }, Package (0x04) { 0xFFFF, 0x02, 0x00, 0x12 }, Package (0x04) { 0xFFFF, 0x03, 0x00, 0x13 } }) } Else { Return (Package (0x04) { Package (0x04) { 0xFFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 }, Package (0x04) { 0xFFFF, 0x01, \_SB.PCI0.LPCB.LNKB, 0x00 }, Package (0x04) { 0xFFFF, 0x02, \_SB.PCI0.LPCB.LNKC, 0x00 }, Package (0x04) { 0xFFFF, 0x03, \_SB.PCI0.LPCB.LNKD, 0x00 } }) } } } Device (GFX0) { Name (_ADR, 0x00020000) Method (_DOS, 1, NotSerialized) { Store (And (Arg0, 0x03), DSEN) } Method (_DOD, 0, NotSerialized) { Return (Package (0x04) { 0x0100, 0x0410, 0x0240, 0x0320 }) } Device (CRT) { Name (_ADR, 0x0100) Method (_DCS, 0, NotSerialized) { PHSR (0x25, 0x00) If (And (CSTE, 0x0101)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0101)) { Return (0x01) } Return (0x00) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (TV0) { Name (_ADR, 0x0240) Method (_DCS, 0, NotSerialized) { PHSR (0x25, 0x00) If (And (CSTE, 0x0202)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0202)) { Return (0x01) } Return (0x00) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (DVI) { Name (_ADR, 0x0320) Method (_DCS, 0, NotSerialized) { PHSR (0x25, 0x00) If (And (CSTE, 0x0404)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0404)) { Return (0x01) } Return (0x00) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (LCD) { Name (_ADR, 0x0410) Method (_DCS, 0, NotSerialized) { PHSR (0x25, 0x00) If (And (CSTE, 0x0808)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0808)) { Return (0x01) } Return (0x00) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } } Device (USB1) { Name (_ADR, 0x001D0000) OperationRegion (U1CS, PCI_Config, 0xC4, 0x04) Field (U1CS, DWordAcc, NoLock, Preserve) { U1EN, 2 } Name (_PRW, Package (0x02) { 0x03, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U1EN) } Else { Store (0x00, U1EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB2) { Name (_ADR, 0x001D0001) OperationRegion (U2CS, PCI_Config, 0xC4, 0x04) Field (U2CS, DWordAcc, NoLock, Preserve) { U2EN, 2 } Name (_PRW, Package (0x02) { 0x04, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U2EN) } Else { Store (0x00, U2EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB3) { Name (_ADR, 0x001D0002) OperationRegion (U2CS, PCI_Config, 0xC4, 0x04) Field (U2CS, DWordAcc, NoLock, Preserve) { U3EN, 2 } Name (_PRW, Package (0x02) { 0x0C, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U3EN) } Else { Store (0x00, U3EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB4) { Name (_ADR, 0x001D0003) OperationRegion (U4CS, PCI_Config, 0xC4, 0x04) Field (U4CS, DWordAcc, NoLock, Preserve) { U4EN, 2 } Name (_PRW, Package (0x02) { 0x0E, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U4EN) } Else { Store (0x00, U4EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB7) { Name (_ADR, 0x001D0007) Name (_PRW, Package (0x02) { 0x0D, 0x03 }) } Device (PCIB) { Name (_ADR, 0x001E0000) Device (LANB) { Name (_ADR, 0x00070000) Name (_PRW, Package (0x02) { 0x0B, 0x05 }) } Method (_PRT, 0, NotSerialized) { If (GPIC) { Return (Package (0x06) { Package (0x04) { 0x0005FFFF, 0x00, 0x00, 0x15 }, Package (0x04) { 0x0007FFFF, 0x00, 0x00, 0x14 }, Package (0x04) { 0x0009FFFF, 0x00, 0x00, 0x16 }, Package (0x04) { 0x0009FFFF, 0x01, 0x00, 0x16 }, Package (0x04) { 0x0009FFFF, 0x02, 0x00, 0x16 }, Package (0x04) { 0x0009FFFF, 0x03, 0x00, 0x16 } }) } Else { Return (Package (0x06) { Package (0x04) { 0x0005FFFF, 0x00, \_SB.PCI0.LPCB.LNKF, 0x00 }, Package (0x04) { 0x0007FFFF, 0x00, \_SB.PCI0.LPCB.LNKE, 0x00 }, Package (0x04) { 0x0009FFFF, 0x00, \_SB.PCI0.LPCB.LNKG, 0x00 }, Package (0x04) { 0x0009FFFF, 0x01, \_SB.PCI0.LPCB.LNKG, 0x00 }, Package (0x04) { 0x0009FFFF, 0x02, \_SB.PCI0.LPCB.LNKG, 0x00 }, Package (0x04) { 0x0009FFFF, 0x03, \_SB.PCI0.LPCB.LNKG, 0x00 } }) } } } Device (AUD0) { Name (_ADR, 0x001E0002) } Device (MODM) { Name (_ADR, 0x001E0003) Name (_PRW, Package (0x02) { 0x05, 0x03 }) } Device (LPCB) { Name (_ADR, 0x001F0000) OperationRegion (LPC0, PCI_Config, 0x40, 0xC0) Field (LPC0, AnyAcc, NoLock, Preserve) { Offset (0x20), PARC, 8, PBRC, 8, PCRC, 8, PDRC, 8, Offset (0x28), PERC, 8, PFRC, 8, PGRC, 8, PHRC, 8, Offset (0x40), IOD0, 8, IOD1, 8 } Device (LNKA) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x01) Method (_DIS, 0, Serialized) { Store (0x80, PARC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLA, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y0E) {} }) CreateWordField (RTLA, \_SB.PCI0.LPCB.LNKA._CRS._Y0E._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PARC, 0x0F), IRQ0) Return (RTLA) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PARC) } Method (_STA, 0, Serialized) { If (And (PARC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKB) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x02) Method (_DIS, 0, Serialized) { Store (0x80, PBRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLB, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y0F) {} }) CreateWordField (RTLB, \_SB.PCI0.LPCB.LNKB._CRS._Y0F._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PBRC, 0x0F), IRQ0) Return (RTLB) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PBRC) } Method (_STA, 0, Serialized) { If (And (PBRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKC) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x03) Method (_DIS, 0, Serialized) { Store (0x80, PCRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLC, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y10) {} }) CreateWordField (RTLC, \_SB.PCI0.LPCB.LNKC._CRS._Y10._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PCRC, 0x0F), IRQ0) Return (RTLC) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PCRC) } Method (_STA, 0, Serialized) { If (And (PCRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKD) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x04) Method (_DIS, 0, Serialized) { Store (0x80, PDRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLD, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y11) {} }) CreateWordField (RTLD, \_SB.PCI0.LPCB.LNKD._CRS._Y11._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PDRC, 0x0F), IRQ0) Return (RTLD) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PDRC) } Method (_STA, 0, Serialized) { If (And (PDRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKE) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x05) Method (_DIS, 0, Serialized) { Store (0x80, PERC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLE, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y12) {} }) CreateWordField (RTLE, \_SB.PCI0.LPCB.LNKE._CRS._Y12._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PERC, 0x0F), IRQ0) Return (RTLE) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PERC) } Method (_STA, 0, Serialized) { If (And (PERC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKF) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x06) Method (_DIS, 0, Serialized) { Store (0x80, PFRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLF, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y13) {} }) CreateWordField (RTLF, \_SB.PCI0.LPCB.LNKF._CRS._Y13._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PFRC, 0x0F), IRQ0) Return (RTLF) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PFRC) } Method (_STA, 0, Serialized) { If (And (PFRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKG) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x07) Method (_DIS, 0, Serialized) { Store (0x80, PGRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLG, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y14) {} }) CreateWordField (RTLG, \_SB.PCI0.LPCB.LNKG._CRS._Y14._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PGRC, 0x0F), IRQ0) Return (RTLG) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PGRC) } Method (_STA, 0, Serialized) { If (And (PGRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKH) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x08) Method (_DIS, 0, Serialized) { Store (0x80, PHRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {10,11} }) Method (_CRS, 0, Serialized) { Name (RTLH, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, _Y15) {} }) CreateWordField (RTLH, \_SB.PCI0.LPCB.LNKH._CRS._Y15._INT, IRQ0) Store (Zero, IRQ0) ShiftLeft (0x01, And (PHRC, 0x0F), IRQ0) Return (RTLH) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PHRC) } Method (_STA, 0, Serialized) { If (And (PHRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (EC0) { Name (_HID, EisaId ("PNP0C09")) Name (_GPE, 0x17) Method (_STA, 0, NotSerialized) { Return (0x0F) } Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0062, // Range Minimum 0x0062, // Range Maximum 0x00, // Alignment 0x01, // Length ) IO (Decode16, 0x0066, // Range Minimum 0x0066, // Range Maximum 0x00, // Alignment 0x01, // Length ) }) OperationRegion (ECO1, SystemIO, 0x62, 0x01) Field (ECO1, ByteAcc, Lock, Preserve) { PX62, 8 } OperationRegion (ECO2, SystemIO, 0x66, 0x01) Field (ECO2, ByteAcc, Lock, Preserve) { PX66, 8 } OperationRegion (RAM, EmbeddedControl, 0x00, 0xFF) Field (RAM, AnyAcc, Lock, Preserve) { Offset (0x0A), , 1, BLNK, 1, Offset (0x70), , 1, KLID, 1, , 3, KACS, 1, Offset (0x71), , 2, EZ4D, 1, MUTE, 1, KBID, 3, Offset (0x72), , 2, KEYW, 1, TPDW, 1, LIDW, 1, BL2W, 1 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0x01), TIID, 8, Offset (0x10), , 1, KTEE, 1, Offset (0x11), KPPS, 1, Offset (0x91), TTID, 8, KCSS, 1, KCTT, 1, KDTT, 1, KOSD, 1, KVTP, 1, Offset (0xA8), THS0, 8, THS1, 8, THS2, 8, THS3, 8, THS4, 8, THS5, 8, THS6, 8, THS7, 8 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0x92), KTAF, 8 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0x92), THSL, 4 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0xD0), TSP0, 8, TSC0, 8, TSP1, 8, TSC1, 8, TSP2, 8, TSC2, 8, TSP3, 8, TSC3, 8, TSP4, 8, TSC4, 8, TSP5, 8, TSC5, 8, TSP6, 8, TSC6, 8, TSP7, 8, TSC7, 8 } Method (_REG, 2, NotSerialized) { If (LEqual (Arg0, 0x03)) { Store (Arg1, ECON) TINI () } } Method (TINI, 0, NotSerialized) { Store (0x00, KTAF) Store (0x01, KTEE) } Method (_Q16, 0, NotSerialized) { Store (0x16, P80H) LAMN (0x01) } Method (_Q24, 0, NotSerialized) { Store (0x24, P80H) LAMN (0x6A) } Method (_Q25, 0, NotSerialized) { Store (0x25, P80H) LAMN (0x6D) } Method (_Q17, 0, NotSerialized) { Store (0x17, P80H) Notify (\_SB.SLPB, 0x80) } Method (HKDS, 1, NotSerialized) { If (LEqual (0x00, DSEN)) { If (LEqual (Arg0, 0x10)) { Store (PHSR (0x27, 0x00), Local0) Increment (Local0) If (LGreaterEqual (Local0, 0x03)) { Store (0x00, Local0) } } Else { Store (Arg0, Local0) } If (LEqual (Local0, 0x00)) { Store (0x0101, NSTE) } If (LEqual (Local0, 0x01)) { Store (0x0808, NSTE) } If (LEqual (Local0, 0x02)) { Store (0x0909, NSTE) } If (LEqual (Local0, 0x03)) { Store (0x0404, NSTE) } If (LEqual (Local0, 0x04)) { Store (0x0202, NSTE) } If (LEqual (Local0, 0x05)) { Store (0x0C0C, NSTE) } If (LEqual (Local0, 0x06)) { Store (0x0A0A, NSTE) } If (LEqual (\_SB.PCI0.IGDD, 0x00)) { Notify (\_SB.PCI0.GFX0, 0x80) } Else { } } If (LEqual (0x01, DSEN)) { PHSR (0x26, 0x00) } } Method (_Q19, 0, NotSerialized) { Store (0x19, P80H) If (LEqual (PHSR (0x24, 0x00), 0x01)) { LAMN (0x05) } Else { HKDS (0x10) } } Method (_Q80, 0, NotSerialized) { Store (0x80, P80H) HKDS (0x00) } Method (_Q81, 0, NotSerialized) { Store (0x81, P80H) HKDS (0x01) } Method (_Q82, 0, NotSerialized) { Store (0x82, P80H) HKDS (0x02) } Method (_Q83, 0, NotSerialized) { Store (0x83, P80H) HKDS (0x03) } Method (_Q84, 0, NotSerialized) { Store (0x84, P80H) HKDS (0x04) } Method (_Q85, 0, NotSerialized) { Store (0x85, P80H) HKDS (0x05) } Method (_Q86, 0, NotSerialized) { Store (0x86, P80H) HKDS (0x06) } Method (_Q1A, 0, NotSerialized) { Store (0x1A, P80H) LAMN (0x06) } Method (_Q5C, 0, NotSerialized) { Store (0x5C, P80H) HKEY (0x5C) } Method (_Q1E, 0, NotSerialized) { Store (0x1E, P80H) LAMN (0x20) } Method (_Q1F, 0, NotSerialized) { Store (0x1F, P80H) LAMN (0x21) } Method (_Q22, 0, NotSerialized) { Store (0x22, P80H) LAMN (0x07) } Method (_Q10, 0, NotSerialized) { Store (0x10, P80H) LAMN (0x30) } Method (_Q11, 0, NotSerialized) { Store (0x11, P80H) LAMN (0x36) } Method (_Q12, 0, NotSerialized) { Store (0x12, P80H) LAMN (0x31) } Method (_Q13, 0, NotSerialized) { Store (0x13, P80H) LAMN (0x11) } Method (_Q14, 0, NotSerialized) { Store (0x14, P80H) LAMN (0x12) } Method (_Q15, 0, NotSerialized) { Store (0x15, P80H) LAMN (0x13) } Method (_Q1B, 0, NotSerialized) { Store (0x1B, P80H) LAMN (0x08) } Method (_Q23, 0, NotSerialized) { Store (0x23, P80H) LAMN (0x44) } Method (_Q32, 0, NotSerialized) { Store (0x32, P80H) HKEY (0x32) Store (0x00, KCTT) } Method (_Q33, 0, NotSerialized) { Store (0x33, P80H) Store (0x00, KCSS) NTMR () } Method (_Q34, 0, NotSerialized) { Store (0x34, P80H) Store (0x01, KCSS) NTMR () } Method (_Q35, 0, NotSerialized) { Store (0x35, P80H) HKEY (0x35) Store (0x01, KCTT) } Method (_Q36, 0, NotSerialized) { Store (0x36, P80H) Store (0x01, KOSD) Sleep (0x01F4) NTMR () } Method (_Q40, 0, NotSerialized) { Store (0x40, P80H) HKEY (0x40) Notify (\_SB.PCI0.LPCB.EC0.BAT0, 0x81) } Method (_Q41, 0, NotSerialized) { Store (0x41, P80H) Notify (\_SB.PCI0.LPCB.EC0.BAT0, 0x81) } Method (_Q48, 0, NotSerialized) { Store (0x48, P80H) HKEY (0x48) Notify (\_SB.PCI0.LPCB.EC0.BAT0, 0x80) } Method (_Q4C, 0, NotSerialized) { Store (0x4C, P80H) If (B0ST) { Notify (\_SB.PCI0.LPCB.EC0.BAT0, 0x80) } } Method (_Q50, 0, NotSerialized) { Store (0x50, P80H) Notify (\_SB.PCI0.LPCB.EC0.ADP1, 0x80) } Method (_Q51, 0, NotSerialized) { Store (0x51, P80H) Notify (\_SB.PCI0.LPCB.EC0.ADP1, 0x80) } Method (_Q52, 0, NotSerialized) { Store (0x52, P80H) Notify (\_SB.LID0, 0x80) } Method (_Q53, 0, NotSerialized) { Store (0x53, P80H) Notify (\_SB.LID0, 0x80) } Method (NTMR, 0, NotSerialized) { Notify (\_TZ.TZS0, 0x80) Notify (\_TZ.TZS1, 0x80) } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0x02), NBID, 8, Offset (0x88), NB0A, 1, , 3, NBL2, 1, Offset (0x89), NB1A, 1 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0x88), NB0S, 8, NB1S, 8 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0xE0), BSRC, 16, BSFC, 16, BSPE, 16, BSAC, 16, BSVO, 16, , 15, BSCM, 1, BSCU, 16, BSBS, 8 } Field (RAM, AnyAcc, Lock, Preserve) { Offset (0xE0), BSDC, 16, BSDV, 16, BSSN, 16 } Field (RAM, ByteAcc, NoLock, Preserve) { Offset (0xE0), BSMN, 128 } Field (RAM, ByteAcc, NoLock, Preserve) { Offset (0xE0), BSDN, 128 } Field (RAM, ByteAcc, NoLock, Preserve) { Offset (0xE0), BSCH, 128 } Mutex (BATM, 0x07) Method (GBIF, 3, NotSerialized) { Acquire (BATM, 0xFFFF) If (Arg2) { Store (0xFFFFFFFF, Index (Arg1, 0x01)) Store (0xFFFFFFFF, Index (Arg1, 0x02)) Store (0xFFFFFFFF, Index (Arg1, 0x04)) Store (0x00, Index (Arg1, 0x05)) Store (0x00, Index (Arg1, 0x06)) } Else { And (Arg0, 0xF0, NBID) Store (BSCM, Local0) XOr (Local0, 0x01, Index (Arg1, 0x00)) Or (Arg0, 0x01, NBID) If (Local0) { Multiply (BSDC, 0x0A, Local1) } Else { Store (BSDC, Local1) } Store (Local1, Index (Arg1, 0x01)) And (Arg0, 0xF0, NBID) If (Local0) { Multiply (BSFC, 0x0A, Local2) } Else { Store (BSFC, Local2) } Store (Local2, Index (Arg1, 0x02)) Or (Arg0, 0x01, NBID) Store (BSDV, Index (Arg1, 0x04)) Divide (Local2, 0x64, Local7, Local6) Multiply (Local6, 0x05, Local3) Store (Local3, Index (Arg1, 0x05)) Multiply (Local6, 0x03, Local4) Store (Local4, Index (Arg1, 0x06)) Subtract (Local3, Local4, Index (Arg1, 0x07)) Subtract (Local2, Local3, Index (Arg1, 0x08)) Store (BSSN, Local7) Name (SERN, Buffer (0x06) { " " }) Store (0x04, Local6) While (Local7) { Divide (Local7, 0x0A, Local5, Local7) Add (Local5, 0x30, Index (SERN, Local6)) Decrement (Local6) } Store (SERN, Index (Arg1, 0x0A)) If (LGreater (Local1, 0x1000)) { Store ("Bat 8Cell", Index (Arg1, 0x09)) } Else { Store ("Bat 4Cell", Index (Arg1, 0x09)) } Or (Arg0, 0x04, NBID) Store (BSCH, Index (Arg1, 0x0B)) Store ("Acer", Index (Arg1, 0x0C)) } Release (BATM) Return (Arg1) } Method (GBST, 4, NotSerialized) { Acquire (BATM, 0xFFFF) If (And (Arg1, 0x02)) { Store (0x02, Local0) } Else { If (And (Arg1, 0x04)) { Store (0x01, Local0) } Else { Store (0x00, Local0) } } If (NBL2) { Or (Local0, 0x04, Local0) } If (And (Arg1, 0x01)) { And (Arg0, 0xF0, NBID) Store (BSAC, Local1) If (Arg2) { Multiply (BSRC, 0x0A, Local2) } Else { Store (BSRC, Local2) } Store (BSVO, Local3) If (LGreaterEqual (Local1, 0x8000)) { If (And (Local0, 0x01)) { Subtract (0x00010000, Local1, Local1) } Else { Store (0x00, Local1) } } Else { If (LEqual (And (Local0, 0x02), 0x00)) { Store (0x00, Local1) } } If (Arg2) { Multiply (Local3, Local1, Local1) Divide (Local1, 0x03E8, Local7, Local1) } } Else { Store (0x00, Local0) Store (0xFFFFFFFF, Local1) Store (0xFFFFFFFF, Local2) Store (0xFFFFFFFF, Local3) } Store (Local0, Index (Arg3, 0x00)) Store (Local1, Index (Arg3, 0x01)) Store (Local2, Index (Arg3, 0x02)) Store (Local3, Index (Arg3, 0x03)) Release (BATM) Return (Arg3) } Name (B0ST, 0x00) Device (BAT0) { Name (_HID, EisaId ("PNP0C0A")) Name (_UID, 0x01) Method (_PCL, 0, NotSerialized) { Return (\_SB) } Name (B0IP, Package (0x0D) { 0x01, 0xFFFFFFFF, 0xFFFFFFFF, 0x01, 0xFFFFFFFF, 0x00, 0x00, 0x5A, 0x5A, "", "100", "Lion", 0x00 }) Name (B0SP, Package (0x04) { 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }) Method (_STA, 0, NotSerialized) { If (\ECON) { Store (NB0A, Local1) } Else { ShiftRight (RBEC (0x88), 0x00, Local0) And (Local0, 0x01, Local1) } Store (Local1, B0ST) If (Local1) { Return (0x1F) } Else { Return (0x0F) } } Method (_BIF, 0, NotSerialized) { If (\ECON) { Store (NB0A, Local0) } Else { ShiftRight (RBEC (0x88), 0x00, Local0) } And (Local0, 0x01, Local6) Store (0x14, Local7) While (LAnd (Local6, Local7)) { If (\ECON) { Store (NB0S, Local1) } Else { Store (RBEC (0x88), Local1) } If (And (Local1, 0x08)) { Store (0x00, Local6) } Else { Sleep (0x01F4) Decrement (Local7) } } Return (GBIF (0x00, B0IP, Local6)) } Method (_BST, 0, NotSerialized) { XOr (DerefOf (Index (B0IP, 0x00)), 0x01, Local0) If (\ECON) { Store (NB0S, Local1) } Else { Store (RBEC (0x88), Local1) } Return (GBST (0x00, Local1, Local0, B0SP)) } } Name (ACST, 0x01) Device (ADP1) { Name (_HID, "ACPI0003") Method (_PSR, 0, NotSerialized) { If (ECON) { Store (KACS, Local1) } Else { Store (RBEC (0x70), Local0) And (Local0, 0x20, Local1) } If (Local1) { Store (0x01, ACST) } Else { Store (0x00, ACST) } Return (ACST) } Method (_PCL, 0, NotSerialized) { Return (\_SB) } Method (_STA, 0, NotSerialized) { Return (0x0F) } } } Device (DMAC) { Name (_HID, EisaId ("PNP0200")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0000, // Range Minimum 0x0000, // Range Maximum 0x01, // Alignment 0x20, // Length ) IO (Decode16, 0x0081, // Range Minimum 0x0081, // Range Maximum 0x01, // Alignment 0x11, // Length ) IO (Decode16, 0x0093, // Range Minimum 0x0093, // Range Maximum 0x01, // Alignment 0x0D, // Length ) IO (Decode16, 0x00C0, // Range Minimum 0x00C0, // Range Maximum 0x01, // Alignment 0x20, // Length ) DMA (Compatibility, NotBusMaster, Transfer8_16, ) {4} }) } Device (FWHD) { Name (_HID, EisaId ("INT0800")) Name (_CRS, ResourceTemplate () { Memory32Fixed (ReadOnly, 0xFF800000, // Address Base 0x00800000, // Address Length ) }) } Device (HPET) { Name (_HID, EisaId ("PNP0103")) Name (BUF0, ResourceTemplate () { IRQNoFlags () {0} IRQNoFlags () {8} Memory32Fixed (ReadOnly, 0xFED00000, // Address Base 0x00000400, // Address Length _Y16) }) Method (_STA, 0, NotSerialized) { If (LGreaterEqual (OSYS, 0x07D1)) { If (HPAE) { Return (0x0F) } } Else { If (HPAE) { Return (0x0B) } } Return (0x00) } Method (_CRS, 0, Serialized) { If (HPAE) { CreateDWordField (BUF0, \_SB.PCI0.LPCB.HPET._Y16._BAS, HPT0) If (LEqual (HPAS, 0x01)) { Store (0xFED01000, HPT0) } If (LEqual (HPAS, 0x02)) { Store (0xFED02000, HPT0) } If (LEqual (HPAS, 0x03)) { Store (0xFED03000, HPT0) } } Return (BUF0) } } Device (IPIC) { Name (_HID, EisaId ("PNP0000")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0020, // Range Minimum 0x0020, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0024, // Range Minimum 0x0024, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0028, // Range Minimum 0x0028, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x002C, // Range Minimum 0x002C, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0030, // Range Minimum 0x0030, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0034, // Range Minimum 0x0034, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0038, // Range Minimum 0x0038, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x003C, // Range Minimum 0x003C, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00A0, // Range Minimum 0x00A0, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00A4, // Range Minimum 0x00A4, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00A8, // Range Minimum 0x00A8, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00AC, // Range Minimum 0x00AC, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00B0, // Range Minimum 0x00B0, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00B4, // Range Minimum 0x00B4, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00B8, // Range Minimum 0x00B8, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x00BC, // Range Minimum 0x00BC, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x04D0, // Range Minimum 0x04D0, // Range Maximum 0x01, // Alignment 0x02, // Length ) IRQNoFlags () {2} }) } Device (MATH) { Name (_HID, EisaId ("PNP0C04")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x00F0, // Range Minimum 0x00F0, // Range Maximum 0x01, // Alignment 0x01, // Length ) IRQNoFlags () {13} }) } Device (MBD0) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x01) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x002E, // Range Minimum 0x002E, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0061, // Range Minimum 0x0061, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x0063, // Range Minimum 0x0063, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x0065, // Range Minimum 0x0065, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x0067, // Range Minimum 0x0067, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x0080, // Range Minimum 0x0080, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x0092, // Range Minimum 0x0092, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x00B2, // Range Minimum 0x00B2, // Range Maximum 0x01, // Alignment 0x02, // Length ) IO (Decode16, 0x0800, // Range Minimum 0x0800, // Range Maximum 0x01, // Alignment 0x10, // Length ) IO (Decode16, 0x1000, // Range Minimum 0x1000, // Range Maximum 0x01, // Alignment 0x80, // Length ) IO (Decode16, 0x1180, // Range Minimum 0x1180, // Range Maximum 0x01, // Alignment 0x40, // Length ) IO (Decode16, 0x1200, // Range Minimum 0x1200, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x1204, // Range Minimum 0x1204, // Range Maximum 0x01, // Alignment 0x01, // Length ) Memory32Fixed (ReadWrite, 0xE0000000, // Address Base 0x10000000, // Address Length ) Memory32Fixed (ReadWrite, 0xF0000000, // Address Base 0x00004000, // Address Length ) Memory32Fixed (ReadWrite, 0xF0004000, // Address Base 0x00001000, // Address Length ) Memory32Fixed (ReadWrite, 0xF0005000, // Address Base 0x00001000, // Address Length ) Memory32Fixed (ReadWrite, 0xF0008000, // Address Base 0x00004000, // Address Length ) Memory32Fixed (ReadWrite, 0xFEC18000, // Address Base 0x00000100, // Address Length ) Memory32Fixed (ReadWrite, 0xFED20000, // Address Base 0x00070000, // Address Length ) }) } Device (MBD1) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x02) Name (_CRS, ResourceTemplate () { Memory32Fixed (ReadWrite, 0xFEC00000, // Address Base 0x00001000, // Address Length ) Memory32Fixed (ReadWrite, 0xFEE00000, // Address Base 0x00001000, // Address Length ) }) Method (_STA, 0, NotSerialized) { If (LLessEqual (OSYS, 0x07CF)) { If (LOr (APIC, HTTE)) { Return (0x0B) } } Return (0x00) } } Device (RTC) { Name (_HID, EisaId ("PNP0B00")) Name (BUF0, ResourceTemplate () { IO (Decode16, 0x0070, // Range Minimum 0x0070, // Range Maximum 0x01, // Alignment 0x08, // Length ) }) Name (BUF1, ResourceTemplate () { IO (Decode16, 0x0070, // Range Minimum 0x0070, // Range Maximum 0x01, // Alignment 0x08, // Length ) IRQNoFlags () {8} }) Method (_CRS, 0, Serialized) { If (HPAE) { Return (BUF0) } Return (BUF1) } } Device (TIMR) { Name (_HID, EisaId ("PNP0100")) Name (BUF0, ResourceTemplate () { IO (Decode16, 0x0040, // Range Minimum 0x0040, // Range Maximum 0x01, // Alignment 0x04, // Length ) IO (Decode16, 0x0050, // Range Minimum 0x0050, // Range Maximum 0x10, // Alignment 0x04, // Length ) }) Name (BUF1, ResourceTemplate () { IO (Decode16, 0x0040, // Range Minimum 0x0040, // Range Maximum 0x01, // Alignment 0x04, // Length ) IO (Decode16, 0x0050, // Range Minimum 0x0050, // Range Maximum 0x10, // Alignment 0x04, // Length ) IRQNoFlags () {0} }) Method (_CRS, 0, Serialized) { If (HPAE) { Return (BUF0) } Return (BUF1) } } Device (KBD0) { Name (_HID, EisaId ("PNP0303")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0060, // Range Minimum 0x0060, // Range Maximum 0x01, // Alignment 0x01, // Length ) IO (Decode16, 0x0064, // Range Minimum 0x0064, // Range Maximum 0x01, // Alignment 0x01, // Length ) IRQ (Edge, ActiveHigh, Exclusive, ) {1} }) } Device (PS2M) { Name (_HID, EisaId ("SYN0302")) Name (_CID, Package (0x03) { 0x00032E4F, 0x02002E4F, 0x130FD041 }) Name (_CRS, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive, ) {12} }) } } Device (PATA) { Name (_ADR, 0x001F0001) OperationRegion (PACS, PCI_Config, 0x40, 0xC0) Field (PACS, DWordAcc, NoLock, Preserve) { PRIT, 16, Offset (0x04), PSIT, 4, Offset (0x08), SYNC, 4, Offset (0x0A), SDT0, 2, , 2, SDT1, 2, Offset (0x14), ICR0, 4, ICR1, 4, ICR2, 4, ICR3, 4, ICR4, 4, ICR5, 4 } Device (PRID) { Name (_ADR, 0x00) Method (_GTM, 0, NotSerialized) { Name (PBUF, Buffer (0x14) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0010 */ 0x00, 0x00, 0x00, 0x00 }) CreateDWordField (PBUF, 0x00, PIO0) CreateDWordField (PBUF, 0x04, DMA0) CreateDWordField (PBUF, 0x08, PIO1) CreateDWordField (PBUF, 0x0C, DMA1) CreateDWordField (PBUF, 0x10, FLAG) Store (GETP (PRIT), PIO0) Store (GDMA (And (SYNC, 0x01), And (ICR3, 0x01), And (ICR0, 0x01), SDT0, And (ICR1, 0x01)), DMA0) If (LEqual (DMA0, 0xFFFFFFFF)) { Store (PIO0, DMA0) } If (And (PRIT, 0x4000)) { If (LEqual (And (PRIT, 0x90), 0x80)) { Store (0x0384, PIO1) } Else { Store (GETT (PSIT), PIO1) } } Else { Store (0xFFFFFFFF, PIO1) } Store (GDMA (And (SYNC, 0x02), And (ICR3, 0x02), And (ICR0, 0x02), SDT1, And (ICR1, 0x02)), DMA1) If (LEqual (DMA1, 0xFFFFFFFF)) { Store (PIO1, DMA1) } Store (GETF (And (SYNC, 0x01), And (SYNC, 0x02), PRIT), FLAG) If (And (LEqual (PIO0, 0xFFFFFFFF), LEqual (DMA0, 0xFFFFFFFF))) { Store (0x78, PIO0) Store (0x14, DMA0) Store (0x03, FLAG) } Return (PBUF) } Method (_STM, 3, NotSerialized) { CreateDWordField (Arg0, 0x00, PIO0) CreateDWordField (Arg0, 0x04, DMA0) CreateDWordField (Arg0, 0x08, PIO1) CreateDWordField (Arg0, 0x0C, DMA1) CreateDWordField (Arg0, 0x10, FLAG) If (LEqual (SizeOf (Arg1), 0x0200)) { And (PRIT, 0x40F0, PRIT) And (SYNC, 0x02, SYNC) Store (0x00, SDT0) And (ICR0, 0x02, ICR0) And (ICR1, 0x02, ICR1) And (ICR3, 0x02, ICR3) And (ICR5, 0x02, ICR5) CreateWordField (Arg1, 0x62, W490) CreateWordField (Arg1, 0x6A, W530) CreateWordField (Arg1, 0x7E, W630) CreateWordField (Arg1, 0x80, W640) CreateWordField (Arg1, 0xB0, W880) CreateWordField (Arg1, 0xBA, W930) Or (PRIT, 0x8004, PRIT) If (LAnd (And (FLAG, 0x02), And (W490, 0x0800))) { Or (PRIT, 0x02, PRIT) } Or (PRIT, SETP (PIO0, W530, W640), PRIT) If (And (FLAG, 0x01)) { Or (SYNC, 0x01, SYNC) Store (SDMA (DMA0), SDT0) If (LLess (DMA0, 0x1E)) { Or (ICR3, 0x01, ICR3) } If (LLess (DMA0, 0x3C)) { Or (ICR0, 0x01, ICR0) } If (And (W930, 0x2000)) { Or (ICR1, 0x01, ICR1) } } } If (LEqual (SizeOf (Arg2), 0x0200)) { And (PRIT, 0x3F0F, PRIT) Store (0x00, PSIT) And (SYNC, 0x01, SYNC) Store (0x00, SDT1) And (ICR0, 0x01, ICR0) And (ICR1, 0x01, ICR1) And (ICR3, 0x01, ICR3) And (ICR5, 0x01, ICR5) CreateWordField (Arg2, 0x62, W491) CreateWordField (Arg2, 0x6A, W531) CreateWordField (Arg2, 0x7E, W631) CreateWordField (Arg2, 0x80, W641) CreateWordField (Arg2, 0xB0, W881) CreateWordField (Arg2, 0xBA, W931) Or (PRIT, 0x8040, PRIT) If (LAnd (And (FLAG, 0x08), And (W491, 0x0800))) { Or (PRIT, 0x20, PRIT) } If (And (FLAG, 0x10)) { Or (PRIT, 0x4000, PRIT) If (LGreater (PIO1, 0xF0)) { Or (PRIT, 0x80, PRIT) } Else { Or (PRIT, 0x10, PRIT) Store (SETT (PIO1, W531, W641), PSIT) } } If (And (FLAG, 0x04)) { Or (SYNC, 0x02, SYNC) Store (SDMA (DMA1), SDT1) If (LLess (DMA1, 0x1E)) { Or (ICR3, 0x02, ICR3) } If (LLess (DMA1, 0x3C)) { Or (ICR0, 0x02, ICR0) } If (And (W931, 0x2000)) { Or (ICR1, 0x02, ICR1) } } } } Device (P_D0) { Name (_ADR, 0x00) Method (_RMV, 0, NotSerialized) { Return (0x00) } Method (_GTF, 0, NotSerialized) { Name (PIB0, Buffer (0x0E) { /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (PIB0, 0x01, PMD0) CreateByteField (PIB0, 0x08, DMD0) If (And (PRIT, 0x02)) { If (LEqual (And (PRIT, 0x09), 0x08)) { Store (0x08, PMD0) } Else { Store (0x0A, PMD0) ShiftRight (And (PRIT, 0x0300), 0x08, Local0) ShiftRight (And (PRIT, 0x3000), 0x0C, Local1) Add (Local0, Local1, Local2) If (LEqual (0x03, Local2)) { Store (0x0B, PMD0) } If (LEqual (0x05, Local2)) { Store (0x0C, PMD0) } } } Else { Store (0x01, PMD0) } If (And (SYNC, 0x01)) { Store (Or (SDT0, 0x40), DMD0) If (And (ICR1, 0x01)) { If (And (ICR0, 0x01)) { Add (DMD0, 0x02, DMD0) } If (And (ICR3, 0x01)) { Store (0x45, DMD0) } } } Else { Or (Subtract (And (PMD0, 0x07), 0x02), 0x20, DMD0) } Return (PIB0) } } Device (P_D1) { Name (_ADR, 0x01) Method (_GTF, 0, NotSerialized) { Name (PIB1, Buffer (0x0E) { /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03, /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF }) CreateByteField (PIB1, 0x01, PMD1) CreateByteField (PIB1, 0x08, DMD1) If (And (PRIT, 0x20)) { If (LEqual (And (PRIT, 0x90), 0x80)) { Store (0x08, PMD1) } Else { Add (And (PSIT, 0x03), ShiftRight (And (PSIT, 0x0C), 0x02), Local0) If (LEqual (0x05, Local0)) { Store (0x0C, PMD1) } Else { If (LEqual (0x03, Local0)) { Store (0x0B, PMD1) } Else { Store (0x0A, PMD1) } } } } Else { Store (0x01, PMD1) } If (And (SYNC, 0x02)) { Store (Or (SDT1, 0x40), DMD1) If (And (ICR1, 0x02)) { If (And (ICR0, 0x02)) { Add (DMD1, 0x02, DMD1) } If (And (ICR3, 0x02)) { Store (0x45, DMD1) } } } Else { Or (Subtract (And (PMD1, 0x07), 0x02), 0x20, DMD1) } Return (PIB1) } } } } Device (SBUS) { Name (_ADR, 0x001F0003) OperationRegion (SMBP, PCI_Config, 0x40, 0xC0) Field (SMBP, DWordAcc, NoLock, Preserve) { , 2, I2CE, 1 } OperationRegion (SMBI, SystemIO, 0x20A0, 0x10) Field (SMBI, ByteAcc, NoLock, Preserve) { HSTS, 8, Offset (0x02), HCON, 8, HCOM, 8, TXSA, 8, DAT0, 8, DAT1, 8, HBDR, 8, PECR, 8, RXSA, 8, SDAT, 16 } Method (SSXB, 2, Serialized) { If (STRT ()) { Return (0x00) } Store (0x00, I2CE) Store (0xBF, HSTS) Store (Arg0, TXSA) Store (Arg1, HCOM) Store (0x48, HCON) If (COMP ()) { Or (HSTS, 0xFF, HSTS) Return (0x01) } Return (0x00) } Method (SRXB, 1, Serialized) { If (STRT ()) { Return (0xFFFF) } Store (0x00, I2CE) Store (0xBF, HSTS) Store (Or (Arg0, 0x01), TXSA) Store (0x44, HCON) If (COMP ()) { Or (HSTS, 0xFF, HSTS) Return (DAT0) } Return (0xFFFF) } Method (SWRB, 3, Serialized) { If (STRT ()) { Return (0x00) } Store (0x00, I2CE) Store (0xBF, HSTS) Store (Arg0, TXSA) Store (Arg1, HCOM) Store (Arg2, DAT0) Store (0x48, HCON) If (COMP ()) { Or (HSTS, 0xFF, HSTS) Return (0x01) } Return (0x00) } Method (SRDB, 2, Serialized) { If (STRT ()) { Return (0xFFFF) } Store (0x00, I2CE) Store (0xBF, HSTS) Store (Or (Arg0, 0x01), TXSA) Store (Arg1, HCOM) Store (0x48, HCON) If (COMP ()) { Or (HSTS, 0xFF, HSTS) Return (DAT0) } Return (0xFFFF) } Method (SBLW, 4, Serialized) { If (STRT ()) { Return (0x00) } Store (Arg3, I2CE) Store (0xBF, HSTS) Store (Arg0, TXSA) Store (Arg1, HCOM) Store (SizeOf (Arg2), DAT0) Store (0x00, Local1) Store (DerefOf (Index (Arg2, 0x00)), HBDR) Store (0x54, HCON) While (LGreater (SizeOf (Arg2), Local1)) { Store (0x0FA0, Local0) While (LAnd (LNot (And (HSTS, 0x80)), Local0)) { Decrement (Local0) Stall (0x32) } If (LNot (Local0)) { KILL () Return (0x00) } Store (0x80, HSTS) Increment (Local1) If (LGreater (SizeOf (Arg2), Local1)) { Store (DerefOf (Index (Arg2, Local1)), HBDR) } } If (COMP ()) { Or (HSTS, 0xFF, HSTS) Return (0x01) } Return (0x00) } Method (SBLR, 3, Serialized) { Name (TBUF, Buffer (0x0100) {}) If (STRT ()) { Return (0x00) } Store (Arg2, I2CE) Store (0xBF, HSTS) Store (Or (Arg0, 0x01), TXSA) Store (Arg1, HCOM) Store (0x54, HCON) Store (0x0FA0, Local0) While (LAnd (LNot (And (HSTS, 0x80)), Local0)) { Decrement (Local0) Stall (0x32) } If (LNot (Local0)) { KILL () Return (0x00) } Store (DAT0, Index (TBUF, 0x00)) Store (0x80, HSTS) Store (0x01, Local1) While (LLess (Local1, DerefOf (Index (TBUF, 0x00)))) { Store (0x0FA0, Local0) While (LAnd (LNot (And (HSTS, 0x80)), Local0)) { Decrement (Local0) Stall (0x32) } If (LNot (Local0)) { KILL () Return (0x00) } Store (HBDR, Index (TBUF, Local1)) Store (0x80, HSTS) Increment (Local1) } If (COMP ()) { Or (HSTS, 0xFF, HSTS) Return (TBUF) } Return (0x00) } Method (STRT, 0, Serialized) { Store (0xC8, Local0) While (Local0) { If (And (HSTS, 0x40)) { Decrement (Local0) Sleep (0x01) If (LEqual (Local0, 0x00)) { Return (0x01) } } Else { Store (0x00, Local0) } } Store (0x0FA0, Local0) While (Local0) { If (And (HSTS, 0x01)) { Decrement (Local0) Stall (0x32) If (LEqual (Local0, 0x00)) { KILL () } } Else { Return (0x00) } } Return (0x01) } Method (COMP, 0, Serialized) { Store (0x0FA0, Local0) While (Local0) { If (And (HSTS, 0x02)) { Return (0x01) } Else { Decrement (Local0) Stall (0x32) If (LEqual (Local0, 0x00)) { KILL () } } } Return (0x00) } Method (KILL, 0, Serialized) { Or (HCON, 0x02, HCON) Or (HSTS, 0xFF, HSTS) } } } } Scope (\_PR.CPU0) { Method (_CST, 0, NotSerialized) { If (And (CFGD, 0x4000)) { Return (Package (0x02) { 0x01, Package (0x04) { ResourceTemplate () { Register (FFixedHW, 0x01, // Bit Width 0x01, // Bit Offset 0x0000000000000809, // Address ,) }, 0x01, 0x01, 0x03E8 } }) } If (LAnd (And (CFGD, 0x80), LNot (PWRS))) { Return (Package (0x05) { 0x04, Package (0x04) { ResourceTemplate () { Register (FFixedHW, 0x00, // Bit Width 0x00, // Bit Offset 0x0000000000000000, // Address ,) }, 0x01, 0x01, 0x03E8 }, Package (0x04) { ResourceTemplate () { Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000001014, // Address ,) }, 0x02, 0x01, 0x01F4 }, Package (0x04) { ResourceTemplate () { Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000001015, // Address ,) }, 0x03, 0x55, 0xFA }, Package (0x04) { ResourceTemplate () { Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000001016, // Address ,) }, 0x03, 0xB9, 0x64 } }) } If (And (CFGD, 0x40)) { Return (Package (0x04) { 0x03, Package (0x04) { ResourceTemplate () { Register (FFixedHW, 0x00, // Bit Width 0x00, // Bit Offset 0x0000000000000000, // Address ,) }, 0x01, 0x01, 0x03E8 }, Package (0x04) { ResourceTemplate () { Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000001014, // Address ,) }, 0x02, 0x01, 0x01F4 }, Package (0x04) { ResourceTemplate () { Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000001015, // Address ,) }, 0x03, 0x55, 0xFA } }) } If (And (CFGD, 0x20)) { Return (Package (0x03) { 0x02, Package (0x04) { ResourceTemplate () { Register (FFixedHW, 0x00, // Bit Width 0x00, // Bit Offset 0x0000000000000000, // Address ,) }, 0x01, 0x01, 0x03E8 }, Package (0x04) { ResourceTemplate () { Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000001014, // Address ,) }, 0x02, 0x01, 0x01F4 } }) } Return (Package (0x02) { 0x01, Package (0x04) { ResourceTemplate () { Register (FFixedHW, 0x00, // Bit Width 0x00, // Bit Offset 0x0000000000000000, // Address ,) }, 0x01, 0x01, 0x03E8 } }) } } Scope (\) { Name (SSDT, Package (0x0C) { "CPU0IST ", 0x00000000, 0xF000FF53, "CPU1IST ", 0x00000000, 0xF000FF53, "CPU0CST ", 0x0F6E6064, 0x000001DE, "CPU1CST ", 0x00000000, 0xF000FF53 }) Name (CFGD, 0x06D88178) Name (\PDC0, 0x80000000) Name (\PDC1, 0x80000000) } Scope (\_PR.CPU0) { Name (HI0, 0x00) Name (HC0, 0x00) Method (_PDC, 1, NotSerialized) { CreateDWordField (Arg0, 0x08, CAP0) Store (CAP0, PDC0) If (LAnd (And (CFGD, 0x4000), LEqual (And (PDC0, 0x0A ), 0x0A))) { If (And (CFGD, 0x03)) { OperationRegion (IST0, SystemMemory, DerefOf (Index (SSDT, 0x01)), DerefOf (Index (SSDT, 0x02 ))) Load (IST0, HI0) } If (And (CFGD, 0x10)) { OperationRegion (CST0, SystemMemory, DerefOf (Index (SSDT, 0x07)), DerefOf (Index (SSDT, 0x08 ))) Load (CST0, HC0) } } } } Scope (\_PR.CPU1) { Name (HI1, 0x00) Name (HC1, 0x00) Method (_PDC, 1, NotSerialized) { CreateDWordField (Arg0, 0x08, CAP1) Store (CAP1, PDC1) If (LAnd (And (CFGD, 0x4000), LEqual (And (PDC1, 0x0A ), 0x0A))) { If (And (CFGD, 0x03)) { OperationRegion (IST1, SystemMemory, DerefOf (Index (SSDT, 0x04)), DerefOf (Index (SSDT, 0x05 ))) Load (IST1, HI1) } If (And (CFGD, 0x10)) { OperationRegion (CST1, SystemMemory, DerefOf (Index (SSDT, 0x0A)), DerefOf (Index (SSDT, 0x0B ))) Load (CST1, HC1) } } If (LEqual (And (PDC1, 0x0A), 0x0A)) {} } } } From bugmaster at FreeBSD.org Mon Oct 13 11:06:45 2008 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Oct 13 11:07:08 2008 Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org Message-ID: <200810131106.m9DB6jCL029337@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/127581 acpi [patch] [acpi_sony] Add support for more Sony features o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin f kern/121454 acpi [pst] Promise SuperTrak SX6000 does not load during bo o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120953 acpi [acpi]: FreeBSD 6.3 Release: acpi_tz0: _TMP value is o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/117605 acpi [acpi] [request] add debug.cpufreq.highest o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108581 acpi [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid argume o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o kern/89411 acpi [acpi] acpiconf bug o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o kern/81000 acpi [apic] Via 8235 sound card worked great with FreeBSD 5 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys s kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 f kern/67309 acpi zzz reboot computer (ACPI S3) o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 o i386/54756 acpi ACPI suspend/resume problem on CF-W2 laptop 42 problems total. From pyunyh at gmail.com Tue Oct 14 07:07:24 2008 From: pyunyh at gmail.com (Pyun YongHyeon) Date: Tue Oct 14 07:07:31 2008 Subject: can not wake on lan after halt -p (or shutdown -p now) on releng_7 and releng_7_0 In-Reply-To: <1948191744.20081010114326@pulsar.bg> References: <596673353.20081006181334@pulsar.bg> <20081010012058.GA99376@cdnetworks.co.kr> <1948191744.20081010114326@pulsar.bg> Message-ID: <20081014064456.GE14769@cdnetworks.co.kr> On Fri, Oct 10, 2008 at 11:43:26AM +0300, Georgi Iovchev wrote: > > > -- > Friday, October 10, 2008, 4:20:58 AM: > > > On Mon, Oct 06, 2008 at 06:13:34PM +0300, Georgi Iovchev wrote: > >> Hello list > >> > >> I have a shutdown problem. I have a machine with gigabyte GA-G33M-DS2R > >> motherboard. Integrated network card is Realtek 8111B. > >> I can not wake the computer after I shutdown it from FreeBSD. > >> It is a dualboot system - windows xp and freebsd. If I shutdown the > >> computer from windows - later I can wake it up with magic packet. Even > >> if i shutdown the machine on the boot menu with the power button - than > >> later I can wake on lan. The only situation where I CANNOT wake it is > >> when I shutdown the machine from freebsd (halt -p). > >> > >> First I tested with 7.0-RELEASE-p5 amd64 (RELENG_7_0) and than I > >> upgraded to 7.1 PRERELASE amd64 (RELENG_7). I also tested with two > >> network cards - the integrated one Realtek 8111B and another one Intel > >> PRO1000PT PCI-E with WOL enabled. > >> > > > Don't know WOL issue of em(4) but re(4) should respond to WOL. > > 7.0-RELEASE had no support for WOL so RELENG_7 or 7.1-PRERELEASE > > should be used to experiment WOL. > Now I am using 7.1-prerelase > > >> With both nics and both freebsd versions the situation is the same - > >> after shutdown from bsd the computer is not able to wake on lan. The > > > Because you can wake up your sytem from Windows shutdown I think > > your BIOS is already configured to allow wakeup from WOL. Would > > you compare ethernet address of re(4) to Winwods? Have you tried to > > send Magic packets to FreeBSD box? > I have tried sending magic packets from another bsd machine. I am > using net/wol. I also tried to send magic packets from windows machine > using 3 different programs. > > > You may also try suspend your box with acpiconf and resume from WOL. > I cant. > > [root@backup ~]# acpiconf -s 5 > acpiconf: invalid sleep type (5) > > Actually I cant enter in any sleep state > [root@backup ~]# acpiconf -s 4 > acpiconf: request sleep type (4) failed: Operation not supported > [root@backup ~]# acpiconf -s 3 > acpiconf: request sleep type (3) failed: Operation not supported > [root@backup ~]# acpiconf -s 2 > acpiconf: request sleep type (2) failed: Operation not supported > [root@backup ~]# acpiconf -s 1 > acpiconf: request sleep type (1) failed: Operation not supported > > I am using generic kernel with little modifications, (generally i have > commented many unused drivers - raid, if_....) Acpi is in generic > kernel now. > > I even tried to wake the machine with magic packet after shutdown -h. > But still no luck. > > > >> indication on the switch port says that after shut down there is > >> active link. > >> > > > That indicates the controller is alive so it shall respond to WOL > > if it was correctly configured to receive WOL packets. Have you > > tried to send Magic packets to FreeBSD box? > > >> Here is some information after last update: > >> > >> [root@backup ~]# uname -a > >> FreeBSD backup.pulsar.bg 7.1-PRERELEASE FreeBSD > >> 7.1-PRERELEASE #1: Mon Oct 6 17:01:26 EEST 2008 > >> root@backup.pulsar.bg:/usr/obj/usr/src/sys/MYCONF amd64 > >> > >> [root@backup ~]# pciconf -lv > >> ... > >> re0@pci0:3:0:0: class=0x020000 card=0xe0001458 > >> chip=0x816810ec rev=0x01 hdr=0x00 > >> vendor = 'Realtek Semiconductor' > >> device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' > >> class = network > >> subclass = ethernet > >> ... > > > Show me dmesg output pertinent to re(4). > > re0: port 0xd000-0xd0ff mem 0xf2000000-0xf2000fff irq 17 at device 0.0 on pci3 > re0: turning off MSI enable bit. > re0: Chip rev. 0x38000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > re0: Ethernet address: 00:1f:d0:24:19:e9 > re0: [FILTER] > It looks like your chip is RTL8168B and I don't see any errors in WOL related code of re(4). :-( Can you check the resolved link speed/duplex of FreeBSD box after shutdown?(You can enter to your switch menu and see the port status.) How about sending WOL packets over direct-connected UTP cable without using switch? -- Regards, Pyun YongHyeon From vwe at FreeBSD.org Fri Oct 17 15:35:06 2008 From: vwe at FreeBSD.org (vwe@FreeBSD.org) Date: Fri Oct 17 15:35:12 2008 Subject: kern/120953: [acpi]: FreeBSD 6.3 Release: acpi_tz0: _TMP value is absurd, ignored (-73.0C) Message-ID: <200810171535.m9HFZ6Ho018779@freefall.freebsd.org> Synopsis: [acpi]: FreeBSD 6.3 Release: acpi_tz0: _TMP value is absurd, ignored (-73.0C) State-Changed-From-To: open->closed State-Changed-By: vwe State-Changed-When: Fri Oct 17 15:33:25 UTC 2008 State-Changed-Why: Eric, we think we're unable to do somthing about the broken ACPI implementation. Please check with your board vendor for an corrected and up to date BIOS. We're going to close this now, as this is unlikely to get solved by the operating system. Thank you for reporting. Responsible-Changed-From-To: freebsd-acpi->vwe Responsible-Changed-By: vwe Responsible-Changed-When: Fri Oct 17 15:33:25 UTC 2008 Responsible-Changed-Why: track http://www.freebsd.org/cgi/query-pr.cgi?pr=120953 From robert.moore at intel.com Fri Oct 17 18:15:49 2008 From: robert.moore at intel.com (Moore, Robert) Date: Fri Oct 17 18:15:58 2008 Subject: kern/120953: [acpi]: FreeBSD 6.3 Release: acpi_tz0: _TMP value is absurd, ignored (-73.0C) Message-ID: <4911F71203A09E4D9981D27F9D830858032E020F@orsmsx503.amr.corp.intel.com> It would be interesting to see the DSDT for this machine, to determine why _TMP is returning such a value. Recently, a change was made to ACPICA to make the "implicit return" mechanism more compatible with Windows. If the _TMP method on this machine is depending on the Windows implicit return, it may be that this ACPICA fix will help in this case. Bob From bugmaster at FreeBSD.org Mon Oct 20 11:06:46 2008 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Oct 20 11:07:04 2008 Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org Message-ID: <200810201106.m9KB6kOh082559@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/127581 acpi [patch] [acpi_sony] Add support for more Sony features o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin f kern/121454 acpi [pst] Promise SuperTrak SX6000 does not load during bo o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/117605 acpi [acpi] [request] add debug.cpufreq.highest o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108581 acpi [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid argume o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o kern/89411 acpi [acpi] acpiconf bug o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o kern/81000 acpi [apic] Via 8235 sound card worked great with FreeBSD 5 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys s kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 f kern/67309 acpi zzz reboot computer (ACPI S3) o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 o i386/54756 acpi ACPI suspend/resume problem on CF-W2 laptop 41 problems total. From lme at FreeBSD.org Tue Oct 21 12:06:18 2008 From: lme at FreeBSD.org (Lars Engels) Date: Tue Oct 21 12:06:25 2008 Subject: acpi_tz1: _CRT value is absurd, ignored (256.0C) Message-ID: <20081021140617.ejzk8i5wpskksc4w@0x20.net> Hi all, every few seconds I get this kernel message on the console: acpi_tz1: _CRT value is absurd, ignored (256.0C) FreeBSD 8-CURRENT HP Compaq 8710w Notebook # sysctl hw.acpi.thermal hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 48.0C hw.acpi.thermal.tz0.active: 5 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 105.0C hw.acpi.thermal.tz0._ACx: 98.0C 88.0C 76.0C 65.0C 55.0C 45.0C -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: -1 hw.acpi.thermal.tz0._TC2: -1 hw.acpi.thermal.tz0._TSP: -1 hw.acpi.thermal.tz1.temperature: 70.0C hw.acpi.thermal.tz1.active: 2 hw.acpi.thermal.tz1.passive_cooling: 1 hw.acpi.thermal.tz1.thermal_flags: 0 hw.acpi.thermal.tz1._PSV: 97.0C hw.acpi.thermal.tz1._HOT: -1 hw.acpi.thermal.tz1._CRT: -1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ hw.acpi.thermal.tz1._ACx: 89.0C 83.0C 60.0C 50.0C 40.0C -1 -1 -1 -1 -1 hw.acpi.thermal.tz1._TC1: 1 hw.acpi.thermal.tz1._TC2: 2 hw.acpi.thermal.tz1._TSP: 300 hw.acpi.thermal.tz2.temperature: 59.0C hw.acpi.thermal.tz2.active: -1 hw.acpi.thermal.tz2.passive_cooling: 0 hw.acpi.thermal.tz2.thermal_flags: 0 hw.acpi.thermal.tz2._PSV: -1 hw.acpi.thermal.tz2._HOT: -1 hw.acpi.thermal.tz2._CRT: 102.0C hw.acpi.thermal.tz2._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz2._TC1: -1 hw.acpi.thermal.tz2._TC2: -1 hw.acpi.thermal.tz2._TSP: -1 hw.acpi.thermal.tz3.temperature: 44.0C hw.acpi.thermal.tz3.active: -1 hw.acpi.thermal.tz3.passive_cooling: 0 hw.acpi.thermal.tz3.thermal_flags: 0 hw.acpi.thermal.tz3._PSV: 95.0C hw.acpi.thermal.tz3._HOT: -1 hw.acpi.thermal.tz3._CRT: 105.0C hw.acpi.thermal.tz3._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz3._TC1: 1 hw.acpi.thermal.tz3._TC2: 2 hw.acpi.thermal.tz3._TSP: 300 hw.acpi.thermal.tz4.temperature: 34.4C hw.acpi.thermal.tz4.active: -1 hw.acpi.thermal.tz4.passive_cooling: 0 hw.acpi.thermal.tz4.thermal_flags: 0 hw.acpi.thermal.tz4._PSV: 60.0C hw.acpi.thermal.tz4._HOT: -1 hw.acpi.thermal.tz4._CRT: 102.0C hw.acpi.thermal.tz4._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz4._TC1: 1 hw.acpi.thermal.tz4._TC2: 2 hw.acpi.thermal.tz4._TSP: 300 hw.acpi.thermal.tz5.temperature: 70.0C hw.acpi.thermal.tz5.active: -1 hw.acpi.thermal.tz5.passive_cooling: 0 hw.acpi.thermal.tz5.thermal_flags: 0 hw.acpi.thermal.tz5._PSV: -1 hw.acpi.thermal.tz5._HOT: -1 hw.acpi.thermal.tz5._CRT: 110.0C hw.acpi.thermal.tz5._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz5._TC1: -1 hw.acpi.thermal.tz5._TC2: -1 hw.acpi.thermal.tz5._TSP: -1 Is there a way to fix that or prevent the tz from being probed? Please CC me, I am not subscribed to the list. -- Lars Engels lme@FreeBSD.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: Digitale PGP-Unterschrift Url : http://lists.freebsd.org/pipermail/freebsd-acpi/attachments/20081021/b40b9e3f/attachment.pgp From jkim at FreeBSD.org Tue Oct 21 16:28:41 2008 From: jkim at FreeBSD.org (Jung-uk Kim) Date: Tue Oct 21 16:28:47 2008 Subject: Semi-working patch for amd64 suspend/resume Message-ID: <200810211228.31028.jkim@FreeBSD.org> I was working on suspend/resume support for amd64 and this is the result. It works with a modified QEMU (QEMU does not support S3) but real boxes that I have don't seem to like it (e.g., broken BIOSes). If there is someone interested in finishing it off or giving it a try, the patch is here: http://people.freebsd.org/~jkim/amd64_suspend.diff Please note this patch is heavily inspired by Takanori Watanabe's SMP patch for i386: http://docs.freebsd.org/cgi/mid.cgi?200805131125.m4DBPu1q092741 and large portion is shamlessly stolen from Peter Wemm's AP boot code for amd64. ;-) Cheers, Jung-uk Kim From nate at root.org Tue Oct 21 17:47:31 2008 From: nate at root.org (Nate Lawson) Date: Tue Oct 21 17:48:02 2008 Subject: acpi_tz1: _CRT value is absurd, ignored (256.0C) In-Reply-To: <20081021140617.ejzk8i5wpskksc4w@0x20.net> References: <20081021140617.ejzk8i5wpskksc4w@0x20.net> Message-ID: <48FE121B.3000206@root.org> Lars Engels wrote: > Hi all, > > every few seconds I get this kernel message on the console: > > acpi_tz1: _CRT value is absurd, ignored (256.0C) > > FreeBSD 8-CURRENT > HP Compaq 8710w Notebook > > # sysctl hw.acpi.thermal > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.user_override: 0 > hw.acpi.thermal.tz0.temperature: 48.0C > hw.acpi.thermal.tz0.active: 5 > hw.acpi.thermal.tz0.passive_cooling: 0 > hw.acpi.thermal.tz0.thermal_flags: 0 > hw.acpi.thermal.tz0._PSV: -1 > hw.acpi.thermal.tz0._HOT: -1 > hw.acpi.thermal.tz0._CRT: 105.0C > hw.acpi.thermal.tz0._ACx: 98.0C 88.0C 76.0C 65.0C 55.0C 45.0C -1 -1 -1 -1 > hw.acpi.thermal.tz0._TC1: -1 > hw.acpi.thermal.tz0._TC2: -1 > hw.acpi.thermal.tz0._TSP: -1 > hw.acpi.thermal.tz1.temperature: 70.0C > hw.acpi.thermal.tz1.active: 2 > hw.acpi.thermal.tz1.passive_cooling: 1 > hw.acpi.thermal.tz1.thermal_flags: 0 > hw.acpi.thermal.tz1._PSV: 97.0C > hw.acpi.thermal.tz1._HOT: -1 > hw.acpi.thermal.tz1._CRT: -1 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > hw.acpi.thermal.tz1._ACx: 89.0C 83.0C 60.0C 50.0C 40.0C -1 -1 -1 -1 -1 > hw.acpi.thermal.tz1._TC1: 1 > hw.acpi.thermal.tz1._TC2: 2 > hw.acpi.thermal.tz1._TSP: 300 We could try to work around it in the tz poll routine. Or, you could set the _CRT value to something reasonable via sysctl. man acpi_thermal to see how. You have to specify user_override to unlock the sysctl. 105C seems reasonable based on other settings in tz2-3. -- Nate From lme at FreeBSD.org Wed Oct 22 08:15:08 2008 From: lme at FreeBSD.org (Lars Engels) Date: Wed Oct 22 08:15:15 2008 Subject: acpi_tz1: _CRT value is absurd, ignored (256.0C) In-Reply-To: <48FE121B.3000206@root.org> References: <20081021140617.ejzk8i5wpskksc4w@0x20.net> <48FE121B.3000206@root.org> Message-ID: <20081022101506.zfazdtjeskwg8sgc@0x20.net> Quoting Nate Lawson : >> hw.acpi.thermal.tz1._CRT: -1 >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> hw.acpi.thermal.tz1._ACx: 89.0C 83.0C 60.0C 50.0C 40.0C -1 -1 -1 -1 -1 >> hw.acpi.thermal.tz1._TC1: 1 >> hw.acpi.thermal.tz1._TC2: 2 >> hw.acpi.thermal.tz1._TSP: 300 > > We could try to work around it in the tz poll routine. Or, you could > set the _CRT value to something reasonable via sysctl. man acpi_thermal > to see how. You have to specify user_override to unlock the sysctl. > 105C seems reasonable based on other settings in tz2-3. Setting the sysctl doesn't work: Oct 22 09:50:15 NB0117232 sudo: engels : TTY=pts/3 ; PWD=/usr/home/engels ; USER=root ; COMMAND=/sbin/sysctl hw.acpi.thermal.user_override=1 Oct 22 09:50:45 NB0117232 kernel: acpi_tz1: _CRT value is absurd, ignored (256.0C) Oct 22 09:50:55 NB0117232 sudo: engels : TTY=pts/3 ; PWD=/usr/home/engels ; USER=root ; COMMAND=/sbin/sysctl hw.acpi.thermal.tz1._CRT=105C Oct 22 09:51:03 NB0117232 kernel: acpi_tz1: _CRT value is absurd, ignored (256.0C) hw.acpi.thermal.tz1._CRT: -1 It is only set to the overridden value for a moment and is then set back to -1. So a workaround in the code would be nice. -- Lars Engels lme@FreeBSD.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: Digitale PGP-Unterschrift Url : http://lists.freebsd.org/pipermail/freebsd-acpi/attachments/20081022/0586f103/attachment.pgp From gaijin.k at gmail.com Wed Oct 22 14:10:12 2008 From: gaijin.k at gmail.com (Alexandre "Sunny" Kovalenko) Date: Wed Oct 22 14:10:18 2008 Subject: acpi_tz1: _CRT value is absurd, ignored (256.0C) In-Reply-To: <20081022101506.zfazdtjeskwg8sgc@0x20.net> References: <20081021140617.ejzk8i5wpskksc4w@0x20.net> <48FE121B.3000206@root.org> <20081022101506.zfazdtjeskwg8sgc@0x20.net> Message-ID: <1224683263.2199.24.camel@RabbitsDen> On Wed, 2008-10-22 at 10:15 +0200, Lars Engels wrote: > Quoting Nate Lawson : > > > >> hw.acpi.thermal.tz1._CRT: -1 > >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >> hw.acpi.thermal.tz1._ACx: 89.0C 83.0C 60.0C 50.0C 40.0C -1 -1 -1 -1 -1 > >> hw.acpi.thermal.tz1._TC1: 1 > >> hw.acpi.thermal.tz1._TC2: 2 > >> hw.acpi.thermal.tz1._TSP: 300 > > > > We could try to work around it in the tz poll routine. Or, you could > > set the _CRT value to something reasonable via sysctl. man acpi_thermal > > to see how. You have to specify user_override to unlock the sysctl. > > 105C seems reasonable based on other settings in tz2-3. > > Setting the sysctl doesn't work: > > Oct 22 09:50:15 NB0117232 sudo: engels : TTY=pts/3 ; > PWD=/usr/home/engels ; USER=root ; COMMAND=/sbin/sysctl > hw.acpi.thermal.user_override=1 > Oct 22 09:50:45 NB0117232 kernel: acpi_tz1: _CRT value is absurd, > ignored (256.0C) > Oct 22 09:50:55 NB0117232 sudo: engels : TTY=pts/3 ; > PWD=/usr/home/engels ; USER=root ; COMMAND=/sbin/sysctl > hw.acpi.thermal.tz1._CRT=105C > Oct 22 09:51:03 NB0117232 kernel: acpi_tz1: _CRT value is absurd, > ignored (256.0C) > > hw.acpi.thermal.tz1._CRT: -1 > > It is only set to the overridden value for a moment and is then set > back to -1. I suspect that ASL re-evaluates _CRT and tells FreeBSD to re-read it based on some event. I would have expected 'user_override' to block the update. I might be completely off the mark, though. > > So a workaround in the code would be nice. In the time being you should be able to dump our ASL (see Handbook for instructions), look for something like Scope (\_TZ) { ... ThermalZone (THM1) { ... Method (_CRT, 0, NotSerialized) { Return () } where THM1 is just a name, so it could be different in your case. You need to find one for the zone #1 inside the Scope(\TZ) definition. I think FreeBSD numbers them sequentially, regardless of the name, so this would be the second ThermalZone definition in the scope. If you want 105C, put Return(0xEC6); in there. The value 0xEC6 = 105 * 0xA + 0xAAC. If _CRT method is not there, you should be safe to add one, consisting of the single return statement. You would have to recompile ASL and set it to override on boot (see Handbook). As the side note, thermal chapter of the ACPI spec is both short and readable, so if you'd rather understand where did all of this come from, I would recommend reading through it. HTH, -- Alexandre "Sunny" Kovalenko (????????? ?????????) From olivier at aixmarseille.com Wed Oct 22 16:51:11 2008 From: olivier at aixmarseille.com (Olivier Fauchon) Date: Wed Oct 22 16:51:18 2008 Subject: Crash after undocking Dell Lat. d430 Message-ID: <48FF52C9.3040105@aixmarseille.com> Hi. I'm running SMP FreeBSD7 on Dell Latitude d430. I have dell dockstation (for connecting office display, keyboard mouse ...) Last week, I tried to undock the laptop (While working in X session) , and laptop crashed. Do FreeBSD support docking/undocking, can you tell me if it's transparent, or if there are commands to run before undocking ? maybe ways to debug it ? The dockstation seems to have a 'undock' button which doesn't react under freebsd. Thanks -- Olivier Fauchon Freelance System-Network Admin Phone: +33 610 493 763 http://www.aixmarseille.com From mav at FreeBSD.org Wed Oct 22 20:03:15 2008 From: mav at FreeBSD.org (Alexander Motin) Date: Wed Oct 22 20:03:22 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <1224616985.00027652.1224606603@10.7.7.3> References: <1224616985.00027652.1224606603@10.7.7.3> Message-ID: <48FF78F0.2090801@FreeBSD.org> Hi. Jung-uk Kim wrote: > I was working on suspend/resume support for amd64 and this is the > result. It works with a modified QEMU (QEMU does not support S3) but > real boxes that I have don't seem to like it (e.g., broken BIOSes). > If there is someone interested in finishing it off or giving it a > try, the patch is here: > > http://people.freebsd.org/~jkim/amd64_suspend.diff I have tried it on my Acer TM6292. S1/S2 are unsupported. On S3 system successfully got down, but on wakeup button, two seconds after power up, even without video initialization, it shut down, reset and then started usual boot. I have tried both original and updated BIOS, without any difference. Can I give you any other help? -- Alexander Motin From jkim at FreeBSD.org Wed Oct 22 20:23:19 2008 From: jkim at FreeBSD.org (Jung-uk Kim) Date: Wed Oct 22 20:23:30 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <48FF78F0.2090801@FreeBSD.org> References: <1224616985.00027652.1224606603@10.7.7.3> <48FF78F0.2090801@FreeBSD.org> Message-ID: <200810221623.09613.jkim@FreeBSD.org> On Wednesday 22 October 2008 03:03 pm, Alexander Motin wrote: > Hi. > > Jung-uk Kim wrote: > > I was working on suspend/resume support for amd64 and this is the > > result. It works with a modified QEMU (QEMU does not support S3) > > but real boxes that I have don't seem to like it (e.g., broken > > BIOSes). If there is someone interested in finishing it off or > > giving it a try, the patch is here: > > > > http://people.freebsd.org/~jkim/amd64_suspend.diff > > I have tried it on my Acer TM6292. S1/S2 are unsupported. On S3 > system successfully got down, but on wakeup button, two seconds > after power up, even without video initialization, it shut down, > reset and then started usual boot. I have tried both original and > updated BIOS, without any difference. > > Can I give you any other help? When you do 'sysctl debug.acpi.suspend_bounce=1' and 'acpiconf -s 3', does it bounce back? If it does not, there are other problems, e.g., device drivers. On my desktop, for example, vga(4) tries to restore previous state while resuming but it hangs system. In fact, I believe ISA-era EGA/VGA save/restore routines do not work for modern graphics cards at all. :-( Jung-uk Kim From mav at FreeBSD.org Wed Oct 22 21:20:40 2008 From: mav at FreeBSD.org (Alexander Motin) Date: Wed Oct 22 21:20:52 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <200810221623.09613.jkim@FreeBSD.org> References: <1224616985.00027652.1224606603@10.7.7.3> <48FF78F0.2090801@FreeBSD.org> <200810221623.09613.jkim@FreeBSD.org> Message-ID: <48FF9925.4090007@FreeBSD.org> Jung-uk Kim wrote: > When you do 'sysctl debug.acpi.suspend_bounce=1' and 'acpiconf -s 3', > does it bounce back? If it does not, there are other problems, e.g., > device drivers. On my desktop, for example, vga(4) tries to restore > previous state while resuming but it hangs system. In fact, I > believe ISA-era EGA/VGA save/restore routines do not work for modern > graphics cards at all. :-( Test passed from both console and XOrg. I have integrated i965GM video. Here is verbose messages from that trip "there and back again": Oct 23 00:11:55 mavbook acpi: suspend at 20081023 00:11:55 Oct 23 00:11:59 mavbook kernel: bge0: Disabling fastboot Oct 23 00:11:59 mavbook kernel: bge0: link DOWN Oct 23 00:11:59 mavbook kernel: pci0:4:0:0: Transition from D0 to D3 Oct 23 00:11:59 mavbook kernel: iwn0: iwn_mem_lock: could not lock memory Oct 23 00:11:59 mavbook last message repeated 17 times Oct 23 00:11:59 mavbook kernel: pci0:5:0:0: Transition from D0 to D3 Oct 23 00:11:59 mavbook kernel: usb4: interrupt while not operating ignored Oct 23 00:11:59 mavbook last message repeated 3 times Oct 23 00:11:59 mavbook kernel: fwohci0: fwohci_pci_suspend Oct 23 00:11:59 mavbook kernel: pci0:10:9:0: Transition from D0 to D3 Oct 23 00:11:59 mavbook kernel: usb4: interrupt while not operating ignored Oct 23 00:11:59 mavbook last message repeated 3 times Oct 23 00:12:00 mavbook kernel: vga0: saving 68 bytes of video state Oct 23 00:12:00 mavbook kernel: pci0:0:2:0: Transition from D0 to D3 Oct 23 00:12:00 mavbook kernel: pci0:0:2:1: Transition from D0 to D3 Oct 23 00:12:00 mavbook kernel: pci0:0:26:7: Transition from D0 to D3 Oct 23 00:12:00 mavbook kernel: acpi: bad write to port 0x080 (32), val 0xbb Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D0 to D3 Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D0 to D3 Oct 23 00:12:06 mavbook kernel: pci0:0:2:0: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: pci0:0:2:1: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: acpi: bad write to port 0x080 (32), val 0xaa Oct 23 00:12:06 mavbook kernel: pci0:0:26:7: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: hdac0: GPIO init: data=0x00000000 mask=0x00000000 dir=0x00000000 Oct 23 00:12:06 mavbook kernel: hdac0: GPIO commit: data=0x00000001 mask=0x00000001 dir=0x00000001 Oct 23 00:12:06 mavbook kernel: hdac0: Enabling headphone/speaker audio routing switching: Oct 23 00:12:06 mavbook kernel: hdac0: as=0 sense nid=20 [UNSOL] Oct 23 00:12:06 mavbook kernel: hdac0: Pin sense: nid=20 res=0x80000000 Oct 23 00:12:06 mavbook kernel: pci0:4:0:0: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: bge0: link UP Oct 23 00:12:06 mavbook kernel: bge0: Disabling fastboot Oct 23 00:12:06 mavbook kernel: bge0: link DOWN Oct 23 00:12:06 mavbook kernel: bge0: Disabling fastboot Oct 23 00:12:06 mavbook kernel: pci0:5:0:0: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: pci0:10:9:0: Transition from D3 to D0 Oct 23 00:12:06 mavbook kernel: fwohci0: Phy 1394a available S400, 3 ports. Oct 23 00:12:06 mavbook kernel: fwohci0: Link S400, max_rec 2048 bytes. Oct 23 00:12:06 mavbook kernel: fwohci0: Initiate bus reset Oct 23 00:12:06 mavbook kernel: fwohci0: BUS reset Oct 23 00:12:06 mavbook kernel: fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode Oct 23 00:12:06 mavbook kernel: ata0: reiniting channel .. Oct 23 00:12:06 mavbook kernel: ata0: reset tp1 mask=03 ostat0=50 ostat1=00 Oct 23 00:12:06 mavbook kernel: ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb Oct 23 00:12:06 mavbook kernel: ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 Oct 23 00:12:06 mavbook kernel: ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 Oct 23 00:12:06 mavbook kernel: iwn0: RF switch: radio fdiisraebwlierde Oct 23 00:12:06 mavbook kernel: 0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) Oct 23 00:12:06 mavbook kernel: firewire0: bus manager 0 (me) Oct 23 00:12:06 mavbook kernel: fwohci0: phy int Oct 23 00:12:06 mavbook kernel: ugen0: at uhub2 port 3 (addr 2) disconnected Oct 23 00:12:06 mavbook kernel: bge0: link UP Oct 23 00:12:06 mavbook kernel: bge0: 2 link states coalesced Oct 23 00:12:06 mavbook kernel: bge0: link state changed to UP Oct 23 00:12:06 mavbook kernel: ugen1: at uhub0 port 1 (addr 2) disconnected Oct 23 00:12:06 mavbook kernel: ugen1: detached Oct 23 00:12:06 mavbook kernel: ums0: at uhub3 port 2 (addr 2) disconnected Oct 23 00:12:06 mavbook kernel: acd0: setting PIO4 on ICH8M chip Oct 23 00:12:06 mavbook kernel: ugen0: detached Oct 23 00:12:06 mavbook kernel: ukbd0: at uhub4 port 1 (addr 2) disconnected Oct 23 00:12:06 mavbook kernel: ums0: detached Oct 23 00:12:06 mavbook kernel: ukbd0: detached Oct 23 00:12:06 mavbook kernel: uhid0: at uhub4 port 1 (addr 2) disconnected Oct 23 00:12:06 mavbook kernel: uhid0: detached Oct 23 00:12:06 mavbook kernel: acd0: setting UDMA33 on ICH8M chip Oct 23 00:12:06 mavbook kernel: ata0: reinit done .. Oct 23 00:12:06 mavbook kernel: ata2: reiniting channel .. Oct 23 00:12:06 mavbook kernel: ata2: SATA connect time=0ms Oct 23 00:12:06 mavbook kernel: ata2: BUSY wait time=1ms Oct 23 00:12:06 mavbook kernel: ata2: SIGNATURE: 00000101 Oct 23 00:12:06 mavbook kernel: ata2: ahci_reset devices=00000001 Oct 23 00:12:06 mavbook kernel: ata2: reinit done .. Oct 23 00:12:06 mavbook kernel: ata3: reiniting channel .. Oct 23 00:12:06 mavbook kernel: ata3: SATA connect status=00000004 Oct 23 00:12:06 mavbook kernel: ata3: phy reset found no device Oct 23 00:12:06 mavbook kernel: ata3: reinit done .. Oct 23 00:12:06 mavbook kernel: ata4: reiniting channel .. Oct 23 00:12:06 mavbook kernel: ata4: SATA connect status=00000000 Oct 23 00:12:06 mavbook kernel: ata4: phy reset found no device Oct 23 00:12:06 mavbook kernel: ata4: reinit done .. Oct 23 00:12:06 mavbook kernel: atkbd: the current kbd controller command byte 0047 Oct 23 00:12:06 mavbook kernel: atkbd: keyboard ID 0x41ab (2) Oct 23 00:12:06 mavbook kernel: kbdc: RESET_KBD return code:00fa Oct 23 00:12:06 mavbook kernel: kbdc: RESET_KBD status:00aa Oct 23 00:12:06 mavbook kernel: battery0: battery initialization start Oct 23 00:12:06 mavbook kernel: battery0: battery initialization done, tried 1 times Oct 23 00:12:07 mavbook kernel: drm0: [MPSAFE] Oct 23 00:12:07 mavbook kernel: drm0: [ITHREAD] Oct 23 00:12:07 mavbook kernel: ugen0: on uhub2 Oct 23 00:12:07 mavbook kernel: ugen1: on uhub0 Oct 23 00:12:07 mavbook kernel: ums0: on uhub3 Oct 23 00:12:07 mavbook kernel: ums0: 16 buttons and Z dir. Oct 23 00:12:07 mavbook acpi: resumed at 20081023 00:12:07 Oct 23 00:12:07 mavbook root: Unknown USB device: vendor 0x064e product 0xa101 bus uhub2 Oct 23 00:12:07 mavbook root: Unknown USB device: vendor 0x147e product 0x2016 bus uhub0 Oct 23 00:12:07 mavbook root: Unknown USB device: vendor 0x046d product 0xc50e bus uhub3 Oct 23 00:12:09 mavbook root: Unknown USB device: vendor 0x046d product 0xc313 bus uhub4 Oct 23 00:12:09 mavbook kernel: ukbd0: on uhub4 Oct 23 00:12:09 mavbook kernel: kbd2 at ukbd0 Oct 23 00:12:09 mavbook kernel: kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 Oct 23 00:12:09 mavbook kernel: uhid0: on uhub4 -- Alexander Motin From nate at root.org Wed Oct 22 21:27:52 2008 From: nate at root.org (Nate Lawson) Date: Wed Oct 22 21:27:59 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <48FF9925.4090007@FreeBSD.org> References: <1224616985.00027652.1224606603@10.7.7.3> <48FF78F0.2090801@FreeBSD.org> <200810221623.09613.jkim@FreeBSD.org> <48FF9925.4090007@FreeBSD.org> Message-ID: <48FF9AFA.3030201@root.org> Alexander Motin wrote: > Jung-uk Kim wrote: >> When you do 'sysctl debug.acpi.suspend_bounce=1' and 'acpiconf -s 3', >> does it bounce back? If it does not, there are other problems, e.g., >> device drivers. On my desktop, for example, vga(4) tries to restore >> previous state while resuming but it hangs system. In fact, I believe >> ISA-era EGA/VGA save/restore routines do not work for modern graphics >> cards at all. :-( > > Test passed from both console and XOrg. I have integrated i965GM video. > > Here is verbose messages from that trip "there and back again": > > Oct 23 00:11:55 mavbook acpi: suspend at 20081023 00:11:55 > Oct 23 00:12:00 mavbook kernel: vga0: saving 68 bytes of video state > Oct 23 00:12:00 mavbook kernel: pci0:0:2:0: Transition from D0 to D3 > Oct 23 00:12:00 mavbook kernel: pci0:0:2:1: Transition from D0 to D3 > Oct 23 00:12:00 mavbook kernel: pci0:0:26:7: Transition from D0 to D3 > Oct 23 00:12:00 mavbook kernel: acpi: bad write to port 0x080 (32), val > 0xbb > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D0 to D3 > Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D0 to D3 > Oct 23 00:12:06 mavbook kernel: pci0:0:2:0: Transition from D3 to D0 > Oct 23 00:12:06 mavbook kernel: pci0:0:2:1: Transition from D3 to D0 > Oct 23 00:12:06 mavbook kernel: acpi: bad write to port 0x080 (32), val > 0xaa > Oct 23 00:12:06 mavbook kernel: pci0:0:26:7: Transition from D3 to D0 > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D3 to D0 > Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D3 to D0 That's kind of weird. The above devices were turned off (D3) then back on again (D0). I'm wondering about that blocked write also. -- Nate From jhb at freebsd.org Wed Oct 22 22:33:52 2008 From: jhb at freebsd.org (John Baldwin) Date: Wed Oct 22 22:33:59 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <48FF9AFA.3030201@root.org> References: <1224616985.00027652.1224606603@10.7.7.3> <48FF9925.4090007@FreeBSD.org> <48FF9AFA.3030201@root.org> Message-ID: <200810221813.39270.jhb@freebsd.org> On Wednesday 22 October 2008 05:28:26 pm Nate Lawson wrote: > Alexander Motin wrote: > > Jung-uk Kim wrote: > >> When you do 'sysctl debug.acpi.suspend_bounce=1' and 'acpiconf -s 3', > >> does it bounce back? If it does not, there are other problems, e.g., > >> device drivers. On my desktop, for example, vga(4) tries to restore > >> previous state while resuming but it hangs system. In fact, I believe > >> ISA-era EGA/VGA save/restore routines do not work for modern graphics > >> cards at all. :-( > > > > Test passed from both console and XOrg. I have integrated i965GM video. > > > > Here is verbose messages from that trip "there and back again": > > > > Oct 23 00:11:55 mavbook acpi: suspend at 20081023 00:11:55 > > > Oct 23 00:12:00 mavbook kernel: vga0: saving 68 bytes of video state > > Oct 23 00:12:00 mavbook kernel: pci0:0:2:0: Transition from D0 to D3 > > Oct 23 00:12:00 mavbook kernel: pci0:0:2:1: Transition from D0 to D3 > > Oct 23 00:12:00 mavbook kernel: pci0:0:26:7: Transition from D0 to D3 > > Oct 23 00:12:00 mavbook kernel: acpi: bad write to port 0x080 (32), val > > 0xbb > > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D0 to D3 > > Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D0 to D3 > > > Oct 23 00:12:06 mavbook kernel: pci0:0:2:0: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: pci0:0:2:1: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: acpi: bad write to port 0x080 (32), val > > 0xaa > > Oct 23 00:12:06 mavbook kernel: pci0:0:26:7: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D3 to D0 > > Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition from D3 to D0 > > That's kind of weird. The above devices were turned off (D3) then back > on again (D0). I'm wondering about that blocked write also. I think they were probably off before due to not having a driver and we turned them back on, noticed there wasn't a driver, and turned them back off again. If so, that should be fixable. -- John Baldwin From jkim at FreeBSD.org Wed Oct 22 23:44:23 2008 From: jkim at FreeBSD.org (Jung-uk Kim) Date: Wed Oct 22 23:44:34 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <48FF9AFA.3030201@root.org> References: <1224616985.00027652.1224606603@10.7.7.3> <48FF9925.4090007@FreeBSD.org> <48FF9AFA.3030201@root.org> Message-ID: <200810221944.13406.jkim@FreeBSD.org> On Wednesday 22 October 2008 05:28 pm, Nate Lawson wrote: > Alexander Motin wrote: > > Jung-uk Kim wrote: > >> When you do 'sysctl debug.acpi.suspend_bounce=1' and 'acpiconf > >> -s 3', does it bounce back? If it does not, there are other > >> problems, e.g., device drivers. On my desktop, for example, > >> vga(4) tries to restore previous state while resuming but it > >> hangs system. In fact, I believe ISA-era EGA/VGA save/restore > >> routines do not work for modern graphics cards at all. :-( > > > > Test passed from both console and XOrg. I have integrated i965GM > > video. > > > > Here is verbose messages from that trip "there and back again": > > > > Oct 23 00:11:55 mavbook acpi: suspend at 20081023 00:11:55 > > > > Oct 23 00:12:00 mavbook kernel: vga0: saving 68 bytes of video > > state Oct 23 00:12:00 mavbook kernel: pci0:0:2:0: Transition from > > D0 to D3 Oct 23 00:12:00 mavbook kernel: pci0:0:2:1: Transition > > from D0 to D3 Oct 23 00:12:00 mavbook kernel: pci0:0:26:7: > > Transition from D0 to D3 Oct 23 00:12:00 mavbook kernel: acpi: > > bad write to port 0x080 (32), val 0xbb > > Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition from D0 > > to D3 Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: Transition > > from D0 to D3 > > > > Oct 23 00:12:06 mavbook kernel: pci0:0:2:0: Transition from D3 to > > D0 Oct 23 00:12:06 mavbook kernel: pci0:0:2:1: Transition from D3 > > to D0 Oct 23 00:12:06 mavbook kernel: acpi: bad write to port > > 0x080 (32), val 0xaa > > Oct 23 00:12:06 mavbook kernel: pci0:0:26:7: Transition from D3 > > to D0 Oct 23 00:12:06 mavbook kernel: pci0:0:27:0: Transition > > from D3 to D0 Oct 23 00:12:06 mavbook kernel: pci0:0:31:2: > > Transition from D3 to D0 > > That's kind of weird. The above devices were turned off (D3) then > back on again (D0). I'm wondering about that blocked write also. The port 0x80 is usually used for BIOS debugging. http://www.coreboot.org/FAQ#POST_card Probably BIOS developer forgot to comment out the lines. :-) Jung-uk Kim From neldredge at math.ucsd.edu Thu Oct 23 00:48:38 2008 From: neldredge at math.ucsd.edu (Nate Eldredge) Date: Thu Oct 23 00:48:44 2008 Subject: Semi-working patch for amd64 suspend/resume In-Reply-To: <200810221944.13406.jkim@FreeBSD.org> References: <1224616985.00027652.1224606603@10.7.7.3> <48FF9925.4090007@FreeBSD.org> <48FF9AFA.3030201@root.org> <200810221944.13406.jkim@FreeBSD.org> Message-ID: On Wed, 22 Oct 2008, Jung-uk Kim wrote: > The port 0x80 is usually used for BIOS debugging. > > http://www.coreboot.org/FAQ#POST_card > > Probably BIOS developer forgot to comment out the lines. :-) Or it's been left in as a diagnostic tool. My motherboard has a built-in LED display wired up to port 0x80, and it flashes various numbers as it passes different stages of booting. Useful for detecting various types of failure, nicer than the beep codes. It can also be handy for kernel debugging, when you can't use printf. A very thoughtful feature on the motherboard designer's part. Btw, I'm interested to test the patch, and I'll do so when I have a chance. This is a feature I've been awaiting for some time. -- Nate Eldredge neldredge@math.ucsd.edu From gaijin.k at gmail.com Thu Oct 23 03:07:57 2008 From: gaijin.k at gmail.com (Alexandre "Sunny" Kovalenko) Date: Thu Oct 23 03:08:03 2008 Subject: Crash after undocking Dell Lat. d430 In-Reply-To: <48FF52C9.3040105@aixmarseille.com> References: <48FF52C9.3040105@aixmarseille.com> Message-ID: <1224729722.1153.11.camel@RabbitsDen> On Wed, 2008-10-22 at 18:20 +0200, Olivier Fauchon wrote: > Hi. > > I'm running SMP FreeBSD7 on Dell Latitude d430. > > I have dell dockstation (for connecting office display, keyboard mouse ...) > > Last week, I tried to undock the laptop (While working in X session) , > and laptop crashed. > > Do FreeBSD support docking/undocking, can you tell me if it's > transparent, or if there are commands to run before undocking ? maybe > ways to debug it ? FWIW: I routinely dock and undock my ThinkPad X61. If I do not forget to unmount ATA drive in the UltraBay, or one of the USB drives, plugged into the dock, things work rather well. I normally plug my USB mouse into one of the dock's USB ports -- this does not seem to require any special handling. Is it possible that you have something in the dock that does not like being yanked? I woould recommend starting by comparing output of 'pciconf -l' in both states. I am tracking RELENG_7 somewhat lazily. > > The dockstation seems to have a 'undock' button which doesn't react > under freebsd. Mine actually does -- it turns off red led and unlocks the laptop. > > Thanks > > -- Alexandre "Sunny" Kovalenko (????????? ?????????) From mav at FreeBSD.org Sat Oct 25 22:43:48 2008 From: mav at FreeBSD.org (Alexander Motin) Date: Sat Oct 25 22:43:55 2008 Subject: PCIe bridges resources disappearing with ACPI enabled. Message-ID: <4903A120.7040003@FreeBSD.org> Hi. I have spent whole day trying to investigate strange problem of my Acer TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three of PCIe-to-PCIe bridges appearing completely without I/O resources: pcib1: irq 17 at device 28.0 on pci0 pcib1: domain 0 pcib1: secondary bus 2 pcib1: subordinate bus 3 pcib1: I/O decode 0x0-0x0 pcib1: no prefetched decode ... At the same time, with ACPI disabled, resources are present. There are some different problem with IRQ in that case, but it is another question, not so interesting to me. I have tried both IO and memory mapped PCIe configuration registers without success. I have made heavy digging trying to find where resources disappearing. I have even added debug printing inside pcireg_cfgwrite() and pciereg_cfgwrite() to trace if somebody erases it and found nothing. Nothing writes into that devices configuration registers. At this moment I am living with ugly hack found here: http://lists.freebsd.org/pipermail/freebsd-acpi/2008-May/004905.html, and I would be grateful if somebody give me a hint what is going on here and why Windows and Linux (according reports) work fine. Here is my pciconf -l: hostb0@pci0:0:0:0: class=0x060000 card=0x011b1025 chip=0x2a008086 rev=0x03 hdr=0x00 vgapci0@pci0:0:2:0: class=0x030000 card=0x011b1025 chip=0x2a028086 rev=0x03 hdr=0x00 vgapci1@pci0:0:2:1: class=0x038000 card=0x011b1025 chip=0x2a038086 rev=0x03 hdr=0x00 uhci0@pci0:0:26:0: class=0x0c0300 card=0x011b1025 chip=0x28348086 rev=0x03 hdr=0x00 uhci1@pci0:0:26:1: class=0x0c0300 card=0x011b1025 chip=0x28358086 rev=0x03 hdr=0x00 ehci0@pci0:0:26:7: class=0x0c0320 card=0x011b1025 chip=0x283a8086 rev=0x03 hdr=0x00 hdac0@pci0:0:27:0: class=0x040300 card=0x011b1025 chip=0x284b8086 rev=0x03 hdr=0x00 pcib1@pci0:0:28:0: class=0x060400 card=0x011b1025 chip=0x283f8086 rev=0x03 hdr=0x01 pcib2@pci0:0:28:2: class=0x060400 card=0x011b1025 chip=0x28438086 rev=0x03 hdr=0x01 pcib3@pci0:0:28:3: class=0x060400 card=0x011b1025 chip=0x28458086 rev=0x03 hdr=0x01 uhci2@pci0:0:29:0: class=0x0c0300 card=0x011b1025 chip=0x28308086 rev=0x03 hdr=0x00 uhci3@pci0:0:29:1: class=0x0c0300 card=0x011b1025 chip=0x28318086 rev=0x03 hdr=0x00 uhci4@pci0:0:29:2: class=0x0c0300 card=0x011b1025 chip=0x28328086 rev=0x03 hdr=0x00 ehci1@pci0:0:29:7: class=0x0c0320 card=0x011b1025 chip=0x28368086 rev=0x03 hdr=0x00 pcib4@pci0:0:30:0: class=0x060401 card=0x00000000 chip=0x24488086 rev=0xf3 hdr=0x01 isab0@pci0:0:31:0: class=0x060100 card=0x011b1025 chip=0x28158086 rev=0x03 hdr=0x00 atapci0@pci0:0:31:1: class=0x01018a card=0x011b1025 chip=0x28508086 rev=0x03 hdr=0x00 atapci1@pci0:0:31:2: class=0x010601 card=0x011b1025 chip=0x28298086 rev=0x03 hdr=0x00 none0@pci0:0:31:3: class=0x0c0500 card=0x011b1025 chip=0x283e8086 rev=0x03 hdr=0x00 bge0@pci0:4:0:0: class=0x020000 card=0x011b1025 chip=0x169314e4 rev=0x02 hdr=0x00 iwn0@pci0:5:0:0: class=0x028000 card=0x11018086 chip=0x42298086 rev=0x61 hdr=0x00 cbb0@pci0:10:1:0: class=0x060700 card=0x011b1025 chip=0x14101524 rev=0x01 hdr=0x02 none1@pci0:10:2:0: class=0x050100 card=0x011b1025 chip=0x07301524 rev=0x00 hdr=0x00 sdhci0@pci0:10:2:1: class=0x080501 card=0x011b1025 chip=0x07501524 rev=0x00 hdr=0x00 none2@pci0:10:2:2: class=0x050100 card=0x011b1025 chip=0x07201524 rev=0x00 hdr=0x00 sdhci1@pci0:10:2:3: class=0x050100 card=0x011b1025 chip=0x07511524 rev=0x00 hdr=0x00 fwohci0@pci0:10:9:0: class=0x0c0010 card=0x011b1025 chip=0x8024104c rev=0x00 hdr=0x00 Problematic devices are 0:28:0, 0:28:2, 0:28:3. What is also strange is that PCIe-to-PCI bridge 0:30:0 working just fine. ASL attached. -- Alexander Motin From gamato at users.sf.net Sun Oct 26 11:05:03 2008 From: gamato at users.sf.net (martinko) Date: Sun Oct 26 11:05:11 2008 Subject: Support for Fn keys on a Sony laptop In-Reply-To: <639139.36385.qm@web31715.mail.mud.yahoo.com> References: <639139.36385.qm@web31715.mail.mud.yahoo.com> Message-ID: Vishwanathan S V N wrote: > Hi! > > I posted this to the freebsd-mobile mailing list and got no response. Maybe someone from the freebsd-acpi list knows the answer. > > I am new to FreeBSD so please be gentle on me, especially if this is a FAQ. > > I am running DesktopBSD 1.6.1 live DVD on my sony vaio VGN SZ483NC laptop. I notice that the acpi_ibm module is very feature rich while the acpi_sony module almost feels like a stub. > > I know that under Linux there has been extensive work to reverse engineer the Fn keys on sony Vaio laptops. See > > http://tjworld.net/snc/ > > or > > http://ubuntuforums.org/showthread.php?t=465491 > > I am wondering if something similar to that is already available or in the works for FreeBSD as well? > > If it not available, how much work would it be to port things over? Is the acpi_sony.c the relevant file to look into? > Unfortunately the same situation we have with acpi_asus module which is actively developed at http://sourceforge.net/projects/acpi4asus/ but FreeBSD port is ancient with very limited functionality. :-( From gamato at users.sf.net Sun Oct 26 12:03:37 2008 From: gamato at users.sf.net (martinko) Date: Sun Oct 26 12:03:44 2008 Subject: ODP: Re: Acpli driver for FreeBSD to Asus A6F In-Reply-To: <200804171115.13132.jkim@FreeBSD.org> References: <200804171115.13132.jkim@FreeBSD.org> Message-ID: <49045C8D.8090708@users.sf.net> Jung-uk Kim wrote: > > You have to hook up devd to get extra buttons that are not handled by > acpi_asus(4). One night, I wrote an ugly script to do that (attached > for your reference). To use it, you need to add the following lines > in the /etc/devd.conf: > > # ASUS laptop notified actions. > notify 10 { > match "system" "ACPI"; > match "subsystem" "ASUS"; > action "/etc/acpi_asus $notify"; > }; > > and place the attached file in /etc and make it executable. For X.org > OSD, you need to install ports/misc/xosd. > > Enjoy, > > Jung-uk Kim > This is great! :-D I've already forgotten this part of my laptop's functionality but now I'm getting excited about it again. ;-) Well, not everything works out of the box but it's a good place to start. Btw, don't you want to create a port of this ?? :o) I'm already thinking of ways to improve the script. First, I want to add support for extra keys my laptop has got. Then I'd like to factor the settings out so that users don't have to edit the script in order to change desired behaviour. /Also, for instance, main volume control does not work everywhere and therefore it is likely to be needed redefined./ Cheers! :-) Martin From bugmaster at FreeBSD.org Mon Oct 27 11:07:06 2008 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Oct 27 11:07:13 2008 Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org Message-ID: <200810271107.m9RB75nS001832@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/127581 acpi [patch] [acpi_sony] Add support for more Sony features o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin f kern/121454 acpi [pst] Promise SuperTrak SX6000 does not load during bo o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/117605 acpi [acpi] [request] add debug.cpufreq.highest o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108581 acpi [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid argume o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o kern/89411 acpi [acpi] acpiconf bug o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o kern/81000 acpi [apic] Via 8235 sound card worked great with FreeBSD 5 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys s kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 f kern/67309 acpi zzz reboot computer (ACPI S3) o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 o i386/54756 acpi ACPI suspend/resume problem on CF-W2 laptop 41 problems total. From jhb at freebsd.org Mon Oct 27 16:02:43 2008 From: jhb at freebsd.org (John Baldwin) Date: Mon Oct 27 16:02:50 2008 Subject: PCIe bridges resources disappearing with ACPI enabled. In-Reply-To: <4903A120.7040003@FreeBSD.org> References: <4903A120.7040003@FreeBSD.org> Message-ID: <200810271142.59666.jhb@freebsd.org> On Saturday 25 October 2008 06:43:44 pm Alexander Motin wrote: > Hi. > > I have spent whole day trying to investigate strange problem of my Acer > TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three > of PCIe-to-PCIe bridges appearing completely without I/O resources: > pcib1: irq 17 at device 28.0 on pci0 > pcib1: domain 0 > pcib1: secondary bus 2 > pcib1: subordinate bus 3 > pcib1: I/O decode 0x0-0x0 > pcib1: no prefetched decode > ... > At the same time, with ACPI disabled, resources are present. There are > some different problem with IRQ in that case, but it is another > question, not so interesting to me. > > I have tried both IO and memory mapped PCIe configuration registers > without success. > > I have made heavy digging trying to find where resources disappearing. I > have even added debug printing inside pcireg_cfgwrite() and > pciereg_cfgwrite() to trace if somebody erases it and found nothing. > Nothing writes into that devices configuration registers. The SMI handle could be clearing the BARs when ACPI is enabled for some reason. Windows and Linux are smart enough to alloc resources for bridges, but FreeBSD isn't yet. -- John Baldwin From nate at root.org Mon Oct 27 16:18:08 2008 From: nate at root.org (Nate Lawson) Date: Mon Oct 27 16:18:15 2008 Subject: PCIe bridges resources disappearing with ACPI enabled. In-Reply-To: <200810271142.59666.jhb@freebsd.org> References: <4903A120.7040003@FreeBSD.org> <200810271142.59666.jhb@freebsd.org> Message-ID: <4905E740.9060302@root.org> John Baldwin wrote: > On Saturday 25 October 2008 06:43:44 pm Alexander Motin wrote: >> I have spent whole day trying to investigate strange problem of my Acer >> TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three >> of PCIe-to-PCIe bridges appearing completely without I/O resources: >> pcib1: irq 17 at device 28.0 on pci0 >> pcib1: domain 0 >> pcib1: secondary bus 2 >> pcib1: subordinate bus 3 >> pcib1: I/O decode 0x0-0x0 >> pcib1: no prefetched decode >> ... >> At the same time, with ACPI disabled, resources are present. There are >> some different problem with IRQ in that case, but it is another >> question, not so interesting to me. >> >> I have tried both IO and memory mapped PCIe configuration registers >> without success. >> >> I have made heavy digging trying to find where resources disappearing. I >> have even added debug printing inside pcireg_cfgwrite() and >> pciereg_cfgwrite() to trace if somebody erases it and found nothing. >> Nothing writes into that devices configuration registers. > > The SMI handler could be clearing the BARs when ACPI is enabled for some > reason. Windows and Linux are smart enough to alloc resources for bridges, > but FreeBSD isn't yet. That would match my expectations also. Where Linux works with ACPI but FreeBSD does not, it tends to be an error of omission (missing features) versus commission (a bug). So I would start looking into implementing more of the PCIe and ACPI spec. Look for areas where Linux has had more functionality brought in over the past couple years. -- Nate From serge at a-1.com.ua Mon Oct 27 23:10:09 2008 From: serge at a-1.com.ua (Serge Semenenko) Date: Mon Oct 27 23:10:15 2008 Subject: PCIe bridges resources disappearing with ACPI enabled. In-Reply-To: <200810271142.59666.jhb@freebsd.org> References: <4903A120.7040003@FreeBSD.org> <200810271142.59666.jhb@freebsd.org> Message-ID: <4906450E.4030700@a-1.com.ua> John Baldwin wrote: > On Saturday 25 October 2008 06:43:44 pm Alexander Motin wrote: > >> Hi. >> >> I have spent whole day trying to investigate strange problem of my Acer >> TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three >> of PCIe-to-PCIe bridges appearing completely without I/O resources: >> pcib1: irq 17 at device 28.0 on pci0 >> pcib1: domain 0 >> pcib1: secondary bus 2 >> pcib1: subordinate bus 3 >> pcib1: I/O decode 0x0-0x0 >> pcib1: no prefetched decode >> ... >> At the same time, with ACPI disabled, resources are present. There are >> some different problem with IRQ in that case, but it is another >> question, not so interesting to me. >> >> I have tried both IO and memory mapped PCIe configuration registers >> without success. >> >> I have made heavy digging trying to find where resources disappearing. I >> have even added debug printing inside pcireg_cfgwrite() and >> pciereg_cfgwrite() to trace if somebody erases it and found nothing. >> Nothing writes into that devices configuration registers. >> > > The SMI handle could be clearing the BARs when ACPI is enabled for some > reason. Windows and Linux are smart enough to alloc resources for bridges, > but FreeBSD isn't yet. > > Thanks for a good tip. Elimination of "Store (Zero, SMIC)" string from ASL code has solved the problem. From jhb at freebsd.org Tue Oct 28 15:31:50 2008 From: jhb at freebsd.org (John Baldwin) Date: Tue Oct 28 15:31:55 2008 Subject: PCIe bridges resources disappearing with ACPI enabled. In-Reply-To: <4906450E.4030700@a-1.com.ua> References: <4903A120.7040003@FreeBSD.org> <200810271142.59666.jhb@freebsd.org> <4906450E.4030700@a-1.com.ua> Message-ID: <200810281108.56218.jhb@freebsd.org> On Monday 27 October 2008 06:47:42 pm Serge Semenenko wrote: > John Baldwin wrote: > > On Saturday 25 October 2008 06:43:44 pm Alexander Motin wrote: > > > >> Hi. > >> > >> I have spent whole day trying to investigate strange problem of my Acer > >> TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three > >> of PCIe-to-PCIe bridges appearing completely without I/O resources: > >> pcib1: irq 17 at device 28.0 on pci0 > >> pcib1: domain 0 > >> pcib1: secondary bus 2 > >> pcib1: subordinate bus 3 > >> pcib1: I/O decode 0x0-0x0 > >> pcib1: no prefetched decode > >> ... > >> At the same time, with ACPI disabled, resources are present. There are > >> some different problem with IRQ in that case, but it is another > >> question, not so interesting to me. > >> > >> I have tried both IO and memory mapped PCIe configuration registers > >> without success. > >> > >> I have made heavy digging trying to find where resources disappearing. I > >> have even added debug printing inside pcireg_cfgwrite() and > >> pciereg_cfgwrite() to trace if somebody erases it and found nothing. > >> Nothing writes into that devices configuration registers. > >> > > > > The SMI handle could be clearing the BARs when ACPI is enabled for some > > reason. Windows and Linux are smart enough to alloc resources for bridges, > > but FreeBSD isn't yet. > > > > > > Thanks for a good tip. Elimination of "Store (Zero, SMIC)" string from > ASL code has solved the problem. That may not be a good solution though as there may be other things the SMI handler is doing to enable ACPI support that the OS is dependent on. -- John Baldwin From serge at a-1.com.ua Wed Oct 29 17:40:49 2008 From: serge at a-1.com.ua (Serge Semenenko) Date: Wed Oct 29 17:40:56 2008 Subject: PCIe bridges resources disappearing with ACPI enabled. In-Reply-To: <200810281108.56218.jhb@freebsd.org> References: <4903A120.7040003@FreeBSD.org> <200810271142.59666.jhb@freebsd.org> <4906450E.4030700@a-1.com.ua> <200810281108.56218.jhb@freebsd.org> Message-ID: <4908A017.3070305@a-1.com.ua> John Baldwin wrote: > On Monday 27 October 2008 06:47:42 pm Serge Semenenko wrote: > >> John Baldwin wrote: >> >>> On Saturday 25 October 2008 06:43:44 pm Alexander Motin wrote: >>> >>> >>>> Hi. >>>> >>>> I have spent whole day trying to investigate strange problem of my Acer >>>> TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three >>>> of PCIe-to-PCIe bridges appearing completely without I/O resources: >>>> pcib1: irq 17 at device 28.0 on pci0 >>>> pcib1: domain 0 >>>> pcib1: secondary bus 2 >>>> pcib1: subordinate bus 3 >>>> pcib1: I/O decode 0x0-0x0 >>>> pcib1: no prefetched decode >>>> ... >>>> At the same time, with ACPI disabled, resources are present. There are >>>> some different problem with IRQ in that case, but it is another >>>> question, not so interesting to me. >>>> >>>> I have tried both IO and memory mapped PCIe configuration registers >>>> without success. >>>> >>>> I have made heavy digging trying to find where resources disappearing. I >>>> have even added debug printing inside pcireg_cfgwrite() and >>>> pciereg_cfgwrite() to trace if somebody erases it and found nothing. >>>> Nothing writes into that devices configuration registers. >>>> >>>> >>> The SMI handle could be clearing the BARs when ACPI is enabled for some >>> reason. Windows and Linux are smart enough to alloc resources for >>> > bridges, > >>> but FreeBSD isn't yet. >>> >>> >>> >> Thanks for a good tip. Elimination of "Store (Zero, SMIC)" string from >> ASL code has solved the problem. >> > > That may not be a good solution though as there may be other things the SMI > handler is doing to enable ACPI support that the OS is dependent on. > > Seems you're right. Some WMI routines stop working. But anyway that appears unrelated to the subject. Got to make a confession... It's a shame, but I've forgot about NO_MODULES="YES" option at make.conf... So my acpi.ko remains hacked all the time... After rebuild even with patched ASL bridge resources are still unassigned... Sorry for the mess.. From soediro at gmail.com Thu Oct 30 02:48:26 2008 From: soediro at gmail.com (sudiro) Date: Thu Oct 30 02:48:32 2008 Subject: router and inline proxy problem in FreeBSD 7.0 RELEASE Message-ID: <41fb1abc0810291922r239289e5ubb033e687d09bd5b@mail.gmail.com> I've been setting up router & proxy in a single machine. With additional kernel configuration as follows: options IPFIREWALL options IPDIVERT and "unsecured" firewall /usr/local/etc/firewall.conf as: add divert natd all from any to any via sk0 add allow all from any to any with above configuration and some additional parameter at /etc/rc.conf, I can't connect directly from my LAN to the internet or ICMP request to my ISP or run tracert in DOS box, except the browser which has to be set using proxy connection first. I've read the official documentation and some related books both FreeBSD and Squid. but remain the same. is there anything left? I'm using 2 NIC. one facing the internet (connect to my ISP using static IP), another facing my LAN. Thank's From robert.moore at intel.com Fri Oct 31 09:39:22 2008 From: robert.moore at intel.com (Moore, Robert) Date: Fri Oct 31 09:46:58 2008 Subject: ACPICA version 20081031 released Message-ID: <4911F71203A09E4D9981D27F9D8308580AEC1809@orsmsx503.amr.corp.intel.com> 31 October 2008. Summary of changes for version 20081031: This release is available at www.acpica.org/downloads. 1) ACPI CA Core Subsystem: Restructured the ACPICA header files into public/private. acpi.h now includes only the "public" acpica headers. All other acpica headers are "private" and should not be included by acpica users. One new file, accommon.h is used to include the commonly used private headers for acpica code generation. Future plans include moving all private headers to a new subdirectory. Implemented an automatic Buffer->String return value conversion for predefined ACPI methods. For these methods (such as _BIF), added automatic conversion for return objects that are required to be a String, but a Buffer was found instead. This can happen when reading string battery data from an operation region, because it used to be difficult to convert the data from buffer to string from within the ASL. Ensures that the host OS is provided with a valid null-terminated string. Linux BZ 11822. Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector into two: one for the 32-bit vector, another for the 64-bit vector. This is required because the host OS must setup the wake much differently for each vector (real vs. protected mode, etc.) and the interface itself should not be deciding which vector to use. Also, eliminated the GetFirmwareWakingVector interface, as it served no purpose (only the firmware reads the vector, OS only writes the vector.) ACPICA BZ 731. Implemented a mechanism to escape infinite AML While() loops. Added a loop counter to force exit from AML While loops if the count becomes too large. This can occur in poorly written AML when the hardware does not respond within a while loop and the loop does not implement a timeout. The maximum loop count is configurable. A new exception code is returned when a loop is broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. Optimized the execution of AML While loops. Previously, a control state object was allocated and freed for each execution of the loop. The optimization is to simply reuse the control state for each iteration. This speeds up the raw loop execution time by about 5%. Enhanced the implicit return mechanism. For Windows compatibility, return an implicit integer of value zero for methods that contain no executable code. Such methods are seen in the field as stubs (presumably), and can cause drivers to fail if they expect a return value. Lin Ming. Allow multiple backslashes as root prefixes in namepaths. In a fully qualified namepath, allow multiple backslash prefixes. This can happen (and is seen in the field) because of the use of a double-backslash in strings (since backslash is the escape character) causing confusion. ACPICA BZ 739 Lin Ming. Emit a warning if two different FACS or DSDT tables are discovered in the FADT. Checks if there are two valid but different addresses for the FACS and DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) Consolidated the method argument count validation code. Merged the code that validates control method argument counts into the predefined validation module. Eliminates possible multiple warnings for incorrect argument counts. Implemented ACPICA example code. Includes code for ACPICA initialization, handler installation, and calling a control method. Available at source/tools/examples. Added a global pointer for FACS table to simplify internal FACS access. Use the global pointer instead of using AcpiGetTableByIndex for each FACS access. This simplifies the code for the Global Lock and the Firmware Waking Vector(s). Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total Debug Version: 155.8K Code, 49.1K Data, 204.9K Total Current Release: Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2) iASL Compiler/Disassembler and Tools: iASL: Improved disassembly of external method calls. Added the -e option to allow the inclusion of additional ACPI tables to help with the disassembly of method invocations and the generation of external declarations during the disassembly. Certain external method invocations cannot be disassembled properly without the actual declaration of the method. Use the -e option to include the table where the external method(s) are actually declared. Most useful for disassembling SSDTs that make method calls back to the master DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d -e dsdt.aml ssdt1.aml iASL: Fix to allow references to aliases within ASL namepaths. Fixes a problem where the use of an alias within a namepath would result in a not found error or cause the compiler to fault. Also now allows forward references from the Alias operator itself. ACPICA BZ 738. From niktychina at gmail.com Fri Oct 31 11:37:31 2008 From: niktychina at gmail.com (Nikolay Tychina) Date: Fri Oct 31 11:37:38 2008 Subject: ACPI coexist with APM Message-ID: Hello, acpi is enabled, apm is disabled. > cat /boot/device.hints | grep apm hint.apm.0.disabled="1" hint.apm.0.flags="0x20" > cat /boot/device.hints | grep acpi hint.acpi.0.disabled="0" String "device apm" is commented in kernel config. ..and even kldstat shows NO apm: > kldstat -v | grep -i apm > As far as i know, they can't coexist. But they do: > apm APM version: 1.2 APM Management: Disabled AC Line status: on-line Battery Status: high Remaining battery life: 100% Remaining battery time: unknown Number of batteries: 1 Battery 0: Battery Status: high Remaining battery life: 100% Remaining battery time: unknown Resume timer: unknown Resume on ring indicator: disabled > acpiconf -i batt Design capacity: 4800 mAh Last full capacity: 3824 mAh Technology: secondary (rechargeable) Design voltage: 14800 mV Capacity (warn): 240 mAh Capacity (low): 144 mAh Low/warn granularity: 264 mAh Warn/full granularity: 3780 mAh Model number: Primary Serial number: Type: Lion OEM info: ACER State: high Remaining capacity: 100% Remaining time: unknown Present rate: 0 mA Voltage: 16391 mV Why apm shows me information, if it's disabled "by the data"? From oberman at es.net Fri Oct 31 12:03:22 2008 From: oberman at es.net (Kevin Oberman) Date: Fri Oct 31 12:03:28 2008 Subject: ACPI coexist with APM In-Reply-To: Your message of "Fri, 31 Oct 2008 21:12:06 +0300." Message-ID: <20081031185240.BB2F045010@ptavv.es.net> > Date: Fri, 31 Oct 2008 21:12:06 +0300 > From: "Nikolay Tychina" > Sender: owner-freebsd-acpi@freebsd.org > > Hello, > > acpi is enabled, apm is disabled. > > > cat /boot/device.hints | grep apm > > hint.apm.0.disabled="1" > hint.apm.0.flags="0x20" > > cat /boot/device.hints | grep acpi > hint.acpi.0.disabled="0" > > String "device apm" is commented in kernel config. > ..and even kldstat shows NO apm: > > kldstat -v | grep -i apm > > > > > > As far as i know, they can't coexist. But they do: > > > > > apm > APM version: 1.2 > APM Management: Disabled > AC Line status: on-line > > Battery Status: high > Remaining battery life: 100% > Remaining battery time: unknown > Number of batteries: 1 > Battery 0: > Battery Status: high > Remaining battery life: 100% > Remaining battery time: unknown > > Resume timer: unknown > Resume on ring indicator: disabled > > > acpiconf -i batt > Design capacity: 4800 mAh > Last full capacity: 3824 mAh > Technology: secondary (rechargeable) > Design voltage: 14800 mV > Capacity (warn): 240 mAh > Capacity (low): 144 mAh > Low/warn granularity: 264 mAh > Warn/full granularity: 3780 mAh > Model number: Primary > Serial number: > Type: Lion > OEM info: ACER > State: high > Remaining capacity: 100% > Remaining time: unknown > Present rate: 0 mA > Voltage: 16391 mV > > > > Why apm shows me information, if it's disabled "by the data"? Because the ACPI code has an APM emulator that supports legacy applications that lack ACPI capability. The apm command is an obvious case. Does your rc.conf have "apm_enable" or "apmd_enable"? -- 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 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 224 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-acpi/attachments/20081031/1dde52ea/attachment.pgp From niktychina at gmail.com Fri Oct 31 12:45:47 2008 From: niktychina at gmail.com (Nikolay Tychina) Date: Fri Oct 31 12:45:54 2008 Subject: ACPI coexist with APM In-Reply-To: <20081031185240.BB2F045010@ptavv.es.net> References: <20081031185240.BB2F045010@ptavv.es.net> Message-ID: rc.conf hasn't "apm_enable" and "apmd_enable". 2008/10/31 Kevin Oberman > > Date: Fri, 31 Oct 2008 21:12:06 +0300 > > From: "Nikolay Tychina" > > Sender: owner-freebsd-acpi@freebsd.org > > > > Hello, > > > > acpi is enabled, apm is disabled. > > > > > cat /boot/device.hints | grep apm > > > > hint.apm.0.disabled="1" > > hint.apm.0.flags="0x20" > > > cat /boot/device.hints | grep acpi > > hint.acpi.0.disabled="0" > > > > String "device apm" is commented in kernel config. > > ..and even kldstat shows NO apm: > > > kldstat -v | grep -i apm > > > > > > > > > > > As far as i know, they can't coexist. But they do: > > > > > > > > > apm > > APM version: 1.2 > > APM Management: Disabled > > AC Line status: on-line > > > > Battery Status: high > > Remaining battery life: 100% > > Remaining battery time: unknown > > Number of batteries: 1 > > Battery 0: > > Battery Status: high > > Remaining battery life: 100% > > Remaining battery time: unknown > > > > Resume timer: unknown > > Resume on ring indicator: disabled > > > > > acpiconf -i batt > > Design capacity: 4800 mAh > > Last full capacity: 3824 mAh > > Technology: secondary (rechargeable) > > Design voltage: 14800 mV > > Capacity (warn): 240 mAh > > Capacity (low): 144 mAh > > Low/warn granularity: 264 mAh > > Warn/full granularity: 3780 mAh > > Model number: Primary > > Serial number: > > Type: Lion > > OEM info: ACER > > State: high > > Remaining capacity: 100% > > Remaining time: unknown > > Present rate: 0 mA > > Voltage: 16391 mV > > > > > > > > Why apm shows me information, if it's disabled "by the data"? > > Because the ACPI code has an APM emulator that supports legacy > applications that lack ACPI capability. The apm command is an obvious > case. > > Does your rc.conf have "apm_enable" or "apmd_enable"? > -- > 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 > Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 > From jkim at FreeBSD.org Fri Oct 31 17:20:05 2008 From: jkim at FreeBSD.org (Jung-uk Kim) Date: Fri Oct 31 17:20:12 2008 Subject: kern/121504: [patch] Correctly set hw.acpi.osname on certain machines Message-ID: <200811010020.mA10K5Lc065654@freefall.freebsd.org> The following reply was made to PR kern/121504; it has been noted by GNATS. From: Jung-uk Kim To: "Anish Mistry" Cc: bug-followup@FreeBSD.org, John Baldwin Subject: Re: kern/121504: [patch] Correctly set hw.acpi.osname on certain machines Date: Fri, 31 Oct 2008 20:09:50 -0400 --Boundary-00=_Q55CJS/aKGjigvh Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline If you are still feeling adventurous, please try the attached patch. Note that _OSI is very different from _OS_ and we cannot reuse "hw.acpi.osname" tunable here. First of all, _OSI method must be able to match multiple entries, not just predefined OS strings, e.g., "3.0 Thermal Model", "Extended Address Space Descriptor", etc. although nobody really uses these 'feature group strings' for their BIOS implementations. (Ideally, if there is a device driver which implemented the feature, the driver is responsible for registering its capabilities to this table.) With the attached patch, you can add multiple entries by setting "hw.acpi.supported_osi" tunable and they must be comma-separated, e.g.: hw.acpi.supported_osi="Windows 2006, Processor Device" You can even try something like this: hw.acpi.supported_osi="FreeBSD,Linux,Windows 2001,Windows 2006" It means the OS supports all of the above OS interfaces (but we don't). Well, it is not impossible, at least in theory. :-) Warning #1: It may affect your system badly if the BIOS implements OS-specific "workarounds" or "features" for You-Know-Who. ;-) Warning #2: Even if your DSDT contains _OSI("FreeBSD"), it does not mean that you can set hw.acpi.supported_osi="FreeBSD" and expect an improvement. Most likely the code path is never tested and it may even cause regression. See http://ubuntuforums.org/showthread.php?t=869249 for the latest Linux episode. With the exact same reason, I am not setting any default value here. Cheers, Jung-uk Kim --Boundary-00=_Q55CJS/aKGjigvh Content-Type: text/plain; charset="iso-8859-1"; name="OsdMemory.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="OsdMemory.patch" --- sys/dev/acpica/Osd/OsdMemory.c 22 Mar 2007 18:16:41 -0000 1.15 +++ sys/dev/acpica/Osd/OsdMemory.c 31 Oct 2008 22:52:58 -0000 @@ -40,6 +40,9 @@ #include #include +static char acpi_osi[128]; +TUNABLE_STR("hw.acpi.supported_osi", acpi_osi, sizeof(acpi_osi)); + MALLOC_DEFINE(M_ACPICA, "acpica", "ACPI CA memory pool"); void * @@ -77,6 +80,29 @@ ACPI_STATUS AcpiOsValidateInterface (char *Interface) { + size_t len; + char *cp; + + if (Interface == NULL || *Interface == '\0') + return (AE_BAD_PARAMETER); + + if (*acpi_osi != '\0') { + cp = acpi_osi; + len = strlen(Interface); + for (;;) { + if (strlen(cp) < len || (cp = strstr(cp, Interface)) == NULL) + break; + cp += len; + if (*cp == '\0' || *cp == ',') { + if (bootverbose) + printf("ACPI: _OSI(\"%s\") matched\n", Interface); + return (AE_OK); + } + while (*cp != '\0' && *cp != ',') + cp++; + } + } + return (AE_SUPPORT); } --Boundary-00=_Q55CJS/aKGjigvh--