From: Daniel Drake <dsd@gentoo.org>
To: Greg KH <gregkh@suse.de>
Cc: linux-kernel@vger.kernel.org, stable@kernel.org,
Justin Forbes <jmforbes@linuxtx.org>,
Zwane Mwaikambo <zwane@arm.linux.org.uk>,
"Theodore Ts'o" <tytso@mit.edu>,
Randy Dunlap <rdunlap@xenotime.net>,
Dave Jones <davej@redhat.com>,
Chuck Wolber <chuckw@quantumlinux.com>,
torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk,
venkatesh.pallipadi@intel.com, len.brown@intel.com
Subject: Re: [patch 10/26] ACPI: Prefer _CST over FADT for C-state capabilities
Date: Tue, 13 Dec 2005 16:00:47 +0000 [thread overview]
Message-ID: <439EF02F.8020300@gentoo.org> (raw)
In-Reply-To: <20051213082251.GK5823@kroah.com>
[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]
Greg KH wrote:
> -stable review patch. If anyone has any objections, please let us know.
>
> ------------------
> From: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
>
> Note: This ACPI standard compliance may cause regression
> on some system, if they have _CST present, but _CST value
> is bogus. "nocst" module parameter should workaround
> that regression.
>
> http://bugzilla.kernel.org/show_bug.cgi?id=5165
>
> (cherry picked from 883baf7f7e81cca26f4683ae0d25ba48f094cc08 commit)
>
> Signed-off-by: Venkatesh Pallipadi<venkatesh.pallipadi@intel.com>
> Signed-off-by: Len Brown <len.brown@intel.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> ---
> drivers/acpi/processor_idle.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Venkatesh followed up in a private email that a 3rd patch is needed to solve
the hyperthreading slowdown issue. This patch is not yet in Linus' tree (it is
in acpi-test).
Maybe we should drop these patches (10 and 12) until the 3rd patch has been
merged. I haven't been shipping the 3rd patch in Gentoo (yet) so I'm not able
to gauge its effect...
Attaching the 3rd patch anyway.
Daniel
[-- Attachment #2: p_LVL2_UP-flag-increment.patch --]
[-- Type: text/x-patch, Size: 1826 bytes --]
From: Len Brown <len.brown@intel.com>
Bug fix for bugzilla #5165 http://bugzilla.kernel.org/show_bug.cgi?id=5165
Incremental changes to earlier patch.
* Changing the polarity of plvl2_up
* Skip promotion/demotion code when not needed.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Index: linux-acpi-2.6/drivers/acpi/processor_idle.c
===================================================================
--- linux-acpi-2.6.orig/drivers/acpi/processor_idle.c
+++ linux-acpi-2.6/drivers/acpi/processor_idle.c
@@ -278,8 +278,6 @@ static void acpi_processor_idle(void)
}
}
- cx->usage++;
-
#ifdef CONFIG_HOTPLUG_CPU
/*
* Check for P_LVL2_UP flag before entering C2 and above on
@@ -287,9 +285,12 @@ static void acpi_processor_idle(void)
* detection phase, to work cleanly with logical CPU hotplug.
*/
if ((cx->type != ACPI_STATE_C1) && (num_online_cpus() > 1) &&
- !pr->flags.has_cst && acpi_fadt.plvl2_up)
- cx->type = ACPI_STATE_C1;
+ !pr->flags.has_cst && !acpi_fadt.plvl2_up)
+ cx = &pr->power.states[ACPI_STATE_C1];
#endif
+
+ cx->usage++;
+
/*
* Sleep:
* ------
@@ -378,6 +379,15 @@ static void acpi_processor_idle(void)
next_state = pr->power.state;
+#ifdef CONFIG_HOTPLUG_CPU
+ /* Don't do promotion/demotion */
+ if ((cx->type == ACPI_STATE_C1) && (num_online_cpus() > 1) &&
+ !pr->flags.has_cst && !acpi_fadt.plvl2_up) {
+ next_state = cx;
+ goto end;
+ }
+#endif
+
/*
* Promotion?
* ----------
@@ -549,7 +559,7 @@ static int acpi_processor_get_power_info
* Check for P_LVL2_UP flag before entering C2 and above on
* an SMP system.
*/
- if ((num_online_cpus() > 1) && acpi_fadt.plvl2_up)
+ if ((num_online_cpus() > 1) && !acpi_fadt.plvl2_up)
return_VALUE(-ENODEV);
#endif
next prev parent reply other threads:[~2005-12-13 16:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20051213073430.558435000@press.kroah.org>
2005-12-13 8:21 ` [patch 00/26] - stable review Greg KH
2005-12-13 8:22 ` [patch 01/26] drivers/scsi/dpt_i2o.c: fix a user-after-free Greg KH
2005-12-13 8:22 ` [patch 02/26] drivers/message/i2o/pci.c: fix a use-after-free Greg KH
2005-12-13 8:22 ` [patch 03/26] drivers/infiniband/core/mad.c: " Greg KH
2005-12-13 8:22 ` [patch 04/26] Fix crash when ptrace poking hugepage areas Greg KH
2005-12-13 8:22 ` [patch 05/26] USB: Adapt microtek driver to new scsi features Greg KH
2005-12-13 8:22 ` [patch 06/26] setkeys needs root Greg KH
2005-12-13 8:22 ` [patch 07/26] [NETLINK]: Fix processing of fib_lookup netlink messages Greg KH
2005-12-13 8:22 ` [patch 08/26] Fix listxattr() for generic security attributes Greg KH
2005-12-13 8:22 ` [patch 09/26] DVB: BUDGET CI card depends on STV0297 demodulator Greg KH
2005-12-13 15:50 ` Daniel Drake
2005-12-13 18:12 ` [stable] " Greg KH
2005-12-13 8:22 ` [patch 10/26] ACPI: Prefer _CST over FADT for C-state capabilities Greg KH
2005-12-13 16:00 ` Daniel Drake [this message]
2005-12-13 18:11 ` [stable] " Greg KH
2005-12-13 8:22 ` [patch 11/26] ACPI: fix HP nx8220 boot hang regression Greg KH
2005-12-13 8:22 ` [patch 12/26] ACPI: Add support for FADT P_LVL2_UP flag Greg KH
2005-12-13 8:23 ` [patch 13/26] 32bit integer overflow in invalidate_inode_pages2() Greg KH
2005-12-13 8:23 ` [patch 14/26] V4L/DVB (3135) Fix tuner init for Pinnacle PCTV Stereo Greg KH
2005-12-13 8:23 ` [patch 15/26] V4L/DVB: Fix analog NTSC for Thomson DTT 761X hybrid tuner Greg KH
2005-12-13 8:23 ` [patch 17/26] i82365: release all resources if no devices are found Greg KH
2005-12-13 8:23 ` [patch 18/26] [AGPGART] Fix serverworks TLB flush Greg KH
2005-12-13 8:23 ` [patch 19/26] bonding: fix feature consolidation Greg KH
2005-12-13 8:23 ` [patch 20/26] [BRIDGE]: recompute features when adding a new device Greg KH
2005-12-13 8:23 ` [patch 16/26] [ALSA] nm256: reset workaround for Latitude CSx Greg KH
2005-12-13 8:23 ` [patch 21/26] [libata] locking rewrite (== fix) Greg KH
2005-12-13 8:23 ` [patch 22/26] I8K: fix /proc reporting of blank service tags Greg KH
2005-12-13 8:23 ` [patch 23/26] ide-floppy: software eject not working with LS-120 drive Greg KH
2005-12-13 8:23 ` [patch 24/26] - stable review cciss: bug fix for hpacucli Greg KH
2005-12-13 8:23 ` [patch 25/26] cciss: bug fix for BIG_PASS_THRU Greg KH
2005-12-13 8:24 ` [patch 26/26] Add try_to_freeze to kauditd Greg KH
[not found] <F7DC2337C7631D4386A2DF6E8FB22B300567E76B@hdsmsx401.amr.corp.intel.com>
2005-12-21 18:52 ` [patch 10/26] ACPI: Prefer _CST over FADT for C-state capabilities Daniel Drake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=439EF02F.8020300@gentoo.org \
--to=dsd@gentoo.org \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=chuckw@quantumlinux.com \
--cc=davej@redhat.com \
--cc=gregkh@suse.de \
--cc=jmforbes@linuxtx.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@xenotime.net \
--cc=stable@kernel.org \
--cc=torvalds@osdl.org \
--cc=tytso@mit.edu \
--cc=venkatesh.pallipadi@intel.com \
--cc=zwane@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox