mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: "Luiz Fernando N. Capitulino" <lcapitulino@mandriva.com.br>
Cc: Dmitry Nezhevenko <dion@inhex.net>,
	herton@mandriva.com.br,
	Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.27-rc5 doesn't boot on a Pavilion laptop
Date: Wed, 3 Sep 2008 20:40:55 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.1.10.0809032030271.3243@apollo.tec.linutronix.de> (raw)
In-Reply-To: <20080903143653.68bb58df@doriath.conectiva>

On Wed, 3 Sep 2008, Luiz Fernando N. Capitulino wrote:
> | Find a debug patch below, which looks at the two functions which might
> | loop forver under certain conditions. Does one of the checks hit ?
> 
>  I can actually boot with this patch. Was this intended?

Yes. That was the only point, where a hard hang could happen.
 
>  As the dmesg has various WARN_ON() outputs I'm attaching it, this is
> the first one:
> 
> """
> PCI: Using ACPI for IRQ routing
> DMAR:parse DMAR table failure.
> hpet0: at MMIO 0xfed00000, IRQs 2, 8, 31
> hpet0: 3 32-bit timers, 25000000 Hz
> Switched to high resolution mode on CPU 0
>
> tick_broadcast_set_event is stuck f09fa64 f0a01e4

Hmm, so we fail to force program that HPET with the standard minimum
delta.

I now see why this is happening and it is happening only on systems
with a fast HPET. Your's running 25MHz, so the delta is only 1.92
usec. I was staring at lots of those bugreports without noticing the
frequency.

Sigh. The idea to take a fixed number of HPET cycles as the minimum
was not really brilliant it seems.

Does the patch below help ? Keep the debug patch applied, as we can
see whether the check triggers or not.

Thanks,

	tglx
---
 arch/x86/kernel/hpet.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/arch/x86/kernel/hpet.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/hpet.c
+++ linux-2.6/arch/x86/kernel/hpet.c
@@ -210,8 +210,8 @@ static void hpet_legacy_clockevent_regis
 	/* Calculate the min / max delta */
 	hpet_clockevent.max_delta_ns = clockevent_delta2ns(0x7FFFFFFF,
 							   &hpet_clockevent);
-	hpet_clockevent.min_delta_ns = clockevent_delta2ns(0x30,
-							   &hpet_clockevent);
+	/* 5 usec minimum reprogramming delta. */
+	hpet_clockevent.min_delta_ns = 5000;
 
 	/*
 	 * Start hpet with the boot cpu mask and make it


  reply	other threads:[~2008-09-03 18:41 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 19:35 Luiz Fernando N. Capitulino
2008-09-02 20:18 ` Thomas Gleixner
2008-09-02 20:40   ` Diego Woitasen
2008-09-03 13:38     ` Luiz Fernando N. Capitulino
2008-09-02 20:55   ` Luiz Fernando N. Capitulino
2008-09-03 10:04     ` Thomas Gleixner
2008-09-03 13:41       ` Luiz Fernando N. Capitulino
2008-09-03 14:36         ` Thomas Gleixner
2008-09-03 15:15           ` Thomas Gleixner
2008-09-03 16:40             ` Luiz Fernando N. Capitulino
2008-09-03 16:44             ` Dmitry Nezhevenko
2008-09-03 17:05               ` Thomas Gleixner
2008-09-03 17:36                 ` Luiz Fernando N. Capitulino
2008-09-03 18:40                   ` Thomas Gleixner [this message]
2008-09-03 19:01                     ` Dmitry Nezhevenko
2008-09-03 19:08                       ` Thomas Gleixner
2008-09-03 19:21                         ` Dmitry Nezhevenko
2008-09-03 19:35                           ` Thomas Gleixner
2008-09-03 19:07                     ` Luiz Fernando N. Capitulino
2008-09-03 19:10                       ` Thomas Gleixner
2008-09-03 19:36                         ` Luiz Fernando N. Capitulino
2008-09-03 17:54                 ` Dmitry Nezhevenko
2008-09-03 18:58                   ` Thomas Gleixner
2008-09-03 16:38           ` Luiz Fernando N. Capitulino

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=alpine.LFD.1.10.0809032030271.3243@apollo.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=dion@inhex.net \
    --cc=herton@mandriva.com.br \
    --cc=lcapitulino@mandriva.com.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikhail.kshevetskiy@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®