From owner-freebsd-acpi@FreeBSD.ORG Sun Jul 8 16:56:33 2012 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 A9FF7106568D; Sun, 8 Jul 2012 16:56:33 +0000 (UTC) (envelope-from nate@root.org) Received: from mail.rootlabs.com (rootlabs.com [208.72.84.106]) by mx1.freebsd.org (Postfix) with ESMTP id 848588FC08; Sun, 8 Jul 2012 16:56:33 +0000 (UTC) Received: from [192.168.1.100] (unknown [50.13.187.44]) by mail.rootlabs.com (Postfix) with ESMTPSA id 892C5EE23; Sun, 8 Jul 2012 16:50:21 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Nate Lawson In-Reply-To: <4FF94EC4.1060109@FreeBSD.org> Date: Sun, 8 Jul 2012 09:49:57 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <023CA42F-C5FD-4F67-AD70-84DE68B3FBA8@root.org> References: <4FF94EC4.1060109@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1278) Cc: "freebsd-acpi@freebsd.org" Subject: Re: disabled CST_CNT write 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, 08 Jul 2012 16:56:33 -0000 On Jul 8, 2012, at 2:11 AM, Andriy Gapon wrote: > acpi_cpu.c has a block of code to write CST_CNT to SMI_CMD, but the = block is > under #ifdef notyet. It seems that the code was added that many years = ago and > never enabled. > Now, judging from the reports I've seen on this mailing list, it = appears that > _CST changes do happen and the driver seem to handle them sufficiently = well. > I think that a lot of modern platforms do not even provide CST_CNT and = assume > that an OS is able to handle C-state change notifications. > So, I guess that it should be safe to enable the code in question now. >=20 > Could anyone with a FreeBSD laptop and non-zero CST_CNT in FADT please = test this? It was only under an #ifdef because at the time our CST implementation = couldn't handle CST changes cleanly. I had added some support for it, = but since it couldn't be tested, I wasn't sure how actual hardware would = behave. I think it's fine to enable now. I think 2007-era Thinkpads were some of = the first to add this feature. -Nate