Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2007 01:25:32 +0800
From:      Ariff Abdullah <ariff@FreeBSD.org>
To:        Michele Heurs <michele.heurs@aei.mpg.de>
Cc:        joerg_wunsch@uriah.heep.sax.de, freebsd-acpi@freebsd.org
Subject:   Re: ACPI problems on HP Compaq nx6325
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <michele.heurs@aei.mpg.de> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070123012532.31d605a0.ariff>