From owner-freebsd-acpi@FreeBSD.ORG Sun Jul 8 09:11:44 2012 Return-Path: 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 0970C106566C for ; Sun, 8 Jul 2012 09:11:44 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 58F858FC0A for ; Sun, 8 Jul 2012 09:11:43 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA22598; Sun, 08 Jul 2012 12:11:35 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1SnnWh-000GpF-63; Sun, 08 Jul 2012 12:11:35 +0300 Message-ID: <4FF94EC4.1060109@FreeBSD.org> Date: Sun, 08 Jul 2012 12:11:32 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120620 Thunderbird/13.0.1 MIME-Version: 1.0 To: "freebsd-acpi@freebsd.org" X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Subject: 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 09:11:44 -0000 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. Could anyone with a FreeBSD laptop and non-zero CST_CNT in FADT please test this? Thank you. -- Andriy Gapon