All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Andi Kleen <ak@suse.de>
Cc: Grzegorz Chwesewicz <grzegorz.chwesewicz@chilan.com>,
	Stefan Prechtel <stefan.prechtel@googlemail.com>,
	linux-kernel@vger.kernel.org, mingo@elte.hu,
	Len Brown <lenb@kernel.org>, john stultz <johnstul@us.ibm.com>
Subject: Re: BUG lapic: Can't boot on battery (2.6.21-rc{1,2,3,4})
Date: Wed, 21 Mar 2007 13:15:38 +0100	[thread overview]
Message-ID: <1174479339.10840.59.camel@localhost.localdomain> (raw)
In-Reply-To: <1174475666.10840.44.camel@localhost.localdomain>

Stefan, Grzegorz

On Wed, 2007-03-21 at 12:14 +0100, Thomas Gleixner wrote:
> On Wed, 2007-03-21 at 11:37 +0100, Andi Kleen wrote:
> > > The BIOS/ACPI is broken and does only expose C1, which should not switch
> > > off LAPIC. The BIOS is switching into deeper C-States behind the kernels
> > > back somehow.
> > 
> > Hmm, perhaps we can check AMD && (cstate >= 2 || has a battery) ? 
> > Should be doable by looking up the battery object in ACPI
> 
> Which makes us rely on another ACPI feature. What guarantees that the
> ACPI tables are correct for this one ?

Can you please apply the patch below and add "nolapic_timer" to the
kernel command line ?

Please provide also the output of

# dmidecode

on your laptops.

Thanks,

	tglx

diff --git a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c
index 5cff797..67f8d9f 100644
--- a/arch/i386/kernel/apic.c
+++ b/arch/i386/kernel/apic.c
@@ -61,6 +61,8 @@ static int enable_local_apic __initdata = 0;
 
 /* Local APIC timer verification ok */
 static int local_apic_timer_verify_ok;
+/* Disable local APIC timer from the kernel commandline */
+static int local_apic_timer_disabled;
 
 /*
  * Debug level, exported for io_apic.c
@@ -340,6 +342,13 @@ void __init setup_boot_APIC_clock(void)
 	long delta, deltapm;
 	int pm_referenced = 0;
 
+	if (local_apic_timer_disabled) {
+		/* No broadcast on UP ! */
+		if (num_possible_cpus() > 1)
+			setup_APIC_timer();
+		return;
+	}}
+
 	apic_printk(APIC_VERBOSE, "Using local APIC timer interrupts.\n"
 		    "calibrating APIC timer ...\n");
 
@@ -1179,6 +1188,13 @@ static int __init parse_nolapic(char *arg)
 }
 early_param("nolapic", parse_nolapic);
 
+static int __init parse_disable_lapic_timer(char *arg)
+{
+	local_apic_timer_disabled = 1;
+	return 0;
+}
+early_param("nolapic_timer", parse_disable_lapic_timer);
+
 static int __init apic_set_verbosity(char *str)
 {
 	if (strcmp("debug", str) == 0)



  reply	other threads:[~2007-03-21 12:08 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 17:10 BUG lapic: Can't boot on battery (2.6.21-rc{1,2,3,4}) Stefan Prechtel
2007-03-19 17:36 ` Thomas Gleixner
2007-03-19 17:48   ` Thomas Gleixner
2007-03-19 18:53     ` Stefan Prechtel
2007-03-19 19:17       ` Stefan Prechtel
2007-03-19 19:27       ` Thomas Gleixner
2007-03-19 19:49         ` Stefan Prechtel
2007-03-19 20:04           ` Thomas Gleixner
2007-03-19 20:35             ` Stefan Prechtel
2007-03-19 20:56               ` Thomas Gleixner
2007-03-19 21:51                 ` Stefan Prechtel
2007-03-20  1:15                   ` Thomas Gleixner
2007-03-20  8:23                     ` Stefan Prechtel
2007-03-20 16:47                       ` Grzegorz Chwesewicz
2007-03-21  9:24                         ` Thomas Gleixner
2007-03-21  9:46                           ` Andi Kleen
2007-03-21 10:10                             ` Thomas Gleixner
2007-03-21 10:37                               ` Andi Kleen
2007-03-21 11:14                                 ` Thomas Gleixner
2007-03-21 12:15                                   ` Thomas Gleixner [this message]
2007-03-21 12:33                                     ` Thomas Gleixner
2007-03-21 12:42                                   ` Andi Kleen
2007-03-21 13:04                                     ` Stefan Prechtel
2007-03-21 13:15                                       ` Thomas Gleixner
2007-03-21 14:14                                       ` [PATCH] i386: disable local apic timer via command line or dmi quirk Thomas Gleixner
2007-03-21 14:09                                         ` Ingo Molnar
2007-03-21 15:14                                           ` Grzegorz Chwesewicz
2007-03-22 20:42                                             ` Stefan Prechtel
2007-03-28  3:28                                         ` Len Brown
2007-03-28  3:38                                           ` Len Brown
2007-03-28  9:13                                           ` Thomas Gleixner

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=1174479339.10840.59.camel@localhost.localdomain \
    --to=tglx@linutronix.de \
    --cc=ak@suse.de \
    --cc=grzegorz.chwesewicz@chilan.com \
    --cc=johnstul@us.ibm.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=stefan.prechtel@googlemail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.