From owner-freebsd-acpi@FreeBSD.ORG Tue Sep 14 08:56:48 2010 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 62964106566C for ; Tue, 14 Sep 2010 08:56:48 +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 9AC5A8FC0A for ; Tue, 14 Sep 2010 08:56:47 +0000 (UTC) Received: from porto.topspin.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 LAA06825; Tue, 14 Sep 2010 11:44:46 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1OvR8A-000MAy-6k; Tue, 14 Sep 2010 11:44:46 +0300 Message-ID: <4C8F35FD.2090603@freebsd.org> Date: Tue, 14 Sep 2010 11:44:45 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100912 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: Alexander Motin References: <4C8BCAC5.5050008@root.org> <4C8C8B64.8020907@FreeBSD.org> <20100912182625.c49d3f1d.nork@FreeBSD.org> <4C8C9F06.4090505@icyb.net.ua> <20100912190537.621e357e.nork@FreeBSD.org> <20100912190952.8c0d5726.nork@FreeBSD.org> <20100912192518.e791c191.nork@FreeBSD.org> <4C8CAC01.70004@icyb.net.ua> <4C8CAD7D.50602@FreeBSD.org> <4C8CF03F.1050902@icyb.net.ua> <4C8CF412.9080601@icyb.net.ua> <4C8CF91A.4040804@FreeBSD.org> <4C8E5A5D.6000303@icyb.net.ua> In-Reply-To: <4C8E5A5D.6000303@icyb.net.ua> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: CPU C-state storange on Panasonic TOUGH BOOK CF-R9 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: Tue, 14 Sep 2010 08:56:48 -0000 on 13/09/2010 20:07 Andriy Gapon said the following: > I am also going to take a look how Linux and OpenSolaris name the C-states. Well, Linux does what you suggested, it uses index of a C-state as its name. There is one difference from our current code - if a C-state is skipped for some reason, then its index is not re-used, but the entry is marked as non-valid. So, if we skip "C2" for some reason, then "C3" will become "C2". Not so on Linux. Also, they print a type/class of a C state using C1, C2, C3 and "--" for higher/unknown types. Additionally, it seems that we do not currently have any support for Functional Fixed Hardware (FFH) way of providing C states. In this case _CST returns GAS of a register used to enter a C state with address space ID set to ACPI_ADR_SPACE_FIXED_HARDWARE (0x7f/127). Such addresses should be handled in a special way: ftp://download.intel.com/technology/IAPC/acpi/downloads/30222305.pdf Currently we simply (and silently) ignore such _CST entries. I think that this should be useful (if not necessary) with mwait. -- Andriy Gapon