From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Van Maren, Kevin" <kevin.vanmaren@unisys.com>
Cc: "Protasevich, Natalie" <Natalie.Protasevich@unisys.com>,
"''William Lee Irwin III' '" <wli@holomorphy.com>,
"''Christoph Hellwig' '" <hch@infradead.org>,
"''James Cleverdon' '" <jamesclv@us.ibm.com>,
"\"''Pallipadi, Venkatesh' \"'" <venkatesh.pallipadi@intel.com>,
"''Linux Kernel' '" <linux-kernel@vger.kernel.org>,
"''Martin Bligh' '" <mbligh@us.ibm.com>,
"''John Stultz' '" <johnstul@us.ibm.com>,
"''Nakajima, Jun' '" <jun.nakajima@intel.com>,
"''Mallick, Asit K' '" <asit.k.mallick@intel.com>,
"''Saxena, Sunil' '" <sunil.saxena@intel.com>,
"''Andi Kleen' '" <ak@suse.de>,
"''Hubert Mantel' '" <mantel@suse.de>
Subject: RE: [PATCH][2.4] generic cluster APIC support for systems with m ore than 8 CPUs
Date: 27 Dec 2002 23:38:21 +0000 [thread overview]
Message-ID: <1041032301.1157.18.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <3FAD1088D4556046AEC48D80B47B478C0101F568@usslc-exch-4.slc.unisys.com>
On Thu, 2002-12-26 at 02:18, Van Maren, Kevin wrote:
> If you have a suggestion on how to do that, I am sure we would
> all be grateful to hear it.
>
> Note that the reason the code _exists_ is because the interrupt
> lines are physically connected to different pins on the APIC
> than they are in "normal" systems. The legitimacy of that
> decision is not up for debate at this point -- that is the way
> the system was built, and Linux needs to deal with it in
> order to run on it.
The IRQ number is a cookie. Linux knows that on x86 ISA IRQ is mapped
0-15 and the ISA drivers sometimes know about this stuff too. What
exception number comes back off the processor and what function you call
is really quite unrelated. So request/free_irq functionality in the i386
layer can happily remap the irqs back and forth so ISA comes 0-15, and
keep the drivers and core oblivious to this.
> So the PCI interrupts are in the table at IRQs < 16 (because
> it tells which pin is being used), which makes it difficult
> to tell whether a PCI or an ISA interrupt is being requested
> if you tell the code "irq 3": if ISA, you need to use pin f(X),
> while if PCI, you use pin X.
Internal detail - doesnt matter for how you number IRQ's outside of your
arch/i386/kernel internal bits
> ACPI should have the ISA redirection information, but as
> Natalie was saying, drivers hard-code the ISA vectors without
> checking the ACPI info.
ACPI is basically PC specific gunge. Drivers don't and should not know
about it.
> I suppose it would be possible to detect the ES7000 and have
> the kernel re-write the PCI vectors (say, add 16 to them all)
Linux doesn't touch the PCI interrupt line values or really care about
them, so thats trivial to do.
> and then re-mangle them based on a "< 16" criteria.
> But I don't believe that is a "clean" solution either
> (and would break when the ACPI isa redirection table is
> properly used).
No because any ACPI ISA redirect must be done portably, so used to keep
the ISA irq's logically 0-15 on x86
>
> Anyway, this was the reason for the "severe irq override"
> comment by Natalie.
I understand why it was done - I think its the wrong abstraction as it
pushes too much board knowledge into drivers and into places that make
assumptions about ISA (a legacy of Linux original design being for ISA
PC)
next prev parent reply other threads:[~2002-12-27 23:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-26 2:18 Van Maren, Kevin
2002-12-27 23:38 ` Alan Cox [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-06 18:58 Protasevich, Natalie
2003-01-08 14:53 ` Alan Cox
2002-12-26 1:14 Protasevich, Natalie
2002-12-27 23:39 ` Alan Cox
2002-12-23 7:29 Kamble, Nitin A
2002-12-23 7:52 ` Martin J. Bligh
2002-12-23 9:46 ` Zwane Mwaikambo
2002-12-23 15:30 ` Martin J. Bligh
[not found] <3FAD1088D4556046AEC48D80B47B478C1AEC75@usslc-exch-4.slc.unisys. com>
2002-12-22 20:41 ` Protasevich, Natalie
2002-12-22 20:52 ` Martin J. Bligh
2002-12-22 6:19 Pallipadi, Venkatesh
2002-12-22 6:39 ` William Lee Irwin III
2002-12-22 17:21 ` Martin J. Bligh
2002-12-22 17:23 ` Martin J. Bligh
2002-12-22 4:00 Pallipadi, Venkatesh
2002-12-22 4:05 ` Martin J. Bligh
2002-12-20 22:57 Protasevich, Natalie
2002-12-20 23:33 ` William Lee Irwin III
2002-12-25 21:41 ` Alan Cox
[not found] <3FAD1088D4556046AEC48D80B47B478C0101F55D@usslc-exch-4.slc.unisy s.com>
2002-12-20 15:46 ` Van Maren, Kevin
2002-12-20 16:30 ` Martin J. Bligh
2002-12-20 17:16 ` William Lee Irwin III
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=1041032301.1157.18.camel@dhcp22.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Natalie.Protasevich@unisys.com \
--cc=ak@suse.de \
--cc=asit.k.mallick@intel.com \
--cc=hch@infradead.org \
--cc=jamesclv@us.ibm.com \
--cc=johnstul@us.ibm.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.vanmaren@unisys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mantel@suse.de \
--cc=mbligh@us.ibm.com \
--cc=sunil.saxena@intel.com \
--cc=venkatesh.pallipadi@intel.com \
--cc=wli@holomorphy.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®