From owner-svn-src-all@FreeBSD.ORG Thu Apr 10 18:21:32 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F610903; Thu, 10 Apr 2014 18:21:32 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A26EB131E; Thu, 10 Apr 2014 18:21:31 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id w8so4181238qac.26 for ; Thu, 10 Apr 2014 11:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=QwF/DolX0wFXIwS9iaXH33BKT/65/YQYvoExZU2PYV0=; b=Y3600WlLIeNjxsRIblXbxSoPfcIsl1VKFs+l2I9arrgqQ6i2LO9N7T5pTMaPsbD2gZ 1wwEPI23xRiHfqyjkaETui1utNEEvcyOZCRlh04MjV8WkK4E4GIf+17sitHmjrD0HJnn wU1AuduJroyxzef0gdQfQMFTLibIRVIFFZd1pvDi8E3ijDwe5aFumxN9YDf5yjqYVxp2 oaFLYwDFYdukh3WvSP4VI+REcTMDBqSnpfPau0pacaPvstP2mf0jcc5oG2xp3XAEzXDH OjNmWeCB/bXugJ+Evl+Y7lLOmgUVo7/Ys/zHcafVjr09K9ojm+JYARo5jZAabF4njBKC 9dvA== MIME-Version: 1.0 X-Received: by 10.224.13.142 with SMTP id c14mr23145553qaa.76.1397154090809; Thu, 10 Apr 2014 11:21:30 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.50.206 with HTTP; Thu, 10 Apr 2014 11:21:30 -0700 (PDT) In-Reply-To: <201404080914.25220.jhb@freebsd.org> References: <201404080236.s382aR4W057350@svn.freebsd.org> <201404080914.25220.jhb@freebsd.org> Date: Thu, 10 Apr 2014 11:21:30 -0700 X-Google-Sender-Auth: KQ56nGzKMthShZb7vkibXt-n5pg Message-ID: Subject: Re: svn commit: r264250 - head/sys/dev/acpica From: Adrian Chadd To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 18:21:32 -0000 On 8 April 2014 06:14, John Baldwin wrote: > On Monday, April 07, 2014 10:36:27 pm Adrian Chadd wrote: >> Author: adrian >> Date: Tue Apr 8 02:36:27 2014 >> New Revision: 264250 >> URL: http://svnweb.freebsd.org/changeset/base/264250 >> >> Log: >> Add a basic set of data points which count the number of sleep entries >> that are being done by the OS. >> >> For now this'll match up with the "wakeups"; although I'll dig deeper into >> this to see if we can determine which sleep state the CPU managed to get >> into. Most things I've seen these days only expose up to C2 or C3 via >> ACPI even though the CPU goes all the way down to C6 or C7. > > No, those are actually the same thing. ACPI and Intel both use C-states for > the same thing, but the numbers don't line up. That is, Intel's C6/C7 gets > exposed to the OS as C2/C3 via ACPI. The 6/7 does matter, (I think) if you > are using monitor/mwait as I believe the value you configure for an mwait > sleep has to use Intel's number (6/7) whereas the ACPI number (2/3) is > assigned by the results of _CST or whichever object it is ACPI queries. > > All that to say that ACPI is already using Intel's C6/C7 if you have > configured your BIOS to expose it. I know that the C2/C3 states are whatever ACPI and the CPU decides to map things to. What I'm curious about is whether we can get some kind of feedback from the CPU when it wakes up about what sleep state it actually made it down to. -a