From owner-freebsd-acpi@FreeBSD.ORG Sun May 18 03:05:32 2008 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E90CA1065671; Sun, 18 May 2008 03:05:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.freebsd.org (Postfix) with ESMTP id 7A8698FC1C; Sun, 18 May 2008 03:05:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m4I35TjV026007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 May 2008 13:05:30 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m4I35TSr001384; Sun, 18 May 2008 13:05:29 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m4I35TlG001383; Sun, 18 May 2008 13:05:29 +1000 (EST) (envelope-from peter) Date: Sun, 18 May 2008 13:05:28 +1000 From: Peter Jeremy To: Ariff Abdullah Message-ID: <20080518030528.GA1099@server.vk2pj.dyndns.org> References: <20080428112623.GA99757@server.vk2pj.dyndns.org> <20080516202242.3992b284.ariff@FreeBSD.org> <20080517073716.GF80125@server.vk2pj.dyndns.org> <20080517194326.420ceb81.ariff@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <20080517194326.420ceb81.ariff@FreeBSD.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-acpi@FreeBSD.org Subject: Re: BIOS Regression on HP/Compaq [d]v6000 series notebooks 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, 18 May 2008 03:05:33 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-May-17 19:43:26 +0800, Ariff Abdullah wrote: >Install sysutils/devcpu from ports, load cpu.ko, and grab / compile >http://people.freebsd.org/~ariff/misc/k8c1e/ . Try playing with it >(enable, disable, status) It reported C1E disabled normally and enabled when I removed power. Explicitly disabling it when running on battery caused everything to behave. Curiously, enabling C1E when running on AC power did not make things stop - which confused me. I extended k8c1e.c to report the actual IPMR contents. This gave me the following. Running on AC (ie after plugging AC back in): cpu0: MSR=3D0x0000000004c10000 C1E disabled cpu1: MSR=3D0x0000000004c10000 C1E disabled Disconnecting AC: cpu0: MSR=3D0x0000000014c11015 C1E enabled cpu1: MSR=3D0x000000001cc11015 C1E enabled I notice that it doesn't set SmiOnCmpHalt on CPU0. Interestingly, "BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh Processors" (#32559) revision 3.08, states that each of C1eOnCmpHalt, SmiOnCmpHalt and IntPndMsg are mutually exclusive (only one can be set to 1) and that all cores should be programmed the same - it looks like the BIOS is not doing this. I don't know why your patch is not working. It looks suspiciously like it's not getting the relevant ACPI notify message (or maybe the ACPI BIOS is sending the ACPI notify early and juggling C1E after the notify). I checked and I _am_ running a kernel with the patch in it. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgvnPgACgkQ/opHv/APuIeIfACfWC6Q7Jv2w7elyoKWatKz/dim W0sAoIv4N2SqI7puCWbHDNA76HTvdS8T =HM6S -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--