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--