public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* idle patches for 2.6.36-rc6
@ 2010-09-29  3:47 Len Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:47 UTC (permalink / raw)
  To: linux-pm; +Cc: --suppress-from

Here is my idle queue for 2.6.36-rc6,
please let me know if you have troubles with any of these patches.

thanks,
Len Brown, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 8+ messages in thread

* idle patches for 2.6.36-rc6
@ 2010-09-29  3:49 Len Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:49 UTC (permalink / raw)
  To: linux-pm; +Cc: --suppress-from

Here is my idle queue for 2.6.36-rc6
Please let me know if you have troubles with any of these patches.

thanks,
Len Brown, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 8+ messages in thread

* idle patches for 2.6.36-rc6
@ 2010-09-29  3:53 Len Brown
  2010-09-29  3:53 ` [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang Len Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:53 UTC (permalink / raw)
  To: linux-pm

Here is my idle queue for 2.6.36-rc6.
Please let me know if you have troubles with any of these patches.

thanks,
-Len Brown, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang
  2010-09-29  3:53 idle patches for 2.6.36-rc6 Len Brown
@ 2010-09-29  3:53 ` Len Brown
  2010-09-29  3:53   ` [PATCH 2/5] cpuidle: Fix typos Len Brown
                     ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:53 UTC (permalink / raw)
  To: linux-pm; +Cc: Len Brown

From: Len Brown <len.brown@intel.com>

When the Lenovo Ideapad S10-3 is booted with HT enabled,
it hits a boot hang in the intel_idle driver.

This occurs when entering ATM-C4 for the first time,
unless BM_STS is first cleared.

acpi_idle doesn't see this because it first checks
and clears BM_STS, but it would hit the same hang
if that check were disabled.

http://bugs.meego.com/show_bug.cgi?id=7093
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/634702

Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/pci/quirks.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 89ed181..857ae01 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -163,6 +163,26 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC,	PCI_DEVICE_ID_NEC_CBUS_2,	quirk_isa_d
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC,	PCI_DEVICE_ID_NEC_CBUS_3,	quirk_isa_dma_hangs);
 
 /*
+ * Intel NM10 "TigerPoint" LPC PM1a_STS.BM_STS must be clear
+ * for some HT machines to use C4 w/o hanging.
+ */
+static void __devinit quirk_tigerpoint_bm_sts(struct pci_dev *dev)
+{
+	u32 pmbase;
+	u16 pm1a;
+
+	pci_read_config_dword(dev, 0x40, &pmbase);
+	pmbase = pmbase & 0xff80;
+	pm1a = inw(pmbase);
+
+	if (pm1a & 0x10) {
+		dev_info(&dev->dev, FW_BUG "TigerPoint LPC.BM_STS cleared\n");
+		outw(0x10, pmbase);
+	}
+}
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGP_LPC, quirk_tigerpoint_bm_sts);
+
+/*
  *	Chipsets where PCI->PCI transfers vanish or hang
  */
 static void __devinit quirk_nopcipci(struct pci_dev *dev)
-- 
1.7.3.2.g9027fa

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/5] cpuidle: Fix typos
  2010-09-29  3:53 ` [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang Len Brown
@ 2010-09-29  3:53   ` Len Brown
  2010-09-29  3:53   ` [PATCH 3/5] intel_idle: Change mode 755 => 644 Len Brown
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:53 UTC (permalink / raw)
  To: linux-pm; +Cc: Len Brown, Lucas De Marchi

From: Lucas De Marchi <lucas.de.marchi@gmail.com>

Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/cpuidle/governors/menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c
index c2408bb..f508690 100644
--- a/drivers/cpuidle/governors/menu.c
+++ b/drivers/cpuidle/governors/menu.c
@@ -80,7 +80,7 @@
  * Limiting Performance Impact
  * ---------------------------
  * C states, especially those with large exit latencies, can have a real
- * noticable impact on workloads, which is not acceptable for most sysadmins,
+ * noticeable impact on workloads, which is not acceptable for most sysadmins,
  * and in addition, less performance has a power price of its own.
  *
  * As a general rule of thumb, menu assumes that the following heuristic
-- 
1.7.3.2.g9027fa

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/5] intel_idle: Change mode 755 => 644
  2010-09-29  3:53 ` [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang Len Brown
  2010-09-29  3:53   ` [PATCH 2/5] cpuidle: Fix typos Len Brown
@ 2010-09-29  3:53   ` Len Brown
  2010-09-29  3:53   ` [PATCH 4/5] intel_idle: add missing __percpu markup Len Brown
  2010-09-29  3:53   ` [PATCH 5/5] acpi_idle: add missing \n to printk Len Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:53 UTC (permalink / raw)
  To: linux-pm; +Cc: Thomas Weber, Len Brown

From: Thomas Weber <weber@corscience.de>

Remove execution permission from source file.

Signed-off-by: Thomas Weber <weber@corscience.de>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 0 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100755 => 100644 drivers/idle/intel_idle.c

diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
old mode 100755
new mode 100644
-- 
1.7.3.2.g9027fa

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 4/5] intel_idle: add missing __percpu markup
  2010-09-29  3:53 ` [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang Len Brown
  2010-09-29  3:53   ` [PATCH 2/5] cpuidle: Fix typos Len Brown
  2010-09-29  3:53   ` [PATCH 3/5] intel_idle: Change mode 755 => 644 Len Brown
@ 2010-09-29  3:53   ` Len Brown
  2010-09-29  3:53   ` [PATCH 5/5] acpi_idle: add missing \n to printk Len Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:53 UTC (permalink / raw)
  To: linux-pm; +Cc: Len Brown, Namhyung Kim

From: Namhyung Kim <namhyung@gmail.com>

intel_idle_cpuidle_devices is a percpu pointer
but was missing __percpu markup.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/idle/intel_idle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index a10152b..96bf380 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -83,7 +83,7 @@ static unsigned int mwait_substates;
 /* Reliable LAPIC Timer States, bit 1 for C1 etc.  */
 static unsigned int lapic_timer_reliable_states;
 
-static struct cpuidle_device *intel_idle_cpuidle_devices;
+static struct cpuidle_device __percpu *intel_idle_cpuidle_devices;
 static int intel_idle(struct cpuidle_device *dev, struct cpuidle_state *state);
 
 static struct cpuidle_state *cpuidle_state_table;
-- 
1.7.3.2.g9027fa

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/5] acpi_idle: add missing \n to printk
  2010-09-29  3:53 ` [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang Len Brown
                     ` (2 preceding siblings ...)
  2010-09-29  3:53   ` [PATCH 4/5] intel_idle: add missing __percpu markup Len Brown
@ 2010-09-29  3:53   ` Len Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2010-09-29  3:53 UTC (permalink / raw)
  To: linux-pm; +Cc: Len Brown

From: Len Brown <len.brown@intel.com>

otherwise, these two lines print as one:

ACPI: acpi_idle yielding to intel_idle
ACPI: SSDT 3f5d8741 00203 (v02 PmRef  Cpu0Ist 00003000 INTL 20050624)

Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/acpi/processor_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index 1560218..347eb21 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -850,7 +850,7 @@ static int __init acpi_processor_init(void)
 		printk(KERN_DEBUG "ACPI: %s registered with cpuidle\n",
 			acpi_idle_driver.name);
 	} else {
-		printk(KERN_DEBUG "ACPI: acpi_idle yielding to %s",
+		printk(KERN_DEBUG "ACPI: acpi_idle yielding to %s\n",
 			cpuidle_get_driver()->name);
 	}
 
-- 
1.7.3.2.g9027fa

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-29  3:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29  3:53 idle patches for 2.6.36-rc6 Len Brown
2010-09-29  3:53 ` [PATCH 1/5] intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang Len Brown
2010-09-29  3:53   ` [PATCH 2/5] cpuidle: Fix typos Len Brown
2010-09-29  3:53   ` [PATCH 3/5] intel_idle: Change mode 755 => 644 Len Brown
2010-09-29  3:53   ` [PATCH 4/5] intel_idle: add missing __percpu markup Len Brown
2010-09-29  3:53   ` [PATCH 5/5] acpi_idle: add missing \n to printk Len Brown
  -- strict thread matches above, loose matches on Subject: below --
2010-09-29  3:49 idle patches for 2.6.36-rc6 Len Brown
2010-09-29  3:47 Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox