[ltp] (fwd) [PATCH] Enable bit 11 in _PDC to advertise hw coord

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Sun, 8 Feb 2009 10:14:35 -0200


--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

This patch is known to help reduce overhead on the X60, and it is
probably usefull for all Lenovo Laptops, and maybe even on the IBM
ones...

It will be in one of the next stable kernel updates, but here it is in
advance for anyone that wants to add it early to their kernels...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

--ibTvN161/egqYuK8
Content-Type: message/rfc822
Content-Disposition: inline

X-Original-To: hmh@khazad-dum.debian.net
Delivered-To: hmh@khazad-dum.debian.net
Received: from localhost (localhost [127.0.0.1])
	by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 62DC82807F
	for <hmh@khazad-dum.debian.net>; Mon,  2 Feb 2009 17:58:26 -0200 (BRST)
X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net
Received: from khazad-dum.debian.net ([127.0.0.1])
	by localhost (khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id XbK9+UNG5Z9H for <hmh@khazad-dum.debian.net>;
	Mon,  2 Feb 2009 17:58:25 -0200 (BRST)
Received: by khazad-dum.debian.net (Postfix, from userid 1000)
	id 87DFD2824E; Mon,  2 Feb 2009 17:58:25 -0200 (BRST)
Received: from mail.messagingengine.com (66.111.4.51) by
  khazad-dum.debian.net with IMAP4-SSL; 02 Feb 2009 19:58:25 -0000
Received: from compute1.internal (compute1.internal [10.202.2.41])
	 by store45m.internal (Cyrus v2.3.13-fmsvn17841-5c1c69c4) with LMTPA;
	 Mon, 02 Feb 2009 14:57:26 -0500
X-Sieve: CMU Sieve 2.3
X-Spam-source: IP='209.132.176.167', Host='vger.kernel.org', Country='US',
  FromHeader='com', MailFrom='org'
X-Spam-charsets: plain='us-ascii'
X-Delivered-to: hmh@hmh.eng.br
Received: from mx5.fastmail.fm ([10.202.2.204])
  by compute1.internal (LMTPProxy); Mon, 02 Feb 2009 14:57:26 -0500
Received: from vger.kernel.org (vger.kernel.org [209.132.176.167])
	by mx5.fastmail.fm (Postfix) with ESMTP id 0A78467ECD
	for <hmh@hmh.eng.br>; Mon,  2 Feb 2009 14:57:25 -0500 (EST)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753140AbZBBT5W (ORCPT <rfc822;hmh@hmh.eng.br>);
	Mon, 2 Feb 2009 14:57:22 -0500
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753188AbZBBT5W
	(ORCPT <rfc822;linux-acpi-outgoing>); Mon, 2 Feb 2009 14:57:22 -0500
Received: from mga14.intel.com ([143.182.124.37]:61297 "EHLO mga14.intel.com"
	rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP
	id S1753140AbZBBT5W (ORCPT <rfc822;linux-acpi@vger.kernel.org>);
	Mon, 2 Feb 2009 14:57:22 -0500
Received: from azsmga001.ch.intel.com ([10.2.17.19])
  by azsmga102.ch.intel.com with ESMTP; 02 Feb 2009 11:57:18 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="4.37,366,1231142400"; 
   d="scan'208";a="106253930"
Received: from linux-os.sc.intel.com ([172.25.110.8])
  by azsmga001.ch.intel.com with ESMTP; 02 Feb 2009 11:57:18 -0800
Received: by linux-os.sc.intel.com (Postfix, from userid 47009)
	id 10F4A28006; Mon,  2 Feb 2009 11:57:18 -0800 (PST)
Date: Mon, 2 Feb 2009 11:57:18 -0800
From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
To: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org, Jens Axboe <jens.axboe@oracle.com>,
	Chris Mason <chris.mason@oracle.com>
Subject: [PATCH] Enable bit 11 in _PDC to advertise hw coord
Message-ID: <20090202195717.GA24510@linux-os.sc.intel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Sender: linux-acpi-owner@vger.kernel.org
Precedence: bulk
List-ID: <linux-acpi.vger.kernel.org>
X-Mailing-List: linux-acpi@vger.kernel.org


Bit 11 in intel PDC definitions is meant for OS capability to handle
hardware coordination of P-states. In Linux we have always supported
hwardware coordination of P-states. Just let the BIOSes know that we
support it, by setting this bit.

Some BIOSes use this bit to choose between hardware or software coordination
and without this change below, BIOSes switch to software coordination, which
is not very optimal in terms of power consumption and extra wakeups from idle.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

---
 include/acpi/pdc_intel.h |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6/include/acpi/pdc_intel.h
===================================================================
--- linux-2.6.orig/include/acpi/pdc_intel.h	2009-01-20 16:11:20.000000000 -0800
+++ linux-2.6/include/acpi/pdc_intel.h	2009-02-02 10:32:06.000000000 -0800
@@ -14,6 +14,7 @@
 #define ACPI_PDC_SMP_T_SWCOORD		(0x0080)
 #define ACPI_PDC_C_C1_FFH		(0x0100)
 #define ACPI_PDC_C_C2C3_FFH		(0x0200)
+#define ACPI_PDC_SMP_P_HWCOORD		(0x0800)
 
 #define ACPI_PDC_EST_CAPABILITY_SMP	(ACPI_PDC_SMP_C1PT | \
 					 ACPI_PDC_C_C1_HALT | \
@@ -22,6 +23,7 @@
 #define ACPI_PDC_EST_CAPABILITY_SWSMP	(ACPI_PDC_SMP_C1PT | \
 					 ACPI_PDC_C_C1_HALT | \
 					 ACPI_PDC_SMP_P_SWCOORD | \
+					 ACPI_PDC_SMP_P_HWCOORD | \
 					 ACPI_PDC_P_FFH)
 
 #define ACPI_PDC_C_CAPABILITY_SMP	(ACPI_PDC_SMP_C2C3  | \
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--ibTvN161/egqYuK8--