From owner-freebsd-acpi@FreeBSD.ORG Sun Jan 21 20:51:10 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D9C916A40E for ; Sun, 21 Jan 2007 20:51:10 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.freebsd.org (Postfix) with ESMTP id 3AD6113C441 for ; Sun, 21 Jan 2007 20:51:09 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: by uriah.heep.sax.de (Postfix, from userid 107) id 3E8D61C2; Sun, 21 Jan 2007 21:51:07 +0100 (MET) Date: Sun, 21 Jan 2007 21:51:07 +0100 From: Joerg Wunsch To: freebsd-acpi@freebsd.org Message-ID: <20070121205107.GF66756@uriah.heep.sax.de> References: <45AF925C.9050104@aei.mpg.de> <20070119223740.GD47713@uriah.heep.sax.de> <45B1579B.7010009@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45B1579B.7010009@root.org> X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.11 Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 20:51:10 -0000 As Nate Lawson wrote: > >Have a look at PR i386/104678, and the patches referenced there. > >Using these patches, my nx6325 works reasonably well. ... > I looked at this and the solution should be "don't use anything > other than C1". Nothing else is supported on the nx6325 anyway, only C1. So that's certainly not the problem here. > Also, *which* patch are you using from the PR? THere are a few > different ones. The one with the "idle_cpu", it introduces the hw.apic.idle_cpu tunable. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-acpi@FreeBSD.ORG Sun Jan 21 22:24:55 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D853316A401 for ; Sun, 21 Jan 2007 22:24:55 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id A581413C44C for ; Sun, 21 Jan 2007 22:24:55 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 72955 invoked from network); 21 Jan 2007 22:24:55 -0000 Received: from ppp-71-139-39-138.dsl.snfc21.pacbell.net (HELO ?10.0.5.59?) (nate-mail@71.139.39.138) by root.org with ESMTPA; 21 Jan 2007 22:24:55 -0000 Message-ID: <45B3E82D.2050207@root.org> Date: Sun, 21 Jan 2007 14:24:45 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Joerg Wunsch References: <45AF925C.9050104@aei.mpg.de> <20070119223740.GD47713@uriah.heep.sax.de> <45B1579B.7010009@root.org> <20070121205107.GF66756@uriah.heep.sax.de> In-Reply-To: <20070121205107.GF66756@uriah.heep.sax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 22:24:55 -0000 Joerg Wunsch wrote: > As Nate Lawson wrote: > >>> Have a look at PR i386/104678, and the patches referenced there. >>> Using these patches, my nx6325 works reasonably well. ... > >> I looked at this and the solution should be "don't use anything >> other than C1". > > Nothing else is supported on the nx6325 anyway, only C1. So that's > certainly not the problem here. If nothing other than C1 is supported, I am almost certain the patch doesn't affect anything. So what problem were you seeing and how is it changed? >> Also, *which* patch are you using from the PR? THere are a few >> different ones. > > The one with the "idle_cpu", it introduces the hw.apic.idle_cpu > tunable. That patch configures mixed mode so that C2 and above are supported while using the LAPIC timer. Again, I fail to see how this applies to you. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Sun Jan 21 23:32:15 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from misaki (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id D609716A400; Sun, 21 Jan 2007 23:32:13 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Mon, 22 Jan 2007 07:32:00 +0800 From: Ariff Abdullah To: Nate Lawson Message-Id: <20070122073200.12622b8e.ariff@FreeBSD.org> In-Reply-To: <45B3E82D.2050207@root.org> References: <45AF925C.9050104@aei.mpg.de> <20070119223740.GD47713@uriah.heep.sax.de> <45B1579B.7010009@root.org> <20070121205107.GF66756@uriah.heep.sax.de> <45B3E82D.2050207@root.org> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__22_Jan_2007_07_32_00_+0800_luN6+EbNnvp3Jbrh" Cc: joerg_wunsch@uriah.heep.sax.de, freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 23:32:15 -0000 --Signature=_Mon__22_Jan_2007_07_32_00_+0800_luN6+EbNnvp3Jbrh Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 21 Jan 2007 14:24:45 -0800 Nate Lawson wrote: > Joerg Wunsch wrote: > > As Nate Lawson wrote: > >=20 > >>> Have a look at PR i386/104678, and the patches referenced there. > >>> Using these patches, my nx6325 works reasonably well. ... > >=20 > >> I looked at this and the solution should be "don't use anything > >> other than C1". > >=20 > > Nothing else is supported on the nx6325 anyway, only C1. So > > that's certainly not the problem here. >=20 > If nothing other than C1 is supported, I am almost certain the patch >=20 > doesn't affect anything. So what problem were you seeing and how is > it changed? >=20 > >> Also, *which* patch are you using from the PR? THere are a few > >> different ones. > >=20 > > The one with the "idle_cpu", it introduces the hw.apic.idle_cpu > > tunable. >=20 > That patch configures mixed mode so that C2 and above are supported=20 > while using the LAPIC timer. Again, I fail to see how this applies > to you. >=20 The patch use either i8254 mixed mode or rtc timer to piggyback lapic timer. The clock still driven by lapic timer. The rational of this crude hack is because these X2 cpus support [1] C1E halt state and the BIOS must not report C2 or C3 support to the OS. That is why hw.acpi.cpu.cx_supported shows nothing but C1. Whenever HLT is issued, we're dead unless: 1) disabling APIC (not an option, especially using FreeBSD/amd64) 2) drive the entire kernel clock through i8254/mixed mode (much like 5.x) or other interrupt sources (hpet? not supported on us, confirmed), or rtc. 3) Use other interrupt sources, (rtc or i8254) to piggyback lapic timer (this crude patch, ugly but works) [1] Section 10.2.4, "BIOS and Kernel Developer's Guide for AMD NPT Family 0FH Processors" -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Mon__22_Jan_2007_07_32_00_+0800_luN6+EbNnvp3Jbrh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFs/f6lr+deMUwTNoRAuxrAJ9+DWLWv+xO8YSuUtD4kUznHdO75QCgjmBN 70D1NCrISgJz+DOEyXAAYt4= =8lRg -----END PGP SIGNATURE----- --Signature=_Mon__22_Jan_2007_07_32_00_+0800_luN6+EbNnvp3Jbrh-- From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 03:43:48 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85CD516A400 for ; Mon, 22 Jan 2007 03:43:48 +0000 (UTC) (envelope-from jwdevel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 0BDA213C455 for ; Mon, 22 Jan 2007 03:43:47 +0000 (UTC) (envelope-from jwdevel@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so876663uge for ; Sun, 21 Jan 2007 19:43:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BgWeQkd0ox4cuDo0pSReqRBQe6wVRNYA7cYHlh5I/9ZZyAzUxQ9/KL038Nka2hBvDLClzP7V31OfKgg8+KuZPZEDFvrHudrOhtAuycQV0///7JgpBvKh0B2fSMRlZDe6sJeA41VrXsrACE8EXmGaC8ns+qtQs/mFjO5/6nqVnWc= Received: by 10.82.152.16 with SMTP id z16mr5828461bud.1169435707383; Sun, 21 Jan 2007 19:15:07 -0800 (PST) Received: by 10.78.18.4 with HTTP; Sun, 21 Jan 2007 19:15:07 -0800 (PST) Message-ID: Date: Sun, 21 Jan 2007 19:15:07 -0800 From: "j w" To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: acpi panic X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 03:43:48 -0000 Hello I'm installing FreeBSD 6.2 (first time experience) on an oldish computer and got this ACPI panic when booting the install CD: ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x673 Stepping = 3 Features = 0x383fbff real memory = 536858624 (511 MB) avail memory = 511750144 (488 MB) ACPI disabled by blacklist. Contact your BIOS vendor. MADT: ACPI Startup failed with AE_ERROR Try disabling either ACPI or apic support. panic: using MADT but ACPI doesn't work Uptime: 1s Automatic reboot in 15 seconds - press a key on the console to abort Booting with ACPI disabled works ok, so no big deal I take it the "blacklist" warning means that this hardware's ACPI just isn't supported currently? And what does the "contact your BIOS vendor" message mean? Is this something that can be fixed by upgrading firmware/BIOS? Thanks -John From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 08:27:18 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9696D16A402 for ; Mon, 22 Jan 2007 08:27:18 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 3563013C44B for ; Mon, 22 Jan 2007 08:27:17 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so917765uge for ; Mon, 22 Jan 2007 00:27:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FQagfE+TJP9C+XnibCEnHco9MFmq0luaFRFs383R0TVs/Jw/kFH773RZVHp4f7TSzAJH7IA36V4ejxe1wU+hjTYePkc1cLlEV/tWyYCfbbSxjGfsVivP23ZlLD9s4TmnRv+KPMkcVEjRMyX7BUv66NveDfh/DWxdFD6Eo1wUKxQ= Received: by 10.67.21.11 with SMTP id y11mr7178437ugi.1169454436767; Mon, 22 Jan 2007 00:27:16 -0800 (PST) Received: by 10.66.255.10 with HTTP; Mon, 22 Jan 2007 00:27:16 -0800 (PST) Message-ID: <499c70c0701220027o1dc75c93s531bb3be048ee014@mail.gmail.com> Date: Mon, 22 Jan 2007 11:27:16 +0300 From: "Abdullah Al-Marrie" To: "j w" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-acpi@freebsd.org Subject: Re: acpi panic X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 08:27:18 -0000 On 1/22/07, j w wrote: > Hello > I'm installing FreeBSD 6.2 (first time experience) on an oldish > computer and got this ACPI panic when booting the install CD: > And what does the "contact your BIOS vendor" message mean? Is this > something that can be fixed by upgrading firmware/BIOS? > > Thanks > -John Sure, upgrading the bios should be your first step to solve ACPI bad bios issues, many bios doesn't follow the ACPI standards, and some of the vendors fix them. So try to upgrade your bios first. -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 11:08:10 2007 Return-Path: X-Original-To: freebsd-acpi@FreeBSD.org Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2830016A400 for ; Mon, 22 Jan 2007 11:08:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 138E613C428 for ; Mon, 22 Jan 2007 11:08:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0MB89YQ036834 for ; Mon, 22 Jan 2007 11:08:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0MB87Z2036830 for freebsd-acpi@FreeBSD.org; Mon, 22 Jan 2007 11:08:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Jan 2007 11:08:07 GMT Message-Id: <200701221108.l0MB87Z2036830@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 11:08:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o i386/54756 acpi ACPI suspend/resume problem on CF-W2 laptop o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 o kern/55822 acpi No ACPI power off with SMP kernel o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/64002 acpi acpi problem o i386/67273 acpi [hang] system hangs with acpi and Xfree o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o kern/77805 acpi [acpi]: Boot hangs with ACPI enabled o i386/79080 acpi acpi thermal changes freezes HP nx6110 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther 11 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/67309 acpi zzz reboot computer (ACPI S3) o i386/69750 acpi Boot without ACPI failed on ASUS L5 o kern/73823 acpi [feature request] acpi / power-on by timer support f kern/74030 acpi Unplugging AC causes battery % to stay locked at 98% f kern/90871 acpi ACPI problems with ASUS A8N-VM-CSM o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI o i386/97468 acpi [acpi] ACPI on ASUS A7V hangs on shutdown -p (power of o kern/98171 acpi [acpi] ACPI 1304 / 0501 errors on Acer 5024WLMi Laptop o kern/103365 acpi [acpi] acpi poweroff doesn't work with geli device att o kern/108017 acpi [acpi]: Acer Aspire 5600 10 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 15:54:27 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11E1116A405 for ; Mon, 22 Jan 2007 15:54:27 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 944B913C45D for ; Mon, 22 Jan 2007 15:54:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l0MFsJ2h099205; Mon, 22 Jan 2007 10:54:20 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Mon, 22 Jan 2007 09:36:15 -0500 User-Agent: KMail/1.9.1 References: <45AF925C.9050104@aei.mpg.de> <20070121205107.GF66756@uriah.heep.sax.de> <45B3E82D.2050207@root.org> In-Reply-To: <45B3E82D.2050207@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701220936.15638.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 22 Jan 2007 10:54:24 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2477/Mon Jan 22 10:10:05 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Joerg Wunsch Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 15:54:27 -0000 On Sunday 21 January 2007 17:24, Nate Lawson wrote: > Joerg Wunsch wrote: > > As Nate Lawson wrote: > > > >>> Have a look at PR i386/104678, and the patches referenced there. > >>> Using these patches, my nx6325 works reasonably well. ... > > > >> I looked at this and the solution should be "don't use anything > >> other than C1". > > > > Nothing else is supported on the nx6325 anyway, only C1. So that's > > certainly not the problem here. > > If nothing other than C1 is supported, I am almost certain the patch > doesn't affect anything. So what problem were you seeing and how is it > changed? These CPUs turn off the lapic timer in C1. -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 15:54:29 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B72D216A40E for ; Mon, 22 Jan 2007 15:54:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 0832C13C469 for ; Mon, 22 Jan 2007 15:54:28 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l0MFsJ2i099205; Mon, 22 Jan 2007 10:54:25 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Mon, 22 Jan 2007 09:37:54 -0500 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701220937.55214.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 22 Jan 2007 10:54:26 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2477/Mon Jan 22 10:10:05 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: acpi panic X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 15:54:29 -0000 On Sunday 21 January 2007 22:15, j w wrote: > Hello > I'm installing FreeBSD 6.2 (first time experience) on an oldish > computer and got this ACPI panic when booting the install CD: > > ACPI APIC Table: > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > Features = 0x383fbff > real memory = 536858624 (511 MB) > avail memory = 511750144 (488 MB) > ACPI disabled by blacklist. Contact your BIOS vendor. > MADT: ACPI Startup failed with AE_ERROR > Try disabling either ACPI or apic support. > panic: using MADT but ACPI doesn't work > Uptime: 1s > Automatic reboot in 15 seconds - press a key on the console to abort > > Booting with ACPI disabled works ok, so no big deal > > I take it the "blacklist" warning means that this hardware's ACPI just > isn't supported currently? Yes. We don't support really old BIOS versions as ACPI was generally very buggy in older BIOSes. > And what does the "contact your BIOS vendor" message mean? Is this > something that can be fixed by upgrading firmware/BIOS? A BIOS upgrade might fix it, yes. However, if the machine works fine with ACPI disabled then it might not be worth the hassle. -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 16:08:47 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07A8B16A402 for ; Mon, 22 Jan 2007 16:08:47 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.freebsd.org (Postfix) with ESMTP id C3E2F13C44B for ; Mon, 22 Jan 2007 16:08:46 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1H91fp-0007Vl-00; Mon, 22 Jan 2007 17:05:33 +0100 Date: Mon, 22 Jan 2007 17:05:33 +0100 To: j w Message-ID: <20070122160533.GY4945@poupinou.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-acpi@freebsd.org Subject: Re: acpi panic X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 16:08:47 -0000 On Sun, Jan 21, 2007 at 07:15:07PM -0800, j w wrote: > Hello > I'm installing FreeBSD 6.2 (first time experience) on an oldish > computer and got this ACPI panic when booting the install CD: > > ACPI APIC Table: > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > Features = > 0x383fbff > real memory = 536858624 (511 MB) > avail memory = 511750144 (488 MB) > ACPI disabled by blacklist. Contact your BIOS vendor. > MADT: ACPI Startup failed with AE_ERROR > Try disabling either ACPI or apic support. > panic: using MADT but ACPI doesn't work Uh? We shouldn't use MADT if ACPI is blacklisted and we shouldn't panic in that case? -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 16:44:46 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4FA5016A400 for ; Mon, 22 Jan 2007 16:44:46 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id DE58B13C4C9 for ; Mon, 22 Jan 2007 16:44:45 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1023173uge for ; Mon, 22 Jan 2007 08:44:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jEapp1+QCj7YUw6G1PAx4KieivlWg5R7BwP+xb/O9ip4PLjJ1B9LcrO+zci4sWeKymu1VJU37r6xX7VN+UT60pFAdRXIGd4sB3RnvMTf5jBG4DGODchCdmr6OgV/425PRYA3CyJNzlQdp/VD6vDKHcRrjCK77K2zO+h2uEN7Eq8= Received: by 10.67.121.15 with SMTP id y15mr7933612ugm.1169484284416; Mon, 22 Jan 2007 08:44:44 -0800 (PST) Received: by 10.66.255.10 with HTTP; Mon, 22 Jan 2007 08:44:39 -0800 (PST) Message-ID: <499c70c0701220844uf1e9fc4iae378cc76e09f735@mail.gmail.com> Date: Mon, 22 Jan 2007 16:44:39 +0000 From: "Abdullah Al-Marrie" To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: FreeBSD 6.2-STABLE can't alloc wake memory X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 16:44:46 -0000 Hello, I'm having a problem with ACPI wake memory Here is the dmesg FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-STABLE #3: Mon Jan 22 12:54:40 UTC 2007 arabian@Aspire5102.localhost:/usr/obj/usr/src/sys/ARABIAN acpi_alloc_wakeup_handler: can't alloc wake memory ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-50 (1596.01-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40f82 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f,,CR8> Cores per package: 2 real memory = 1474887680 (1406 MB) avail memory = 1434873856 (1368 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) pcib2: at device 4.0 on pci0 pci2: on pcib2 pcib3: at device 5.0 on pci0 pci4: on pcib3 ohci0: mem 0xc0004000-0xc0004fff irq 19 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xc0005000-0xc0005fff irq 19 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered pci0: at device 19.2 (no driver attached) pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8410-0x841f irq 16 at device 20.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 20.2 (no driver attached) isab0: at device 20.3 on pci0 isa0: on isab0 pcib4: at device 20.4 on pci0 pci6: on pcib4 rl0: port 0xa000-0xa0ff mem 0xc0202000-0xc02020ff irq 21 at device 1.0 on pci6 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:16:d4:1c:30:be ndis0: mem 0xc0200000-0xc0201fff irq 22 at device 2.0 on pci6 ndis0: NDIS API version: 5.1 ndis0: Ethernet address: 00:16:cf:57:a3:7f cbb0: mem 0xc0203000-0xc0203fff irq 20 at device 4.0 on pci6 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci6: at device 4.1 (no driver attached) pci6: at device 4.2 (no driver attached) pci6: at device 4.3 (no driver attached) pci6: at device 4.4 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff on isa0 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 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding 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 ugen0: vendor 0x0402 USB2.0 Camera, rev 2.00/1.00, addr 2 Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 acd0: DVDR at ata0-slave UDMA33 SMP: AP CPU #1 Launched! cd0 at ata0 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [351920 x 2048 byte records] Do you know why I'm getting "acpi_alloc_wakeup_handler: can't alloc wake memory"? -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 16:49:43 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C53C16A5C9 for ; Mon, 22 Jan 2007 16:49:43 +0000 (UTC) (envelope-from michele.heurs@aei.mpg.de) Received: from mailserv.aei.mpg.de (mailserv.aei.mpg.de [194.94.224.6]) by mx1.freebsd.org (Postfix) with ESMTP id ECBC913C4BC for ; Mon, 22 Jan 2007 16:49:42 +0000 (UTC) (envelope-from michele.heurs@aei.mpg.de) Received: by mailserv.aei.mpg.de (Postfix, from userid 65534) id D2CEAA30FB3; Mon, 22 Jan 2007 17:49:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailserv.aei.mpg.de (Postfix) with ESMTP id 3F244A305EC; Mon, 22 Jan 2007 17:49:40 +0100 (CET) Received: from [130.75.117.7] (unknown [130.75.117.7]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by mailserv.aei.mpg.de (Postfix) with ESMTP id 77E5BA288F3; Mon, 22 Jan 2007 17:49:19 +0100 (CET) Message-ID: <45B4EB0A.5070103@aei.mpg.de> Date: Mon, 22 Jan 2007 17:49:14 +0100 From: Michele Heurs User-Agent: Thunderbird 1.5.0.9 (X11/20070109) MIME-Version: 1.0 To: Nate Lawson References: <45AF925C.9050104@aei.mpg.de> <20070119223740.GD47713@uriah.heep.sax.de> <45B1579B.7010009@root.org> In-Reply-To: <45B1579B.7010009@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on mailserv.aei.mpg.de X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.64 Cc: Joerg Wunsch , freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 16:49:43 -0000 Nate Lawson wrote: > Also, *which* patch are you using from the PR? THere are a few > different ones. I first tried this patch: http://people.freebsd.org/~ariff/misc/idlecpu_apic_5.diff which alone didn't fix the problem. Then I changed machdep.c as described by Ariff: ## BEGIN ## void cpu_idle(void) { #ifdef SMP if (mp_grab_cpu_hlt()) return; #endif if (cpu_idle_hlt) { disable_intr(); if (sched_runnable()) enable_intr(); else if (PCPU_GET(cpuid) == 0) <<<<< enable_intr(); <<<<< else (*cpu_idle_hook)(); } } ## END ## and inserted this in loader.conf: machdep.cpu_idle_hlt=0 Now it seems to work :) Thanks, guys! Bye, Michèle P.S.: Can this be merged into 6-stable soon? -- ********************************************** Dr. Michèle Heurs Max-Planck-Institut für Gravitationsphysik (Albert-Einstein-Institut) Callinstr. 38 30167 Hannover Germany Tel.: +49 (0)511 - 762 - 5845 Fax: +49 (0)511 - 762 - 2784 Web: http://www.aei.mpg.de ********************************************** From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 17:20:42 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 484F516A404 for ; Mon, 22 Jan 2007 17:20:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id CBDF713C4B8 for ; Mon, 22 Jan 2007 17:20:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l0MHKajV099962; Mon, 22 Jan 2007 12:20:36 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Mon, 22 Jan 2007 11:31:25 -0500 User-Agent: KMail/1.9.1 References: <20070122160533.GY4945@poupinou.org> In-Reply-To: <20070122160533.GY4945@poupinou.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701221131.26431.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 22 Jan 2007 12:20:38 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2477/Mon Jan 22 10:10:05 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: acpi panic X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 17:20:42 -0000 On Monday 22 January 2007 11:05, Bruno Ducrot wrote: > On Sun, Jan 21, 2007 at 07:15:07PM -0800, j w wrote: > > Hello > > I'm installing FreeBSD 6.2 (first time experience) on an oldish > > computer and got this ACPI panic when booting the install CD: > > > > ACPI APIC Table: > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU) > > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > > Features = > > 0x383fbff > > real memory = 536858624 (511 MB) > > avail memory = 511750144 (488 MB) > > ACPI disabled by blacklist. Contact your BIOS vendor. > > MADT: ACPI Startup failed with AE_ERROR > > Try disabling either ACPI or apic support. > > panic: using MADT but ACPI doesn't work > > Uh? We shouldn't use MADT if ACPI is blacklisted and we shouldn't panic in > that case? Go read the code to see why we do this. At this point in the boot, we have already committed to using the MADT and using APICs, so we HAVE to use ACPI to route interrupts. However, we can't use ACPI because its blacklisted. And no, we can't check the blacklist (at least not w/o much pain and probably duplicating the blacklist) back when we probe the MADT as we do it very early before most of the kernel is up and running, we even have to use an evil track to map the ACPI tables to even read them, so are in no position to call the blacklist checking functions. This is a FAQ, and as you can see, the panic message is helpful enough that users reboot and disable ACPI and the machine then boots happily. -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 22 17:25:50 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from misaki (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 5691C16A402; Mon, 22 Jan 2007 17:25:49 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Tue, 23 Jan 2007 01:25:32 +0800 From: Ariff Abdullah To: Michele Heurs Message-Id: <20070123012532.31d605a0.ariff@FreeBSD.org> In-Reply-To: <45B4EB0A.5070103@aei.mpg.de> References: <45AF925C.9050104@aei.mpg.de> <20070119223740.GD47713@uriah.heep.sax.de> <45B1579B.7010009@root.org> <45B4EB0A.5070103@aei.mpg.de> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__23_Jan_2007_01_25_32_+0800_pm7VdnwECyXknrlB" Cc: joerg_wunsch@uriah.heep.sax.de, freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 17:25:50 -0000 --Signature=_Tue__23_Jan_2007_01_25_32_+0800_pm7VdnwECyXknrlB Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 22 Jan 2007 17:49:14 +0100 Michele Heurs wrote: > Nate Lawson wrote: >=20 > > Also, *which* patch are you using from the PR? THere are a few=20 > > different ones. >=20 > I first tried this patch: >=20 > http://people.freebsd.org/~ariff/misc/idlecpu_apic_5.diff >=20 > which alone didn't fix the problem. You got it all wrong. Apply the patch, set hw.apic.idle_cpu=3D1 (or 2). >=20 > Then I changed machdep.c as described by Ariff: >=20 > ## BEGIN ## > void > cpu_idle(void) > { >=20 > #ifdef SMP > if (mp_grab_cpu_hlt()) > return; > #endif >=20 > if (cpu_idle_hlt) { > disable_intr(); > if (sched_runnable()) > enable_intr(); > else if (PCPU_GET(cpuid) =3D=3D 0) <<<<< > enable_intr(); <<<<< > else > (*cpu_idle_hook)(); > } > } > ## END ## >=20 > and inserted this in loader.conf: >=20 > machdep.cpu_idle_hlt=3D0 >=20 > Now it seems to work :) Backout this one. It'll hurt you much with the increase of heat/temperature. >=20 > Thanks, guys! > Bye, > Mich=E8le >=20 > P.S.: Can this be merged into 6-stable soon? >=20 This violate every sense of proper solution and will be left there dying alone as a poor man workaround. -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Tue__23_Jan_2007_01_25_32_+0800_pm7VdnwECyXknrlB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFtPOZlr+deMUwTNoRAgM+AJ0XGz6SqRCcGsBJSbsrUGTLkqAe/wCeIS6W ZqI5aodCBluLKci4NiGl8Ao= =i4dK -----END PGP SIGNATURE----- --Signature=_Tue__23_Jan_2007_01_25_32_+0800_pm7VdnwECyXknrlB-- From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 23 06:38:38 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E87216A404 for ; Tue, 23 Jan 2007 06:38:38 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 4B36613C45E for ; Tue, 23 Jan 2007 06:38:38 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 83266 invoked from network); 23 Jan 2007 06:38:40 -0000 Received: from ppp-71-139-39-138.dsl.snfc21.pacbell.net (HELO ?10.0.5.59?) (nate-mail@71.139.39.138) by root.org with ESMTPA; 23 Jan 2007 06:38:40 -0000 Message-ID: <45B5AD64.5060905@root.org> Date: Mon, 22 Jan 2007 22:38:28 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: John Baldwin References: <45AF925C.9050104@aei.mpg.de> <20070121205107.GF66756@uriah.heep.sax.de> <45B3E82D.2050207@root.org> <200701220936.15638.jhb@freebsd.org> In-Reply-To: <200701220936.15638.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Joerg Wunsch , freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 06:38:38 -0000 John Baldwin wrote: > On Sunday 21 January 2007 17:24, Nate Lawson wrote: >> Joerg Wunsch wrote: >>> As Nate Lawson wrote: >>> >>>>> Have a look at PR i386/104678, and the patches referenced there. >>>>> Using these patches, my nx6325 works reasonably well. ... >>>> I looked at this and the solution should be "don't use anything >>>> other than C1". >>> Nothing else is supported on the nx6325 anyway, only C1. So that's >>> certainly not the problem here. >> If nothing other than C1 is supported, I am almost certain the patch >> doesn't affect anything. So what problem were you seeing and how is it >> changed? > > These CPUs turn off the lapic timer in C1. > Apologies for my mistake. I see now that there's not an easy fix to this. Should we make it easier for such people to use some other timer but not mixed mode? What about the HPET given that these are very new systems and should have it? -- Nate From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 23 16:25:35 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9519316A47A for ; Tue, 23 Jan 2007 16:25:35 +0000 (UTC) (envelope-from michele.heurs@aei.mpg.de) Received: from mailserv.aei.mpg.de (mailserv.aei.mpg.de [194.94.224.6]) by mx1.freebsd.org (Postfix) with ESMTP id 012A413C4CC for ; Tue, 23 Jan 2007 16:25:34 +0000 (UTC) (envelope-from michele.heurs@aei.mpg.de) Received: by mailserv.aei.mpg.de (Postfix, from userid 65534) id 42456A30CDC; Tue, 23 Jan 2007 17:25:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailserv.aei.mpg.de (Postfix) with ESMTP id C8076A30332; Tue, 23 Jan 2007 17:25:32 +0100 (CET) Received: from [130.75.117.7] (unknown [130.75.117.7]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by mailserv.aei.mpg.de (Postfix) with ESMTP id 2593BA31DE9; Tue, 23 Jan 2007 17:25:24 +0100 (CET) Message-ID: <45B636EE.40602@aei.mpg.de> Date: Tue, 23 Jan 2007 17:25:18 +0100 From: Michele Heurs User-Agent: Thunderbird 1.5.0.9 (X11/20070109) MIME-Version: 1.0 To: Ariff Abdullah References: <45AF925C.9050104@aei.mpg.de> <20070119223740.GD47713@uriah.heep.sax.de> <45B1579B.7010009@root.org> <45B4EB0A.5070103@aei.mpg.de> <20070123012532.31d605a0.ariff@FreeBSD.org> In-Reply-To: <20070123012532.31d605a0.ariff@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on mailserv.aei.mpg.de X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.64 Cc: joerg_wunsch@uriah.heep.sax.de, freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 16:25:35 -0000 Ariff Abdullah wrote: > On Mon, 22 Jan 2007 17:49:14 +0100 Michele Heurs > wrote: >> Nate Lawson wrote: >> >>> Also, *which* patch are you using from the PR? THere are a few >>> different ones. >> I first tried this patch: >> >> http://people.freebsd.org/~ariff/misc/idlecpu_apic_5.diff >> >> which alone didn't fix the problem. > > You got it all wrong. Apply the patch, set hw.apic.idle_cpu=1 (or 2). > > >> Then I changed machdep.c as described by Ariff: (...) and inserted >> this in loader.conf: >> >> machdep.cpu_idle_hlt=0 >> >> Now it seems to work :) > > Backout this one. It'll hurt you much with the increase of > heat/temperature. Thanks for the advice. I have changed loader.conf and returned machdep.c to its initial state and it seems to be working fine. >> P.S.: Can this be merged into 6-stable soon? >> > This violate every sense of proper solution and will be left there > dying alone as a poor man workaround. May I then suggest that the proper workaround as described by Ariff here ought to be documented concisely? Due to its length and complexity the thread under http://www.freebsd.org/cgi/query-pr.cgi?pr=104678&cat= is somewhat hard to understand... Thanks again for the help! :) Bye, Michèle -- ********************************************** Dr. Michèle Heurs Max-Planck-Institut für Gravitationsphysik (Albert-Einstein-Institut) Callinstr. 38 30167 Hannover Germany Tel.: +49 (0)511 - 762 - 5845 Fax: +49 (0)511 - 762 - 2784 Web: http://www.aei.mpg.de ********************************************** From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 23 18:19:36 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D0F816A408 for ; Tue, 23 Jan 2007 18:19:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 2936613C474 for ; Tue, 23 Jan 2007 18:19:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l0NIJVKp009537; Tue, 23 Jan 2007 13:19:32 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Nate Lawson Date: Tue, 23 Jan 2007 12:30:25 -0500 User-Agent: KMail/1.9.4 References: <45AF925C.9050104@aei.mpg.de> <200701220936.15638.jhb@freebsd.org> <45B5AD64.5060905@root.org> In-Reply-To: <45B5AD64.5060905@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701231230.26244.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Tue, 23 Jan 2007 13:19:34 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2480/Tue Jan 23 06:21:51 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Joerg Wunsch , freebsd-acpi@freebsd.org Subject: Re: ACPI problems on HP Compaq nx6325 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 18:19:36 -0000 On Tuesday 23 January 2007 01:38, Nate Lawson wrote: > John Baldwin wrote: > > On Sunday 21 January 2007 17:24, Nate Lawson wrote: > >> Joerg Wunsch wrote: > >>> As Nate Lawson wrote: > >>> > >>>>> Have a look at PR i386/104678, and the patches referenced there. > >>>>> Using these patches, my nx6325 works reasonably well. ... > >>>> I looked at this and the solution should be "don't use anything > >>>> other than C1". > >>> Nothing else is supported on the nx6325 anyway, only C1. So that's > >>> certainly not the problem here. > >> If nothing other than C1 is supported, I am almost certain the patch > >> doesn't affect anything. So what problem were you seeing and how is it > >> changed? > > > > These CPUs turn off the lapic timer in C1. > > > > Apologies for my mistake. I see now that there's not an easy fix to > this. Should we make it easier for such people to use some other timer > but not mixed mode? What about the HPET given that these are very new > systems and should have it? What I've been meaning to do is allow them to just use IRQ8 plus IPIs instead of the lapic timer. Another possibility is to use either the HPET or IRQ 8 as a deadline to simulate an lapic timer tick while we are in C1, though IRQ 8 isn't really suited to this for SMP systems. -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Wed Jan 24 08:44:07 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDEFB16A405 for ; Wed, 24 Jan 2007 08:44:07 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 4605C13C4C8 for ; Wed, 24 Jan 2007 08:44:07 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so99114uge for ; Wed, 24 Jan 2007 00:44:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=UnibP60yqq/BlnR0+J+xWjYDJ2LmalvHqBF9c47FOHgbTWjMy9Fviyy/5EcxlswfBO6pPpIBomKy7240ddZhNcY2v2FO8w0m7s/H3F9S4K0Xsutd8hZpyIg6TV94tPOayZrg4nF7IB0b47Pk9rHauEU7U+sXsvXvJVQ2CL2IIzw= Received: by 10.66.232.9 with SMTP id e9mr720993ugh.1169628245382; Wed, 24 Jan 2007 00:44:05 -0800 (PST) Received: by 10.66.255.10 with HTTP; Wed, 24 Jan 2007 00:44:05 -0800 (PST) Message-ID: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> Date: Wed, 24 Jan 2007 11:44:05 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: freebsd-mobile@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1513_22269344.1169628245334" Cc: freebsd-acpi@freebsd.org Subject: AMD Turion64 X2 works with PowerNow! thank you Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 08:44:07 -0000 ------=_Part_1513_22269344.1169628245334 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello AMD users ;) In regard to my post about AMD hangs with PowerNow! in my Acer Laptop which has http://groups.google.com/group/mailing.freebsd.mobile/browse_frm/thread/49b02729f7d8b27e/d36307d211e914c5#d36307d211e914c5 I have been working with Mr. Bruno for few days, and finally PowerNow! works with no hanging issues at all, I used the new powernow.c provided by Bruno attached. So I wish this could be backported to RELENG_6 asap, and yes I tested it in FreeBSD 6.2-STABLE only, not with current. http://lists.freebsd.org/pipermail/cvs-all/2007-January/205192.html bruno 2007-01-23 19:20:31 UTC FreeBSD src repository Modified files: sys/i386/cpufreq powernow.c Log: o introduce a flags 'errata' for HW bugs onto the softc. o remove errata_a0 and introduce the corresponding flags into 'errata'. o introduce a new errata for K8, namely some platform might set the PENDING_BIT but aren't able to unset it, also don't loop forever waiting PENDING_BIT being cleared. o try to introduce a workaround for the PENDING_BIT stuck problem, o support now half multipliers for K8. Tested by: Abdullah Al-Marrie Approved by: njl Revision Changes Path 1.4 +97 -42 src/sys/i386/cpufreq/powernow.c To make sure it works with RELENG_6 use this Index: powernow.c =================================================================== RCS file: /home/ncvs/src/sys/i386/cpufreq/powernow.c,v retrieving revision 1.3 retrieving revision 1.2 diff -u -r1.3 -r1.2 --- powernow.c 16 May 2006 14:32:16 -0000 1.3 +++ powernow.c 31 Mar 2005 06:11:04 -0000 1.2 @@ -44,6 +44,7 @@ #include #include #include +#include #include #include -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ ------=_Part_1513_22269344.1169628245334 Content-Type: application/octet-stream; name=powernow.c Content-Transfer-Encoding: base64 X-Attachment-Id: f_exbiantx Content-Disposition: attachment; filename="powernow.c" LyotCiAqIENvcHlyaWdodCAoYykgMjAwNC0yMDA1IEJydW5vIER1Y3JvdAogKiBDb3B5cmlnaHQg KGMpIDIwMDQgRlVLVURBIE5vYnVoaWtvIDxuZnVrdWRhQHNwYS5pcy51ZWMuYWMuanA+CiAqCiAq IFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGgg b3Igd2l0aG91dAogKiBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQgdGhhdCB0 aGUgZm9sbG93aW5nIGNvbmRpdGlvbnMKICogYXJlIG1ldDoKICogMS4gUmVkaXN0cmlidXRpb25z IG9mIHNvdXJjZSBjb2RlIG11c3QgcmV0YWluIHRoZSBhYm92ZSBjb3B5cmlnaHQKICogICAgbm90 aWNlLCB0aGlzIGxpc3Qgb2YgY29uZGl0aW9ucyBhbmQgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVy LgogKiAyLiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhl IGFib3ZlIGNvcHlyaWdodAogKiAgICBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFu ZCB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIgaW4gdGhlCiAqICAgIGRvY3VtZW50YXRpb24gYW5k L29yIG90aGVyIG1hdGVyaWFscyBwcm92aWRlZCB3aXRoIHRoZSBkaXN0cmlidXRpb24uCiAqCiAq IFRISVMgU09GVFdBUkUgSVMgUFJPVklERUQgQlkgVEhFIEFVVEhPUiBgYEFTIElTJycgQU5EIEFO WSBFWFBSRVNTIE9SCiAqIElNUExJRUQgV0FSUkFOVElFUywgSU5DTFVESU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LyBw bjhfZmlkX3RvX211bHRbY2ZpZF07CgoJCWlmIChQTjhfU1RBX1NGSUQoc3RhdHVzKSAhPSBQTjhf U1RBX01GSUQoc3RhdHVzKSkKCQkJZGV2aWNlX3NldF9kZXNjKGRldiwgIlBvd2VyTm93ISBLOCIp OwoJCWVsc2UKCQkJZGV2aWNlX3NldF9kZXNjKGRldiwgIkNvb2xgbidRdWlldCBLOCIpOwoJCWJy ZWFrOwoJZGVmYXVsdDoKCQlyZXR1cm4gKEVOT0RFVik7Cgl9CgoJcmV0dXJuICgwKTsKfQoKc3Rh dGljIGludApwbl9hdHRhY2goZGV2aWNlX3QgZGV2KQp7CglpbnQgcnY7CglkZXZpY2VfdCBjaGls ZDsKCgljaGlsZCA9IGRldmljZV9maW5kX2NoaWxkKGRldmljZV9nZXRfcGFyZW50KGRldiksICJh Y3BpX3BlcmYiLCAtMSk7CglpZiAoY2hpbGQpIHsKCQlydiA9IHBuX2RlY29kZV9hY3BpKGRldiwg Y2hpbGQpOwoJCWlmIChydikKCQkJcnYgPSBwbl9kZWNvZGVfcHN0KGRldik7Cgl9IGVsc2UKCQly diA9IHBuX2RlY29kZV9wc3QoZGV2KTsKCglpZiAocnYgIT0gMCkKCQlyZXR1cm4gKEVOWElPKTsK CWNwdWZyZXFfcmVnaXN0ZXIoZGV2KTsKCXJldHVybiAoMCk7Cn0KCnN0YXRpYyBpbnQKcG5fZGV0 YWNoKGRldmljZV90IGRldikKewoKCWNwdWZyZXFfdW5yZWdpc3RlcihkZXYpOwoJcmV0dXJuICgw KTsKfQoK ------=_Part_1513_22269344.1169628245334-- From owner-freebsd-acpi@FreeBSD.ORG Wed Jan 24 16:47:03 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C172716A402; Wed, 24 Jan 2007 16:47:03 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.freebsd.org (Postfix) with ESMTP id 7220013C465; Wed, 24 Jan 2007 16:47:03 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1H9fQY-0004EP-00; Wed, 24 Jan 2007 11:32:26 +0100 Date: Wed, 24 Jan 2007 11:32:26 +0100 To: Abdullah Ibn Hamad Al-Marri Message-ID: <20070124103226.GA12197@poupinou.org> References: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: AMD Turion64 X2 works with PowerNow! thank you Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 16:47:03 -0000 On Wed, Jan 24, 2007 at 11:44:05AM +0300, Abdullah Ibn Hamad Al-Marri wrote: > So I wish this could be backported to RELENG_6 asap, and yes I tested > it in FreeBSD 6.2-STABLE only, not with current. > I will commit this to RELENG_6 after people do more testing, maybe in one month or so, need to check if there are no regressions. And I don't think this will go to RELENG_6_2 since it's not a security issue. Thanks again for your valuable reports, -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Wed Jan 24 18:48:41 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E5F116A403; Wed, 24 Jan 2007 18:48:41 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.freebsd.org (Postfix) with ESMTP id C267913C474; Wed, 24 Jan 2007 18:48:35 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1H9nAb-0005JO-00; Wed, 24 Jan 2007 19:48:29 +0100 Date: Wed, 24 Jan 2007 19:48:28 +0100 To: Peter Jeremy Message-ID: <20070124184828.GC12197@poupinou.org> References: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> <20070124103226.GA12197@poupinou.org> <20070124181449.GI874@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070124181449.GI874@turion.vk2pj.dyndns.org> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: AMD Turion64 X2 works with PowerNow! thank you Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 18:48:41 -0000 On Thu, Jan 25, 2007 at 05:14:49AM +1100, Peter Jeremy wrote: > On Wed, 2007-Jan-24 11:32:26 +0100, Bruno Ducrot wrote: > >On Wed, Jan 24, 2007 at 11:44:05AM +0300, Abdullah Ibn Hamad Al-Marri wrote: > >> So I wish this could be backported to RELENG_6 asap, and yes I tested > >> it in FreeBSD 6.2-STABLE only, not with current. > >> > > > >I will commit this to RELENG_6 after people do more testing, > >maybe in one month or so, need to check if there are no regressions. > >And I don't think this will go to RELENG_6_2 since it's not a security > >issue. > > Reading the commit log, I gather this is correcting a bug in PowerNow! > rather than a bug with the interaction between PowerNow! and other > speed throttling mechanisms. In my case, PowerNow! appears to be OK > but acpi_throttle is broken. acpi_throttle is broken ATM on your machine. BTW if you boot with hint.apic.0.disabled="1" into /boot/loader.conf does this solve the acpi_throttle issue? -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Wed Jan 24 20:19:25 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE56B16A408 for ; Wed, 24 Jan 2007 20:19:25 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.freebsd.org (Postfix) with ESMTP id B98A313C471 for ; Wed, 24 Jan 2007 20:19:25 +0000 (UTC) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1H9oXU-0005QS-00; Wed, 24 Jan 2007 21:16:12 +0100 Date: Wed, 24 Jan 2007 21:16:12 +0100 To: Abdullah Al-Marrie Message-ID: <20070124201612.GD12197@poupinou.org> References: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> User-Agent: Mutt/1.5.9i From: Bruno Ducrot Cc: freebsd-acpi@freebsd.org Subject: Re: Inspiron 6400 1505e Can't get passive cooling while in AC power X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 20:19:26 -0000 On Sat, Jan 20, 2007 at 06:07:02PM +0000, Abdullah Al-Marrie wrote: > Hello, > > This laptop has Centrino Duo but I can't get the passive cooling at all. > Could you please send: sysctl hw.acpi please? -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 25 04:58:53 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F45316A400 for ; Thu, 25 Jan 2007 04:58:53 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 7DBAA13C457 for ; Thu, 25 Jan 2007 04:58:50 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l0OIEnfG003188; Thu, 25 Jan 2007 05:14:49 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l0OIEnn0003187; Thu, 25 Jan 2007 05:14:49 +1100 (EST) (envelope-from peter) Date: Thu, 25 Jan 2007 05:14:49 +1100 From: Peter Jeremy To: Bruno Ducrot Message-ID: <20070124181449.GI874@turion.vk2pj.dyndns.org> References: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> <20070124103226.GA12197@poupinou.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline In-Reply-To: <20070124103226.GA12197@poupinou.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: AMD Turion64 X2 works with PowerNow! thank you Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 04:58:53 -0000 --mxv5cy4qt+RJ9ypb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 2007-Jan-24 11:32:26 +0100, Bruno Ducrot wrote: >On Wed, Jan 24, 2007 at 11:44:05AM +0300, Abdullah Ibn Hamad Al-Marri wrot= e: >> So I wish this could be backported to RELENG_6 asap, and yes I tested >> it in FreeBSD 6.2-STABLE only, not with current. >>=20 > >I will commit this to RELENG_6 after people do more testing, >maybe in one month or so, need to check if there are no regressions. >And I don't think this will go to RELENG_6_2 since it's not a security >issue. Reading the commit log, I gather this is correcting a bug in PowerNow! rather than a bug with the interaction between PowerNow! and other speed throttling mechanisms. In my case, PowerNow! appears to be OK but acpi_throttle is broken. Thanks for your efforts in investigating these problems. --=20 Peter Jeremy --mxv5cy4qt+RJ9ypb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD4DBQFFt6IZ/opHv/APuIcRAjOuAJi3eaQqaKeFQP9Gn3xSI3grCndjAJ9W7KqQ G1GoM06T8LodgINI3nEyGw== =Ddb9 -----END PGP SIGNATURE----- --mxv5cy4qt+RJ9ypb-- From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 25 15:58:49 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 725EA16A406 for ; Thu, 25 Jan 2007 15:58:49 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 063A113C45A for ; Thu, 25 Jan 2007 15:58:48 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so453521uge for ; Thu, 25 Jan 2007 07:58:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oJACHEA47EplisDy5Ln2SCLZM/wAVDsr4z9UXgI0eVF3+BcXjeZz5fnkFOJ9FHbrPOpi0AirpQv9Lo+Kub720Rp0bi4Kj4HYXP5uR4ABVBYpo2py2lx2qE2Un3VDDa+JE88IDUJT0C9tPA8javSGZYY2qeVFvYPepGSqty88gLI= Received: by 10.67.26.7 with SMTP id d7mr2912498ugj.1169740695856; Thu, 25 Jan 2007 07:58:15 -0800 (PST) Received: by 10.66.255.10 with HTTP; Thu, 25 Jan 2007 07:58:15 -0800 (PST) Message-ID: <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> Date: Thu, 25 Jan 2007 15:58:15 +0000 From: "Abdullah Ibn Hamad Al-Marri" To: "Bruno Ducrot" In-Reply-To: <20070124201612.GD12197@poupinou.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> <20070124201612.GD12197@poupinou.org> Cc: freebsd-acpi@freebsd.org Subject: Re: Inspiron 6400 1505e Can't get passive cooling while in AC power X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 15:58:49 -0000 On 1/24/07, Bruno Ducrot wrote: > On Sat, Jan 20, 2007 at 06:07:02PM +0000, Abdullah Al-Marrie wrote: > > Hello, > > > > This laptop has Centrino Duo but I can't get the passive cooling at all. > > > > Could you please send: > sysctl hw.acpi > please? > > -- > Bruno Ducrot > > -- Which is worse: ignorance or apathy? > -- Don't know. Don't care. > Bruno, Thanks for your kind prompt to make FreeBSD Mobile and ACPI much better. Here is the output per your request. DELL# 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: 1 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_supported: C1/1 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% hw.acpi.acline: 1 hw.acpi.battery.life: 46 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 47.5C hw.acpi.thermal.tz0.active: -1 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: 126.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 25 19:44:16 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8EDFE16A402 for ; Thu, 25 Jan 2007 19:44:16 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 73DB713C467 for ; Thu, 25 Jan 2007 19:44:16 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 19987 invoked from network); 25 Jan 2007 19:43:53 -0000 Received: from adsl-67-119-74-222.dsl.sntc01.pacbell.net (HELO ?10.0.0.44?) (nate-mail@67.119.74.222) by root.org with ESMTPA; 25 Jan 2007 19:43:53 -0000 Message-ID: <45B90872.1000401@root.org> Date: Thu, 25 Jan 2007 11:43:46 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Abdullah Ibn Hamad Al-Marri References: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> <20070124201612.GD12197@poupinou.org> <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> In-Reply-To: <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: Inspiron 6400 1505e Can't get passive cooling while in AC power X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 19:44:16 -0000 Abdullah Ibn Hamad Al-Marri wrote: > On 1/24/07, Bruno Ducrot wrote: >> On Sat, Jan 20, 2007 at 06:07:02PM +0000, Abdullah Al-Marrie wrote: >> > Hello, >> > >> > This laptop has Centrino Duo but I can't get the passive cooling at >> all. >> > >> >> Could you please send: >> sysctl hw.acpi >> please? > > Bruno, > > Thanks for your kind prompt to make FreeBSD Mobile and ACPI much better. > > Here is the output per your request. > > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.user_override: 0 > hw.acpi.thermal.tz0.temperature: 47.5C > hw.acpi.thermal.tz0.active: -1 > 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: 126.0C > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 Your BIOS's thermal zone doesn't specify a temperature setpoint for passive cooling (_PSV == -1). You can manually override it by setting one and enabling passive cooling via sysctl.conf: hw.acpi.thermal.tz0.user_override=1 # Enable override of BIOS values hw.acpi.thermal.tz0._PSV=100C # Override passive setpoint hw.acpi.thermal.tz0.passive_cooling=1 # Enable passive cooling Just be careful what you set _PSV to -- you don't want it higher than _CRT (critical temp) for instance. Once you do manual override, the OS will let you set any value you want but it gives a warning. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 25 19:44:41 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A58A16A417 for ; Thu, 25 Jan 2007 19:44:41 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 4BA0113C428 for ; Thu, 25 Jan 2007 19:44:41 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 20093 invoked from network); 25 Jan 2007 19:44:12 -0000 Received: from adsl-67-119-74-222.dsl.sntc01.pacbell.net (HELO ?10.0.0.44?) (nate-mail@67.119.74.222) by root.org with ESMTPA; 25 Jan 2007 19:44:12 -0000 Message-ID: <45B9048A.4050605@root.org> Date: Thu, 25 Jan 2007 11:27:06 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Abdullah Ibn Hamad Al-Marri References: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> <20070124201612.GD12197@poupinou.org> <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> In-Reply-To: <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: Inspiron 6400 1505e Can't get passive cooling while in AC power X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 19:44:41 -0000 Abdullah Ibn Hamad Al-Marri wrote: > On 1/24/07, Bruno Ducrot wrote: >> On Sat, Jan 20, 2007 at 06:07:02PM +0000, Abdullah Al-Marrie wrote: >> > Hello, >> > >> > This laptop has Centrino Duo but I can't get the passive cooling at >> all. >> > >> >> Could you please send: >> sysctl hw.acpi >> please? > > Bruno, > > Thanks for your kind prompt to make FreeBSD Mobile and ACPI much better. > > Here is the output per your request. > > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.user_override: 0 > hw.acpi.thermal.tz0.temperature: 47.5C > hw.acpi.thermal.tz0.active: -1 > 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: 126.0C > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 Your BIOS's thermal zone doesn't specify a temperature setpoint for passive cooling (_PSV == -1). You can manually override it by setting one and enabling passive cooling via sysctl.conf: hw.acpi.thermal.tz0.user_override=1 # Enable override of BIOS values hw.acpi.thermal.tz0._PSV=100C # Override passive setpoint hw.acpi.thermal.tz0.passive_cooling=1 # Enable passive cooling Just be careful what you set _PSV to -- you don't want it higher than _CRT (critical temp) for instance. Once you do manual override, the OS will let you set any value you want but it gives a warning. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 00:29:58 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4562816A401; Fri, 26 Jan 2007 00:29:58 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id C1BD913C45D; Fri, 26 Jan 2007 00:29:57 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l0Q0TuJB001571; Fri, 26 Jan 2007 11:29:56 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l0Q0TtWe001570; Fri, 26 Jan 2007 11:29:55 +1100 (EST) (envelope-from peter) Date: Fri, 26 Jan 2007 11:29:55 +1100 From: Peter Jeremy To: Bruno Ducrot Message-ID: <20070126002955.GA927@turion.vk2pj.dyndns.org> References: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> <20070124103226.GA12197@poupinou.org> <20070124181449.GI874@turion.vk2pj.dyndns.org> <20070124184828.GC12197@poupinou.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <20070124184828.GC12197@poupinou.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: AMD Turion64 X2 works with PowerNow! thank you Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 00:29:58 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 24, 2007 at 07:48:28PM +0100, Bruno Ducrot wrote: >acpi_throttle is broken ATM on your machine. BTW if you boot with >hint.apic.0.disabled=3D"1" >into /boot/loader.conf >does this solve the acpi_throttle issue? No. I can no longer boot. ACPI reports "ACPI-0210 Unable to install System Control Interrupt Handler, AE_ALREADY_EXISTS". Everything else reports "unable to allocate interrupt" or "couldn't map interrupt" though they list valid IRQ numbers. Having checked, this is probably because I've not got 'atpic' in my kernel. I might try changing this if I have some spare time. --=20 Peter Jeremy --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFuUuD/opHv/APuIcRAmgNAJwPEdS+1QVhzhmAp3S3ZjxEgoBGpQCgigIg jkwkhaJIPHSzh/hawuXROhk= =emi6 -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 07:16:45 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADF1716A402 for ; Fri, 26 Jan 2007 07:16:45 +0000 (UTC) (envelope-from john@utzweb.net) Received: from marley.grokthis.net (marley.grokthis.net [69.93.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 891E413C458 for ; Fri, 26 Jan 2007 07:16:45 +0000 (UTC) (envelope-from john@utzweb.net) Received: from utzweb.net (localhost [127.0.0.1]) by marley.grokthis.net (Postfix) with ESMTP id DF81FF101A for ; Fri, 26 Jan 2007 01:54:21 -0500 (EST) Received: from 69.93.78.27 (proxying for 71.231.84.94) (SquirrelMail authenticated user john-utzweb-net); by utzweb.net with HTTP; Fri, 26 Jan 2007 01:54:25 -0500 (EST) Message-ID: <48652.69.93.78.27.1169794465.squirrel@69.93.78.27> Date: Fri, 26 Jan 2007 01:54:25 -0500 (EST) From: john@utzweb.net To: freebsd-acpi@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: SYSCTL_ADD_UINT - what am i doing wrong? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 07:16:45 -0000 Hello There! I am having some gnarly grief with SYSCTL_ADD_UINT; it doesnt present the data that i think that i have presented to it. What's strange about this is that i use SYSCTL_ADD_STRING and it works perfectly. Note that in the following for loop (in smbios_attach()), i use SYSCTL_ADD_UINT, SYSCTL_ADD_STRING and my good debugging friend printf() for(u8IdxEntry = 0; u8IdxEntry < psmbios_structure->u8CntEntry; u8IdxEntry++) { ssmbios_entry = pasmbios_structure_entry[u8IdxEntry]; s_pu8Addr = smbios_entry_find( s_peps, s_pu8Addr, psmbios_structure->u8Type, ssmbios_entry.u8Offset, ssmbios_entry.u8NumBytes); printf("Name: %s Addr: %p Val: %u\n", ssmbios_entry.acName, s_pu8Addr, *s_pu8Addr); if(String==ssmbios_entry.etVal) SYSCTL_ADD_STRING( &psc->sysctl_ctx, ploid, OID_AUTO, ssmbios_entry.acName, CTLFLAG_RD, s_pu8Addr, 0, ""); else SYSCTL_ADD_UINT( &psc->sysctl_ctx, ploid, OID_AUTO, ssmbios_entry.acName, CTLFLAG_RD, s_pu8Addr, 0, ""); } Here is the output of dmesg, note the 'Val: ' items, because these are the correct numbers that are supposed to be there: smbios0: on motherboard smbios0: Version: 2.3 smbios0: Latitude C400, Dell Computer Corporation, A12, 5PYHW11 Name: Type Addr: 0xc00f786b Val: 1 Name: Length Addr: 0xc00f786c Val: 25 Name: Handle Addr: 0xc00f786d Val: 0 Name: Manufacturer Addr: 0xc00f7884 Val: 68 Name: ProductName Addr: 0xc00f789e Val: 76 Name: Version Addr: 0xc334c63b Val: 0 Name: SerialNumber Addr: 0xc00f78bf Val: 53 Name: UUID Addr: 0xc00f7873 Val: 68 Name: Wake-upType Addr: 0xc00f7883 Val: 6 Name: SKUNumber Addr: 0xc00f7a22 Val: 18 Name: Family Addr: 0xc00f7aad Val: 182 Now, let's review the output of sysctl: [spaz@minime /usr/home/spaz]$ sysctl hw.smbios hw.smbios.system.Type: 16783617 hw.smbios.system.Length: 16842777 hw.smbios.system.Handle: 33620224 hw.smbios.system.Manufacturer: Dell Computer Corporation hw.smbios.system.ProductName: Latitude C400 hw.smbios.system.Version: hw.smbios.system.SerialNumber: 5PYHW11 hw.smbios.system.UUID: 1280066884 hw.smbios.system.Wake-upType: 1818575878 hw.smbios.system.SKUNumber: USB hw.smbios.system.Family: ¶ The good news is that all of the *Strings* look great, but the int values are crap; Type should be 1, Length should be 25, etc. Can anybody offer any suggestions as to what i am doing wrong? tnx! johnu ps: if i get this sorted out, then the only thing i need to do is finish typing up the smbios structures, ie: static struct smbios_structure_entry asmbios_entry_SYST[SMBIOS_CNT_SYST] = { { "Type" , 0x00, 1, 1 }, { "Length" , 0x01, 1, Varies }, { "Handle" , 0x02, 2, Varies }, { "Manufacturer" , 0x04, 0, String }, { "ProductName" , 0x05, 0, String }, { "Version" , 0x06, 0, String }, { "SerialNumber" , 0x07, 0, String }, { "UUID" , 0x08,16, Varies }, { "Wake-upType" , 0x18, 1, Enum }, { "SKUNumber" , 0x19, 0, String }, { "Family" , 0x1a, 0, String } }; and smbios.ko will be completed From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 09:02:39 2007 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 798F716A401 for ; Fri, 26 Jan 2007 09:02:39 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 1832A13C46B for ; Fri, 26 Jan 2007 09:02:38 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so1058600nfc for ; Fri, 26 Jan 2007 01:02:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Fok+9ryNerIN3fm9rZ2Q14iSCSAOIgP4ERf5zE7D705Qd6kSlBzE9xZbEX2ShTrlHstMOEioZ33HKoOt+rzb12dy7pLNAOfFN+y/IDzzHE/HtEura++rDz639rNpSFF6Hd7lOLv4srPaJ5umZJ6LhL1KFgLZTZjNql6DIm0oKmA= Received: by 10.48.48.1 with SMTP id v1mr5374913nfv.1169800430067; Fri, 26 Jan 2007 00:33:50 -0800 (PST) Received: from uup ( [85.140.173.246]) by mx.google.com with ESMTP id i1sm12114549nfe.2007.01.26.00.33.47; Fri, 26 Jan 2007 00:33:48 -0800 (PST) From: feature To: acpi@FreeBSD.org Date: Fri, 26 Jan 2007 11:34:21 +0300 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261134.21972.feature.id@gmail.com> Cc: Subject: acpi_asus: no support for model M5200Ae X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 09:02:39 -0000 Greetings. According to the acpi_asus.c's comments, mailling to the list in order to ask for Asus M5200Ae support in acpi_asus module. Have no idea which info to provide, so feel free to ask. Thanks in advance. P.S. FreeBSD 7.0-CURRENT (Sun Dec 31) dmesg: http://rafb.net/p/yE9G8B46.html From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 09:13:06 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9488516A400 for ; Fri, 26 Jan 2007 09:13:06 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 32F1613C489 for ; Fri, 26 Jan 2007 09:13:05 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so1060615nfc for ; Fri, 26 Jan 2007 01:13:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=iClMIszqYvMoQCU2ZBLTELY9LPTTX18p0pLVGVIaEVWe6SrTi4x1y8NBJIvgsRa34AFhFOfx/NilCO1smg+b2KF4Fia/OH/VkLPRngkrM9VcN/jy9PThnmXmUekjZlQKTtenHS9ux2tzxsFS3qLqNBbAtC6sgWokBF64xMnCUec= Received: by 10.48.14.4 with SMTP id 4mr4141575nfn.1169801111462; Fri, 26 Jan 2007 00:45:11 -0800 (PST) Received: from uup ( [85.140.173.246]) by mx.google.com with ESMTP id z73sm12162561nfb.2007.01.26.00.45.10; Fri, 26 Jan 2007 00:45:10 -0800 (PST) From: feature To: freebsd-acpi@freebsd.org Date: Fri, 26 Jan 2007 11:45:38 +0300 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261145.39236.feature.id@gmail.com> Subject: acpi_asus: no support for M5200Ae X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 09:13:06 -0000 Greetings. According to the acpi_asus.c's comments, mailling to the list in order to ask for Asus M5200Ae support in acpi_asus module. Have no idea which info to provide, so feel free to ask. Thanks in advance. P.S. FreeBSD 7.0-CURRENT (Sun Dec 31) dmesg: http://rafb.net/p/yE9G8B46.html From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 09:24:42 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22A6116A404 for ; Fri, 26 Jan 2007 09:24:42 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id B518E13C4AD for ; Fri, 26 Jan 2007 09:24:41 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so616769uge for ; Fri, 26 Jan 2007 01:24:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QbSim7Wxs2exKxH8Hxl872g4VfKjJ/SvQIasY3HioPzq3Y54PWOgI8vvVJ63lwJed6W8BaWK/w36Xeml++Oet1WK0NwQEpkGV5GoNm2c7/Ndtt8EUtggMRNcCGos+XdMMHWqoaq2/NkhiaE3xexvHob26I8pGE3qcBB+Pmh6dos= Received: by 10.67.119.13 with SMTP id w13mr4045458ugm.1169803480084; Fri, 26 Jan 2007 01:24:40 -0800 (PST) Received: by 10.66.255.10 with HTTP; Fri, 26 Jan 2007 01:24:39 -0800 (PST) Message-ID: <499c70c0701260124p4e60e37eu2b881428bc52cbe4@mail.gmail.com> Date: Fri, 26 Jan 2007 09:24:39 +0000 From: "Abdullah Ibn Hamad Al-Marri" To: feature In-Reply-To: <200701261145.39236.feature.id@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200701261145.39236.feature.id@gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_asus: no support for M5200Ae X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 09:24:42 -0000 On 1/26/07, feature wrote: > Greetings. > > According to the acpi_asus.c's comments, mailling to the list in order to ask > for Asus M5200Ae support in acpi_asus module. Have no idea which info to > provide, so feel free to ask. Thanks in advance. > > P.S. > FreeBSD 7.0-CURRENT (Sun Dec 31) > dmesg: http://rafb.net/p/yE9G8B46.html Please send acpi output to the list, so dev folks could answer you. type sysctl hw.acpi -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 09:56:17 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB72F16A402 for ; Fri, 26 Jan 2007 09:56:17 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 4771613C4B6 for ; Fri, 26 Jan 2007 09:56:16 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so1069183nfc for ; Fri, 26 Jan 2007 01:56:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=aPSAC7wypn5HWEGtZke3D7omeRp3abpp/s0P4QlJUihhZmKWczvRtzAuZmaQM7VFlWNPPfogqyZ8ZXmAB88Y3pnfIH8Fo8M2jdgZE0j39vxCd5sWtStu5HpFaPN7BWYTYFo70DvV65Bkqnq1Vb0t1u0S40QyOE8k+pIaGGmlWXg= Received: by 10.49.58.13 with SMTP id l13mr5388420nfk.1169805343818; Fri, 26 Jan 2007 01:55:43 -0800 (PST) Received: from uup ( [91.76.85.101]) by mx.google.com with ESMTP id q27sm12315558nfc.2007.01.26.01.55.42; Fri, 26 Jan 2007 01:55:43 -0800 (PST) From: feature To: freebsd-acpi@freebsd.org Date: Fri, 26 Jan 2007 12:56:16 +0300 User-Agent: KMail/1.9.5 References: <200701261145.39236.feature.id@gmail.com> <499c70c0701260124p4e60e37eu2b881428bc52cbe4@mail.gmail.com> In-Reply-To: <499c70c0701260124p4e60e37eu2b881428bc52cbe4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261256.17142.feature.id@gmail.com> Subject: Re: acpi_asus: no support for M5200Ae X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 09:56:17 -0000 On Friday 26 January 2007 12:24, Abdullah Ibn Hamad Al-Marri wrote: > On 1/26/07, feature wrote: > > Greetings. > > > > According to the acpi_asus.c's comments, mailling to the list in order to > > ask for Asus M5200Ae support in acpi_asus module. Have no idea which info > > to provide, so feel free to ask. Thanks in advance. > > > > P.S. > > FreeBSD 7.0-CURRENT (Sun Dec 31) > > dmesg: http://rafb.net/p/yE9G8B46.html > > Please send acpi output to the list, so dev folks could answer you. > > type > 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.cpu.cx_supported: C1/1 C2/1 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% 0.00% hw.acpi.video.crt0.active: 0 hw.acpi.video.lcd0.active: 1 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 56,0C hw.acpi.thermal.tz0.active: 0 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 105,0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 115,0C hw.acpi.thermal.tz0._ACx: 45,0C -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.acline: 1 hw.acpi.battery.life: 100 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 16:58:28 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1812116A403 for ; Fri, 26 Jan 2007 16:58:28 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id DB81013C481 for ; Fri, 26 Jan 2007 16:58:27 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 67201 invoked from network); 26 Jan 2007 16:58:28 -0000 Received: from ppp-71-139-39-138.dsl.snfc21.pacbell.net (HELO ?10.0.5.59?) (nate-mail@71.139.39.138) by root.org with ESMTPA; 26 Jan 2007 16:58:28 -0000 Message-ID: <45BA332B.3020301@root.org> Date: Fri, 26 Jan 2007 08:58:19 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: feature References: <200701261145.39236.feature.id@gmail.com> In-Reply-To: <200701261145.39236.feature.id@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_asus: no support for M5200Ae X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 16:58:28 -0000 feature wrote: > Greetings. > > According to the acpi_asus.c's comments, mailling to the list in order to ask > for Asus M5200Ae support in acpi_asus module. Have no idea which info to > provide, so feel free to ask. Thanks in advance. > > P.S. > FreeBSD 7.0-CURRENT (Sun Dec 31) > dmesg: http://rafb.net/p/yE9G8B46.html You'll laso need to post output of: acpidump -t -d > asus_m5200ae.asl and post a link to it like your dmesg. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 19:55:28 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3127616A401 for ; Fri, 26 Jan 2007 19:55:28 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id BA23C13C48E for ; Fri, 26 Jan 2007 19:55:27 +0000 (UTC) (envelope-from feature.id@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so1197745nfc for ; Fri, 26 Jan 2007 11:55:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=bLAk0CyBchaCglA0YNh/4WLcHs8fGyaqMt8KFbS+kj3YAZ9+1sZm+nQiHivyC7uS5rTPFrcwR24v9vP7RdtuVwR/w0cnpETyVUhO8i58TZLNVs/TG0V4Emu/X6euDNdee0lErSz6Jh5jtH/6VDy+9VeTQ9uwX8LCQFWH03O3VRQ= Received: by 10.49.8.15 with SMTP id l15mr6064751nfi.1169841326483; Fri, 26 Jan 2007 11:55:26 -0800 (PST) Received: from uup ( [91.76.85.101]) by mx.google.com with ESMTP id q40sm4903436ugc.2007.01.26.11.55.23; Fri, 26 Jan 2007 11:55:25 -0800 (PST) From: feature To: freebsd-acpi@freebsd.org Date: Fri, 26 Jan 2007 22:55:19 +0300 User-Agent: KMail/1.9.5 References: <200701261145.39236.feature.id@gmail.com> <45BA332B.3020301@root.org> In-Reply-To: <45BA332B.3020301@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701262255.20515.feature.id@gmail.com> Subject: Re: acpi_asus: no support for M5200Ae X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 19:55:28 -0000 On Friday 26 January 2007 19:58, Nate Lawson wrote: > acpidump -t -d > asus_m5200ae.asl > and post a link to it like your dmesg. http://www.mytempdir.com/1187476 From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 20:09:10 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E72416A400; Fri, 26 Jan 2007 20:09:10 +0000 (UTC) (envelope-from argentoff@rtelekom.ru) Received: from mail.rtelekom.ru (ns.rtelekom.ru [217.146.40.129]) by mx1.freebsd.org (Postfix) with ESMTP id E199013C487; Fri, 26 Jan 2007 20:09:09 +0000 (UTC) (envelope-from argentoff@rtelekom.ru) Received: from mail.rtelekom.ru (localhost.rtelekom.net [127.0.0.1]) by uranus.rtelekom.net (Postfix) with ESMTP id 088B55D63; Fri, 26 Jan 2007 23:09:08 +0300 (MSK) Received: from [127.0.0.1] (40.3.dial.rtelekom.net [217.146.40.3]) by uranus.rtelekom.net (Postfix) with ESMTP id DD0FB5D74; Fri, 26 Jan 2007 23:09:06 +0300 (MSK) Message-ID: <45BA5F17.7060901@rtelekom.ru> Date: Fri, 26 Jan 2007 23:05:43 +0300 From: Pavel Argentov User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Abdullah Ibn Hamad Al-Marri References: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> In-Reply-To: <499c70c0701240044q32162e40ye8f923bf758e8633@mail.gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP by uranus.rtelekom.net [217.146.40.129] Cc: freebsd-acpi@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: AMD Turion64 X2 works with PowerNow! thank you Bruno X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 20:09:10 -0000 Abdullah Ibn Hamad Al-Marri wrote: > I have been working with Mr. Bruno for few days, and finally PowerNow! > works with no hanging issues at all, I used the new powernow.c > provided by Bruno attached. Just to settle mess in my brains: it fixes the co-existence of powernow thing in cpufreq driver and powerd? -- SY, Paul. Jabber: paul@jabber.rtelekom.ru RIPE: PA1291-RIPE From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 26 20:12:06 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2774C16A400 for ; Fri, 26 Jan 2007 20:12:06 +0000 (UTC) (envelope-from argentoff@rtelekom.ru) Received: from mail.rtelekom.ru (mail.rtelekom.ru [217.146.40.129]) by mx1.freebsd.org (Postfix) with ESMTP id D324313C46C for ; Fri, 26 Jan 2007 20:12:05 +0000 (UTC) (envelope-from argentoff@rtelekom.ru) Received: from mail.rtelekom.ru (localhost.rtelekom.net [127.0.0.1]) by uranus.rtelekom.net (Postfix) with ESMTP id EE1C75D76; Fri, 26 Jan 2007 23:12:04 +0300 (MSK) Received: from [127.0.0.1] (40.3.dial.rtelekom.net [217.146.40.3]) by uranus.rtelekom.net (Postfix) with ESMTP id EA5CD5D74; Fri, 26 Jan 2007 23:12:03 +0300 (MSK) Message-ID: <45BA5FCB.7050901@rtelekom.ru> Date: Fri, 26 Jan 2007 23:08:43 +0300 From: Pavel Argentov User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Abdullah Al-Marrie References: <499c70c0701220844uf1e9fc4iae378cc76e09f735@mail.gmail.com> In-Reply-To: <499c70c0701220844uf1e9fc4iae378cc76e09f735@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP by uranus.rtelekom.net [217.146.40.129] Cc: freebsd-acpi@freebsd.org Subject: Re: FreeBSD 6.2-STABLE can't alloc wake memory X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 20:12:06 -0000 Abdullah Al-Marrie wrote: > Do you know why I'm getting "acpi_alloc_wakeup_handler: can't alloc > wake memory"? As I can remember this is an issue on ALL ACPI machines I saw under FreeBSD 5.x-6.x. Good time to start solving it ;-) -- SY, Paul. Jabber: paul@jabber.rtelekom.ru RIPE: PA1291-RIPE From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 02:43:32 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C144116A401 for ; Sat, 27 Jan 2007 02:43:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 568DB13C49D for ; Sat, 27 Jan 2007 02:43:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l0R2hUlh013205; Sat, 27 Jan 2007 13:43:30 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l0R2hTFO013204; Sat, 27 Jan 2007 13:43:29 +1100 (EST) (envelope-from peter) Date: Sat, 27 Jan 2007 13:43:29 +1100 From: Peter Jeremy To: john@utzweb.net Message-ID: <20070127024329.GE927@turion.vk2pj.dyndns.org> References: <48652.69.93.78.27.1169794465.squirrel@69.93.78.27> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" Content-Disposition: inline In-Reply-To: <48652.69.93.78.27.1169794465.squirrel@69.93.78.27> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-acpi@freebsd.org Subject: Re: SYSCTL_ADD_UINT - what am i doing wrong? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 02:43:32 -0000 --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 2007-Jan-26 01:54:25 -0500, john@utzweb.net wrote: >I am having some gnarly grief with SYSCTL_ADD_UINT; it doesnt present the >data that i think that i have presented to it. What's strange about this >is that i use SYSCTL_ADD_STRING and it works perfectly. I suspect that your problem is that SYSCTL_ADD_UINT needs a uint32_t but you are apparently passing a byte. If you convert the sysctl output to hex, you will notice that the low byte is correct. --=20 Peter Jeremy --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFurxR/opHv/APuIcRAjblAJ0WJClgObDoZaozVlarKH6wAMqvsQCcCtjb tLSp+hoUUjNkjqWcGKFPIdU= =d5Xd -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL-- From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 10:34:46 2007 Return-Path: X-Original-To: freebsd-acpi@hub.freebsd.org Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B986A16A402; Sat, 27 Jan 2007 10:34:46 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9124F13C489; Sat, 27 Jan 2007 10:34:46 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (remko@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0RAYkEj020162; Sat, 27 Jan 2007 10:34:46 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0RAYkvf020158; Sat, 27 Jan 2007 10:34:46 GMT (envelope-from remko) Date: Sat, 27 Jan 2007 10:34:46 GMT From: Remko Lodder Message-Id: <200701271034.l0RAYkvf020158@freefall.freebsd.org> To: remko@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-acpi@FreeBSD.org Cc: Subject: Re: kern/76950: ACPI wrongly blacklisted on Micron ClientPro 766Xi system X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 10:34:46 -0000 Synopsis: ACPI wrongly blacklisted on Micron ClientPro 766Xi system Responsible-Changed-From-To: freebsd-bugs->freebsd-acpi Responsible-Changed-By: remko Responsible-Changed-When: Sat Jan 27 10:34:23 UTC 2007 Responsible-Changed-Why: Dear ACPI team, can you have a look at this PR please? http://www.freebsd.org/cgi/query-pr.cgi?pr=76950 From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 10:39:17 2007 Return-Path: X-Original-To: freebsd-acpi@hub.freebsd.org Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1F1816A402; Sat, 27 Jan 2007 10:39:17 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id CA7FF13C48D; Sat, 27 Jan 2007 10:39:17 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (remko@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0RAdH0g020508; Sat, 27 Jan 2007 10:39:17 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0RAdHKR020504; Sat, 27 Jan 2007 10:39:17 GMT (envelope-from remko) Date: Sat, 27 Jan 2007 10:39:17 GMT From: Remko Lodder Message-Id: <200701271039.l0RAdHKR020504@freefall.freebsd.org> To: aurelien.nephtali@wanadoo.fr, remko@FreeBSD.org, freebsd-acpi@FreeBSD.org Cc: Subject: Re: kern/74030: Unplugging AC causes battery % to stay locked at 98% X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 10:39:18 -0000 Synopsis: Unplugging AC causes battery % to stay locked at 98% State-Changed-From-To: feedback->closed State-Changed-By: remko State-Changed-When: Sat Jan 27 10:39:16 UTC 2007 State-Changed-Why: feedback timeout http://www.freebsd.org/cgi/query-pr.cgi?pr=74030 From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 15:21:53 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FFA316A401 for ; Sat, 27 Jan 2007 15:21:53 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 3122E13C46E for ; Sat, 27 Jan 2007 15:21:52 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so914763nzh for ; Sat, 27 Jan 2007 07:21:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D8+GvcaCuaRbGE/ltPAJXVZsMe5hCZ+ciBvOJusX5ppl1A6SDkmGJNV0OSevnMpMqsXL+oq263MNyudJxOmS4ScyrgSsJT4HB2xbdxVaetyzH5IKFayxO6sNBQ/7iHWyRjZlanSPMYC+wZWjm9mmDivukbUJOFTRGgdsDEQV47g= Received: by 10.114.78.1 with SMTP id a1mr171512wab.1169911279879; Sat, 27 Jan 2007 07:21:19 -0800 (PST) Received: by 10.115.91.7 with HTTP; Sat, 27 Jan 2007 07:21:19 -0800 (PST) Message-ID: <499c70c0701270721v224c8bc0icfadc3536f4b6540@mail.gmail.com> Date: Sat, 27 Jan 2007 15:21:19 +0000 From: "Abdullah Ibn Hamad Al-Marri" To: "Nate Lawson" In-Reply-To: <45B90872.1000401@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> <20070124201612.GD12197@poupinou.org> <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> <45B90872.1000401@root.org> Cc: freebsd-acpi@freebsd.org Subject: Re: Inspiron 6400 1505e Can't get passive cooling while in AC power X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 15:21:53 -0000 On 1/25/07, Nate Lawson wrote: > Abdullah Ibn Hamad Al-Marri wrote: > > On 1/24/07, Bruno Ducrot wrote: > >> On Sat, Jan 20, 2007 at 06:07:02PM +0000, Abdullah Al-Marrie wrote: > >> > Hello, > >> > > >> > This laptop has Centrino Duo but I can't get the passive cooling at > >> all. > >> > > >> > >> Could you please send: > >> sysctl hw.acpi > >> please? > > > > Bruno, > > > > Thanks for your kind prompt to make FreeBSD Mobile and ACPI much better. > > > > Here is the output per your request. > > > > hw.acpi.thermal.min_runtime: 0 > > hw.acpi.thermal.polling_rate: 10 > > hw.acpi.thermal.user_override: 0 > > hw.acpi.thermal.tz0.temperature: 47.5C > > hw.acpi.thermal.tz0.active: -1 > > 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: 126.0C > > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 > > Your BIOS's thermal zone doesn't specify a temperature setpoint for > passive cooling (_PSV == -1). You can manually override it by setting > one and enabling passive cooling via sysctl.conf: > > hw.acpi.thermal.tz0.user_override=1 # Enable override of BIOS values > hw.acpi.thermal.tz0._PSV=100C # Override passive setpoint > hw.acpi.thermal.tz0.passive_cooling=1 # Enable passive cooling > > Just be careful what you set _PSV to -- you don't want it higher than > _CRT (critical temp) for instance. Once you do manual override, the OS > will let you set any value you want but it gives a warning. > > -- > Nate Nate, Thank you for your kind prompt to help, but it didn't do the trick. Jan 27 15:16:12 DELL root: /etc/rc.d/sysctl: WARNING: sysctl hw.acpi.thermal.tz0 .user_override does not exist. DELL# 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: 1 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_supported: C1/1 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% hw.acpi.acline: 1 hw.acpi.battery.life: 77 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 45.5C hw.acpi.thermal.tz0.active: -1 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: 126.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 18:47:51 2007 Return-Path: X-Original-To: freebsd-acpi@hub.freebsd.org Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B92516A403; Sat, 27 Jan 2007 18:47:51 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1526D13C4AD; Sat, 27 Jan 2007 18:47:51 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (remko@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0RIloAS059064; Sat, 27 Jan 2007 18:47:50 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0RIlo9B059060; Sat, 27 Jan 2007 18:47:50 GMT (envelope-from remko) Date: Sat, 27 Jan 2007 18:47:50 GMT From: Remko Lodder Message-Id: <200701271847.l0RIlo9B059060@freefall.freebsd.org> To: rjohns44@comcast.net, remko@FreeBSD.org, freebsd-acpi@FreeBSD.org Cc: Subject: Re: kern/77805: [acpi]: Boot hangs with ACPI enabled X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 18:47:51 -0000 Synopsis: [acpi]: Boot hangs with ACPI enabled State-Changed-From-To: open->closed State-Changed-By: remko State-Changed-When: Sat Jan 27 18:47:50 UTC 2007 State-Changed-Why: feedback timeout http://www.freebsd.org/cgi/query-pr.cgi?pr=77805 From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 27 20:04:48 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0800B16A405 for ; Sat, 27 Jan 2007 20:04:48 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.freebsd.org (Postfix) with ESMTP id 4142213C518 for ; Sat, 27 Jan 2007 20:04:47 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:DY3LpkCRXbK+5iEtxmdsgF/WhAsKG6IEdeUdyJIqhT5ycfYh8q6M1+t5M2+uwEgy@kasuga.mahoroba.org [IPv6:2001:2f0:104:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id l0RJpEtF057761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 28 Jan 2007 04:51:18 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 28 Jan 2007 04:51:13 +0900 Message-ID: From: Hajimu UMEMOTO To: "Abdullah Ibn Hamad Al-Marri" In-Reply-To: <499c70c0701270721v224c8bc0icfadc3536f4b6540@mail.gmail.com> References: <499c70c0701201007i6d77c35bm95f25d1f3451f7a3@mail.gmail.com> <20070124201612.GD12197@poupinou.org> <499c70c0701250758x174c297fu31e8ef00751fbf32@mail.gmail.com> <45B90872.1000401@root.org> <499c70c0701270721v224c8bc0icfadc3536f4b6540@mail.gmail.com> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Sun_Jan_28_04:51:13_2007-1" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sun, 28 Jan 2007 04:51:19 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on ameno.mahoroba.org Cc: freebsd-acpi@freebsd.org Subject: Re: Inspiron 6400 1505e Can't get passive cooling while in AC power X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 20:04:48 -0000 --Multipart_Sun_Jan_28_04:51:13_2007-1 Content-Type: text/plain; charset=US-ASCII Hi, >>>>> On Sat, 27 Jan 2007 15:21:19 +0000 >>>>> "Abdullah Ibn Hamad Al-Marri" said: almarrie> Thank you for your kind prompt to help, but it didn't do the trick. almarrie> Jan 27 15:16:12 DELL root: /etc/rc.d/sysctl: WARNING: sysctl almarrie> hw.acpi.thermal.tz0 almarrie> .user_override does not exist. It should be hw.acpi.thermal.user_override=1. However, perhaps, it still doesn't work for you. Your BIOS's thermal zone might not specify _TC1, _TC2 and _TSP correctly. They are required for passive cooling. Since, they are not visible through sysctl, you cannot change the values. If it is your case, please try the attached patch. It adds hw.acpi.thermal.tz0._TC1, hw.acpi.thermal.tz0._TC2 and hw.acpi.thermal.tz0._TSP. Choosing the values is an issue. For your reference, my laptop (Panasonic Let'snote CF-R4) has _TC1=0, _TC2=12, _TSP=40. Sincerely, --Multipart_Sun_Jan_28_04:51:13_2007-1 Content-Type: text/x-patch; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="acpi_thermal.c-passive_sysctl.diff" Index: sys/dev/acpica/acpi_thermal.c diff -u -p sys/dev/acpica/acpi_thermal.c.orig sys/dev/acpica/acpi_thermal.c --- sys/dev/acpica/acpi_thermal.c.orig Sun Sep 10 16:38:59 2006 +++ sys/dev/acpica/acpi_thermal.c Mon Sep 18 01:44:08 2006 @@ -133,6 +133,7 @@ static void acpi_tz_sanity(struct acpi_t static int acpi_tz_active_sysctl(SYSCTL_HANDLER_ARGS); static int acpi_tz_cooling_sysctl(SYSCTL_HANDLER_ARGS); static int acpi_tz_temp_sysctl(SYSCTL_HANDLER_ARGS); +static int acpi_tz_passive_sysctl(SYSCTL_HANDLER_ARGS); static void acpi_tz_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context); static void acpi_tz_signal(struct acpi_tz_softc *sc, int flags); @@ -293,6 +294,21 @@ acpi_tz_attach(device_t dev) SYSCTL_ADD_OPAQUE(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree), OID_AUTO, "_ACx", CTLFLAG_RD, &sc->tz_zone.ac, sizeof(sc->tz_zone.ac), "IK", ""); + SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree), + OID_AUTO, "_TC1", CTLTYPE_INT | CTLFLAG_RW, + sc, offsetof(struct acpi_tz_softc, tz_zone.tc1), + acpi_tz_passive_sysctl, "I", + "thermal constant 1 for passive cooling"); + SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree), + OID_AUTO, "_TC2", CTLTYPE_INT | CTLFLAG_RW, + sc, offsetof(struct acpi_tz_softc, tz_zone.tc2), + acpi_tz_passive_sysctl, "I", + "thermal constant 2 for passive cooling"); + SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree), + OID_AUTO, "_TSP", CTLTYPE_INT | CTLFLAG_RW, + sc, offsetof(struct acpi_tz_softc, tz_zone.tsp), + acpi_tz_passive_sysctl, "I", + "thermal sampling period for passive cooling"); /* * Create thread to service all of the thermal zones. Register @@ -738,6 +754,30 @@ acpi_tz_temp_sysctl(SYSCTL_HANDLER_ARGS) return (EINVAL); *temp_ptr = temp; + return (0); +} + +static int +acpi_tz_passive_sysctl(SYSCTL_HANDLER_ARGS) +{ + struct acpi_tz_softc *sc; + int val, *val_ptr; + int error; + + sc = oidp->oid_arg1; + val_ptr = (int *)((uintptr_t)sc + oidp->oid_arg2); + val = *val_ptr; + error = sysctl_handle_int(oidp, &val, 0, req); + + /* Error or no new value */ + if (error != 0 || req->newptr == NULL) + return (error); + + /* Only allow changing settings if override is set. */ + if (!acpi_tz_override) + return (EPERM); + + *val_ptr = val; return (0); } --Multipart_Sun_Jan_28_04:51:13_2007-1 Content-Type: text/plain; charset=US-ASCII -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ --Multipart_Sun_Jan_28_04:51:13_2007-1--