All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>,
	"Maciej W. Rozycki" <macro@linux-mips.org>,
	Andi Kleen <andi@firstfloor.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Len Brown <lenb@kernel.org>,
	Jason Vas Dias <jason.vas.dias@gmail.com>
Subject: Re: [PATCH] x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC
Date: Tue, 7 Oct 2008 06:57:57 +0200	[thread overview]
Message-ID: <20081007045757.GB6355@elte.hu> (raw)
In-Reply-To: <20081007035126.GA2929@amd.corenet.prv>


* Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:

> On Tue, Oct 07, 2008 at 05:41:32AM +0200, Ingo Molnar wrote:
> > 
> > * Andreas Herrmann <andreas.herrmann3@amd.com> wrote:
> > 
> > > So, let's work around BIOS bugs in Linux then ...
> > > 
> > > Following patch is almost untested -- especially I didn't get my hands 
> > > on one of the HP Laptops with broken DSDT.
> > [...]
> > > On some HP nx6... laptops (e.g. nx6325) BIOS reports an IRQ0 override 
> > > but the SB450 chipset is configured such that timer interrupts goe to 
> > > INT0 of IOAPIC.
> > > 
> > > Check IRQ0 routing and if it is routed to INT0 of IOAPIC skip the 
> > > timer override.
> > > 
> > > Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
> > >
> > > ---
> > >  arch/x86/kernel/early-quirks.c |   48 ++++++++++++++++++++++++++++++++++++++++
> > >  1 files changed, 48 insertions(+), 0 deletions(-)
> > 
> > very nice, thanks Andreas! Applied to tip/x86/quirks. This PCI ID based 
> > quirk should be more complete than DMI matches.
> > 
> 
> You may add 'Tested by: Dmitry Torokhov <dtor@mail.ru> on nx6115'
> It works fine here with Andreas patch applied and with Rafael's patch
> dropped.
>
> Thanks Andreas!

ok, added your Tested-by to the changelog, thanks.

I also applied the patch below to deprioritize the DMI quirks for this 
problem (without actually removing them, yet). Could you please check 
whether latest tip/master:

  http://people.redhat.com/mingo/tip.git/README

boots fine out of box and that the WARN() does not trigger?

	Ingo

--------------->
>From 8d89adf44cf750e49691ba5b744b2ad77a05e997 Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Tue, 7 Oct 2008 06:47:52 +0200
Subject: [PATCH] x86: SB450: deprioritize DMI quirks

This PCI ID based quick should be a full solution for the IRQ0 override
related slowdown problem on SB450 based systems:

  33fb0e4: x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC

Emit a warning in those cases where the DMI quirk triggers but
the PCI ID based quirk didnt.

If this warning does not trigger then we can phase out the DMI quirks.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/acpi/boot.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index c102af8..096102d 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -1421,8 +1421,16 @@ static int __init force_acpi_ht(const struct dmi_system_id *d)
  */
 static int __init dmi_ignore_irq0_timer_override(const struct dmi_system_id *d)
 {
-	pr_notice("%s detected: Ignoring BIOS IRQ0 pin2 override\n", d->ident);
-	acpi_skip_timer_override = 1;
+	/*
+	 * The ati_ixp4x0_rev() early PCI quirk should have set
+	 * the acpi_skip_timer_override flag already:
+	 */
+	if (!acpi_skip_timer_override) {
+		WARN(1, KERN_ERR "ati_ixp4x0 quirk not complete.\n");
+		pr_notice("%s detected: Ignoring BIOS IRQ0 pin2 override\n",
+			d->ident);
+		acpi_skip_timer_override = 1;
+	}
 	return 0;
 }
 


  reply	other threads:[~2008-10-07  4:58 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-05 18:36 2.6.27-rc8+ - first impressions Dmitry Torokhov
2008-10-05 18:59 ` Rafael J. Wysocki
2008-10-05 19:06   ` Dmitry Torokhov
2008-10-05 19:19     ` Rafael J. Wysocki
2008-10-05 19:27       ` Thomas Gleixner
2008-10-05 21:18       ` Dmitry Torokhov
2008-10-05 21:40         ` Parag Warudkar
2008-10-05 22:29         ` Rafael J. Wysocki
2008-10-06  6:23           ` Dmitry Torokhov
2008-10-06  9:59             ` [PATCH] x86 ACPI: Blacklist two HP machines with buggy BIOSes (Re: 2.6.27-rc8+ - first impressions) Rafael J. Wysocki
2008-10-06 14:54               ` Linus Torvalds
2008-10-06 15:00                 ` Ingo Molnar
2008-10-06 17:17                   ` Rafael J. Wysocki
2008-10-06 17:51                   ` Maciej W. Rozycki
2008-10-06 17:54                     ` Ingo Molnar
2008-10-06 20:59                     ` Andi Kleen
2008-10-06 21:39                       ` Maciej W. Rozycki
2008-10-06 22:11                         ` [PATCH] x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC Andreas Herrmann
2008-10-07  3:41                           ` Ingo Molnar
2008-10-07  3:51                             ` Dmitry Torokhov
2008-10-07  4:57                               ` Ingo Molnar [this message]
2008-10-07 11:19                                 ` Dmitry Torokhov
2008-10-07 15:25                           ` Maciej W. Rozycki
2008-10-07 20:31                           ` Rafael J. Wysocki
2008-10-06 23:10                         ` [PATCH] x86 ACPI: Blacklist two HP machines with buggy BIOSes (Re: 2.6.27-rc8+ - first impressions) Andi Kleen
2008-10-07  1:35                           ` Maciej W. Rozycki
2008-10-07  4:42                             ` Ingo Molnar
2008-10-07  5:38                             ` Andi Kleen
2008-10-07 11:45                               ` Matthew Garrett
2008-10-07 12:04                               ` Ingo Molnar
2008-10-08  8:23                       ` Peter Zijlstra
2008-10-06 17:15                 ` Rafael J. Wysocki
2008-10-06 17:54                   ` Maciej W. Rozycki
2008-10-05 19:10 ` 2.6.27-rc8+ - first impressions Arjan van de Ven
2008-10-06  6:28   ` Dmitry Torokhov
2008-10-06 19:53     ` Andreas Herrmann
2008-10-07  3:42       ` Dmitry Torokhov
2008-10-07  9:10         ` Andreas Herrmann
2008-10-07 11:37           ` Dmitry Torokhov
2008-10-07 12:07             ` Parag Warudkar
2008-10-08  1:07               ` Dmitry Torokhov
2008-10-07 13:19             ` Andreas Herrmann

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=20081007045757.GB6355@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=andreas.herrmann3@amd.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jason.vas.dias@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@linux-mips.org \
    --cc=rjw@sisk.pl \
    --cc=torvalds@linux-foundation.org \
    /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.