From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Ingo Molnar <mingo@elte.hu>,
Matthew Garrett <mjg59@srcf.ucam.org>,
Len Brown <lenb@kernel.org>, Thomas Gleixner <tglx@linutronix.de>,
linux-next@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-kernel@vger.kernel.org, Andi Kleen <andi@firstfloor.org>
Subject: Re: [PATCH 2/2] acpi: Disable IRQ 0 through I/O APIC for some HP systems
Date: Mon, 7 Jul 2008 20:03:47 +0200 [thread overview]
Message-ID: <200807072003.48228.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.55.0807071435160.16767@cliff.in.clinika.pl>
On Monday, 7 of July 2008, Maciej W. Rozycki wrote:
> On Mon, 7 Jul 2008, Rafael J. Wysocki wrote:
>
> > > It makes absolutely no sense and should be harmful to call
> > > clear_IO_APIC_pin(apic1, pin1) here, because both apic1 and pin1 should be
> > > equal to -1 here. If it has to be called, then I suppose the DMI matching
> > > did not work and the workaround has not been enabled.
> >
> > Do you realize that the clear_IO_APIC_pin(apic1, pin1) thing is _only_ called
> > _IF_ the DMI matching did work?
>
> Well, it is the very intent of the DMI quirk to set apic1 and pin1 both
> to -1, as a result of IRQ0 being absent from our I/O APIC interrupt
> routing table. Therefore if the quirk did indeed work, a call to
> clear_IO_APIC_pin() is useless and likely harmful as its callees don't do
> range checking (my understanding of code is it results in random poking at
> the local APIC through the FIX_APIC_BASE fixmap). There should be nothing
> to clear too, as interrupt redirection entries for all the I/O APIC inputs
> are cleared (the mask is set to 1 and the remaining fields zeroed) when
> clear_IO_APIC() is called from enable_IO_APIC() upon initialization and
> all the unused ones (not referred to from anywhere in the interrupt
> routing table) are never touched afterwards.
Sorry, the patch I posted was _instead_ of your previous patch with the quirk,
because that patch didn't work. I don't know why it didn't work, however, I
can only say it didn't work after removing the __i386__ dependency of
acpi_dmi_table[].
My patch is on top of the linux-next tree that didn't contain your patch.
So, my patch adds a quirk that sets disable_irq0_through_ioapic to 1 (this
variable is defined differently in my patch) and uses it to skip the part of
check_timer() that breaks my box.
I hope that makes things clear.
Thanks,
Rafael
next prev parent reply other threads:[~2008-07-07 18:03 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 0:12 [PATCH 2/2] acpi: Disable IRQ 0 through I/O APIC for some HP systems Maciej W. Rozycki
2008-07-01 0:17 ` Matthew Garrett
2008-07-01 8:46 ` Ingo Molnar
2008-07-01 19:58 ` Rafael J. Wysocki
2008-07-01 20:24 ` Ingo Molnar
2008-07-04 21:21 ` Rafael J. Wysocki
2008-07-06 23:02 ` Rafael J. Wysocki
2008-07-07 1:19 ` Rafael J. Wysocki
2008-07-07 7:17 ` Ingo Molnar
2008-07-07 7:36 ` Ingo Molnar
2008-07-07 12:24 ` Rafael J. Wysocki
2008-07-07 11:41 ` Maciej W. Rozycki
2008-07-07 12:23 ` Rafael J. Wysocki
2008-07-07 14:01 ` Maciej W. Rozycki
2008-07-07 18:03 ` Rafael J. Wysocki [this message]
2008-07-07 20:10 ` Maciej W. Rozycki
2008-07-07 20:31 ` Rafael J. Wysocki
2008-07-07 21:39 ` Maciej W. Rozycki
2008-07-07 22:10 ` Rafael J. Wysocki
2008-07-07 12:28 ` Rafael J. Wysocki
2008-07-07 17:10 ` Maciej W. Rozycki
2008-07-07 17:51 ` Ray Lee
2008-07-07 18:09 ` Rafael J. Wysocki
2008-07-07 19:59 ` Maciej W. Rozycki
2008-07-07 20:17 ` Rafael J. Wysocki
2008-07-07 21:38 ` Maciej W. Rozycki
2008-07-07 20:30 ` Maciej W. Rozycki
2008-07-07 3:54 ` Zhao Forrest
2008-07-07 12:34 ` Rafael J. Wysocki
2008-07-08 11:24 ` Andreas Herrmann
2008-07-08 14:39 ` Maciej W. Rozycki
2008-07-08 15:27 ` Rafael J. Wysocki
2008-07-08 16:25 ` Maciej W. Rozycki
2008-07-08 16:54 ` Rafael J. Wysocki
[not found] <fa.OuKI5CNmq3HqeBQCfWOUtrq4+oA@ifi.uio.no>
2008-07-03 5:44 ` Robert Hancock
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=200807072003.48228.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=andi@firstfloor.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=mingo@elte.hu \
--cc=mjg59@srcf.ucam.org \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).