public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI patches for 2.6.31-rc0 - part 3
@ 2009-09-27  8:32 Len Brown
  2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
  2009-09-27 11:10 ` ACPI patches for 2.6.31-rc0 - part 3 Mattia Dongili
  0 siblings, 2 replies; 8+ messages in thread
From: Len Brown @ 2009-09-27  8:32 UTC (permalink / raw)
  To: linux-acpi

please speak up if you disagree these should merge upstream.

thanks,
Len Brown, Intel Open Source Technology Center


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

* [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem
  2009-09-27  8:32 ACPI patches for 2.6.31-rc0 - part 3 Len Brown
@ 2009-09-27  8:32 ` Len Brown
  2009-09-27  8:32   ` [PATCH 2/5] ACPI: Clarify resource conflict message Len Brown
                     ` (3 more replies)
  2009-09-27 11:10 ` ACPI patches for 2.6.31-rc0 - part 3 Mattia Dongili
  1 sibling, 4 replies; 8+ messages in thread
From: Len Brown @ 2009-09-27  8:32 UTC (permalink / raw)
  To: linux-acpi; +Cc: Henrique de Moraes Holschuh, Len Brown

From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>

Fix this problem when CONFIG_THINKPAD_ACPI_HOTKEY_POLL is undefined:

  CHECK   drivers/platform/x86/thinkpad_acpi.c
drivers/platform/x86/thinkpad_acpi.c:1968:21: error: not an lvalue
  CC [M]  drivers/platform/x86/thinkpad_acpi.o
drivers/platform/x86/thinkpad_acpi.c: In function 'tpacpi_hotkey_driver_mask_set':
drivers/platform/x86/thinkpad_acpi.c:1968: error: lvalue required as left operand of assignment

Reported-by: Noah Dain <noahdain@gmail.com>
Reported-by: Audrius Kazukauskas <audrius@neutrino.lt>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/platform/x86/thinkpad_acpi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 3910f2f..d93108d 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -2235,7 +2235,9 @@ static int tpacpi_hotkey_driver_mask_set(const u32 mask)
 
 	HOTKEY_CONFIG_CRITICAL_START
 	hotkey_driver_mask = mask;
+#ifdef CONFIG_THINKPAD_ACPI_HOTKEY_POLL
 	hotkey_source_mask |= (mask & ~hotkey_all_mask);
+#endif
 	HOTKEY_CONFIG_CRITICAL_END
 
 	rc = hotkey_mask_set((hotkey_acpi_mask | hotkey_driver_mask) &
-- 
1.6.0.6


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

* [PATCH 2/5] ACPI: Clarify resource conflict message
  2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
@ 2009-09-27  8:32   ` Len Brown
  2009-09-27  8:32   ` [PATCH 3/5] ACPI: fix Compaq Evo N800c (Pentium 4m) boot hang regression Len Brown
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2009-09-27  8:32 UTC (permalink / raw)
  To: linux-acpi; +Cc: Jean Delvare, Thomas Renninger, Alan Jenkins, Len Brown

From: Jean Delvare <jdelvare@suse.de>

The message "ACPI: Device needs an ACPI driver" is misleading. The
device _may_ need an ACPI driver, if the BIOS implemented a custom
API for the device in question (which, AFAIK, can't be checked.) If
not, then either a generic ACPI driver may be used (for example
"thermal"), or nothing can be done (other than a white list).

I propose to reword the message to:

ACPI: If an ACPI driver is available for this device, you should use
it instead of the native driver

which I think is more correct. Comments and suggestions welcome.

I also added a message warning about possible problems and system
instability when users pass acpi_enforce_resources=lax, as suggested
by Len.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Thomas Renninger <trenn@suse.de>
Cc: Alan Jenkins <sourcejedi.lkml@googlemail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/acpi/osl.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 5633b86..7c1c59e 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1161,7 +1161,13 @@ int acpi_check_resource_conflict(struct resource *res)
 			       res_list_elem->name,
 			       (long long) res_list_elem->start,
 			       (long long) res_list_elem->end);
-			printk(KERN_INFO "ACPI: Device needs an ACPI driver\n");
+			if (acpi_enforce_resources == ENFORCE_RESOURCES_LAX)
+				printk(KERN_NOTICE "ACPI: This conflict may"
+				       " cause random problems and system"
+				       " instability\n");
+			printk(KERN_INFO "ACPI: If an ACPI driver is available"
+			       " for this device, you should use it instead of"
+			       " the native driver\n");
 		}
 		if (acpi_enforce_resources == ENFORCE_RESOURCES_STRICT)
 			return -EBUSY;
-- 
1.6.0.6


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

* [PATCH 3/5] ACPI: fix Compaq Evo N800c (Pentium 4m) boot hang regression
  2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
  2009-09-27  8:32   ` [PATCH 2/5] ACPI: Clarify resource conflict message Len Brown
@ 2009-09-27  8:32   ` Len Brown
  2009-09-27  8:32   ` [PATCH 4/5] ACPI: Kill overly verbose "power state" log messages Len Brown
  2009-09-27  8:32   ` [PATCH 5/5] ACPI: IA64=y ACPI=n build fix Len Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2009-09-27  8:32 UTC (permalink / raw)
  To: linux-acpi; +Cc: Zhao Yakui, Len Brown

From: Zhao Yakui <yakui.zhao@intel.com>

Don't disable ARB_DISABLE when the familary ID is 0x0F.

http://bugzilla.kernel.org/show_bug.cgi?id=14211

This was a 2.6.31 regression, and so this patch
needs to be applied to 2.6.31.stable

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 arch/x86/kernel/acpi/cstate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c
index 8c44c23..59cdfa4 100644
--- a/arch/x86/kernel/acpi/cstate.c
+++ b/arch/x86/kernel/acpi/cstate.c
@@ -48,7 +48,7 @@ void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
 	 * P4, Core and beyond CPUs
 	 */
 	if (c->x86_vendor == X86_VENDOR_INTEL &&
-	    (c->x86 > 0x6 || (c->x86 == 6 && c->x86_model >= 14)))
+	    (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 14)))
 			flags->bm_control = 0;
 }
 EXPORT_SYMBOL(acpi_processor_power_init_bm_check);
-- 
1.6.0.6


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

* [PATCH 4/5] ACPI: Kill overly verbose "power state" log messages
  2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
  2009-09-27  8:32   ` [PATCH 2/5] ACPI: Clarify resource conflict message Len Brown
  2009-09-27  8:32   ` [PATCH 3/5] ACPI: fix Compaq Evo N800c (Pentium 4m) boot hang regression Len Brown
@ 2009-09-27  8:32   ` Len Brown
  2009-09-27  8:32   ` [PATCH 5/5] ACPI: IA64=y ACPI=n build fix Len Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2009-09-27  8:32 UTC (permalink / raw)
  To: linux-acpi; +Cc: Roland Dreier, Roland Dreier, Len Brown

From: Roland Dreier <rdreier@cisco.com>

I was recently lucky enough to get a 64-CPU system, so my kernel log
ends up with 64 lines like:

    ACPI: CPU0 (power states: C1[C1] C2[C3])

This is pretty useless clutter because this info is already available
after boot from both /sys/devices/system/cpu/cpu*/cpuidle/state?/ as
well as /proc/acpi/processor/CPU*/power.

So just delete the code that prints the C-states in processor_idle.c.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/acpi/processor_idle.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index cc61a62..706eacf 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -1214,13 +1214,6 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
 		acpi_processor_setup_cpuidle(pr);
 		if (cpuidle_register_device(&pr->power.dev))
 			return -EIO;
-
-		printk(KERN_INFO PREFIX "CPU%d (power states:", pr->id);
-		for (i = 1; i <= pr->power.count; i++)
-			if (pr->power.states[i].valid)
-				printk(" C%d[C%d]", i,
-				       pr->power.states[i].type);
-		printk(")\n");
 	}
 #ifdef CONFIG_ACPI_PROCFS
 	/* 'power' [R] */
-- 
1.6.0.6


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

* [PATCH 5/5] ACPI: IA64=y ACPI=n build fix
  2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
                     ` (2 preceding siblings ...)
  2009-09-27  8:32   ` [PATCH 4/5] ACPI: Kill overly verbose "power state" log messages Len Brown
@ 2009-09-27  8:32   ` Len Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2009-09-27  8:32 UTC (permalink / raw)
  To: linux-acpi; +Cc: Len Brown

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

ia64's sim_defconfig uses CONFIG_ACPI=n
which now #define's acpi_disabled in <linux/acpi.h>

So we shouldn't re-define it here in <asm/acpi.h>

Signed-off-by: Len Brown <len.brown@intel.com>
---
 arch/ia64/include/asm/acpi.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/include/asm/acpi.h b/arch/ia64/include/asm/acpi.h
index 0f82cc2..91df968 100644
--- a/arch/ia64/include/asm/acpi.h
+++ b/arch/ia64/include/asm/acpi.h
@@ -89,10 +89,12 @@ ia64_acpi_release_global_lock (unsigned int *lock)
 #define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq)				\
 	((Acq) = ia64_acpi_release_global_lock(&facs->global_lock))
 
+#ifdef	CONFIG_ACPI
 #define acpi_disabled 0	/* ACPI always enabled on IA64 */
 #define acpi_noirq 0	/* ACPI always enabled on IA64 */
 #define acpi_pci_disabled 0 /* ACPI PCI always enabled on IA64 */
 #define acpi_strict 1	/* no ACPI spec workarounds on IA64 */
+#endif
 #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */
 static inline void disable_acpi(void) { }
 
-- 
1.6.0.6


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

* Re: ACPI patches for 2.6.31-rc0 - part 3
  2009-09-27  8:32 ACPI patches for 2.6.31-rc0 - part 3 Len Brown
  2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
@ 2009-09-27 11:10 ` Mattia Dongili
  2009-09-28  3:25   ` Len Brown
  1 sibling, 1 reply; 8+ messages in thread
From: Mattia Dongili @ 2009-09-27 11:10 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, malattia

On Sun, Sep 27, 2009 at 04:32:40AM -0400, Len Brown wrote:
> please speak up if you disagree these should merge upstream.

Len,
Apologies if I'm being too insistent but I still can't see the
sony-laptop patches being applied, is there something wrong with them?

http://patchwork.kernel.org/project/linux-acpi/list/?=Mattia+Dongili&submitter=1375

Cc-ing my other email email address in case linux.it still bounces your
emails.
-- 
mattia
:wq!

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

* Re: ACPI patches for 2.6.31-rc0 - part 3
  2009-09-27 11:10 ` ACPI patches for 2.6.31-rc0 - part 3 Mattia Dongili
@ 2009-09-28  3:25   ` Len Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Len Brown @ 2009-09-28  3:25 UTC (permalink / raw)
  To: Mattia Dongili; +Cc: linux-acpi, malattia

> Apologies if I'm being too insistent but I still can't see the
> sony-laptop patches being applied, is there something wrong with them?
> 
> http://patchwork.kernel.org/project/linux-acpi/list/?=Mattia+Dongili&submitter=1375

Thanks for the ping, Mattia,

They look fine, and they're in now.
Was traveling during that merge window and dropped a couple of bits...

thanks,
Len Brown, Intel Open Source Technology Center


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

end of thread, other threads:[~2009-09-28  3:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-27  8:32 ACPI patches for 2.6.31-rc0 - part 3 Len Brown
2009-09-27  8:32 ` [PATCH 1/5] thinkpad-acpi: fix CONFIG_THINKPAD_ACPI_HOTKEY_POLL build problem Len Brown
2009-09-27  8:32   ` [PATCH 2/5] ACPI: Clarify resource conflict message Len Brown
2009-09-27  8:32   ` [PATCH 3/5] ACPI: fix Compaq Evo N800c (Pentium 4m) boot hang regression Len Brown
2009-09-27  8:32   ` [PATCH 4/5] ACPI: Kill overly verbose "power state" log messages Len Brown
2009-09-27  8:32   ` [PATCH 5/5] ACPI: IA64=y ACPI=n build fix Len Brown
2009-09-27 11:10 ` ACPI patches for 2.6.31-rc0 - part 3 Mattia Dongili
2009-09-28  3:25   ` Len Brown

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