From: Brad Boyer <flar@allandria.com>
To: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Linux/m68k <linux-m68k@lists.linux-m68k.org>,
Thomas Gleixner <tglx@linutronix.de>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: m68k: Convert to genirq (WIP)
Date: Fri, 26 Aug 2011 09:09:06 -0700 [thread overview]
Message-ID: <20110826160905.GA17550@cynthia.pants.nu> (raw)
In-Reply-To: <alpine.OSX.2.00.1108262117070.267@ibook.local>
On Fri, Aug 26, 2011 at 09:21:05PM +1000, Finn Thain wrote:
>
> On Fri, 26 Aug 2011, Geert Uytterhoeven wrote:
>
> > According to via_register_interrupts(), it requests both:
> >
> > if (via_alt_mapping) {
> > if (request_irq(IRQ_AUTO_1, via1_irq, 0, "software",
> > (void *)via1))
> > pr_err("Couldn't register %s interrupt\n", "software");
> > if (request_irq(IRQ_AUTO_6, via1_irq, 0, "via1", (void *)via1))
> > pr_err("Couldn't register %s interrupt\n", "via1");
> > } else {
> > if (request_irq(IRQ_AUTO_1, via1_irq, 0, "via1", (void *)via1))
> > pr_err("Couldn't register %s interrupt\n", "via1");
> > }
> >
> > Hence IRQ_AUTO_1 must be shared and we cannot use an optimized chain
> > handler for via1_irq()
>
> I'm pretty sure that the "software" request_irq can be removed. It has
> come up before --
> http://marc.info/?l=linux-mac68k&m=110973724208746&w=2
>
> Maybe Brad can shed some light on this (?)
Sorry, not really. We don't have any good documentation on how the
alternate mapping really works on those systems. Anything that has
it internally is using custom chips instead of a real VIA6522, so
it's hard to say exactly how it behaves.
The real key of the alternate mapping is to move the timer interrupt
higher than all the other hardware. This and the ADB are about all
we really need from VIA1. It's possible one of the other interrupts
we don't use is still on IRQ1. It's hard to say without trying.
I think I have a couple systems that have this hardware, but they
are ones I haven't used much. If I can find some time I'll get the
Q950 I acquired recently up and running since it should have the
alternate mapping capability.
One potential option is to just take it out and see if anything
breaks with the change. We could add it back later if we find a
use for it.
Brad Boyer
flar@allandria.com
next prev parent reply other threads:[~2011-08-26 16:09 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-28 18:32 m68k: Convert to genirq (WIP) Geert Uytterhoeven
2011-05-31 8:35 ` Geert Uytterhoeven
2011-05-31 9:50 ` Thomas Gleixner
2011-05-31 19:54 ` Geert Uytterhoeven
2011-05-31 20:10 ` Thomas Gleixner
2011-06-03 11:20 ` Finn Thain
2011-06-03 11:33 ` Geert Uytterhoeven
2011-06-05 6:27 ` Brad Boyer
2011-06-05 7:45 ` Geert Uytterhoeven
2011-08-10 9:59 ` Geert Uytterhoeven
[not found] ` <CAMuHMdXVt5+nCaCSH3+z0fsL+vhOOTgbKsOAses8OudT-1OZGQ@mail.gmail.com>
2011-08-10 10:53 ` Finn Thain
2011-08-10 16:19 ` Brad Boyer
2011-08-26 9:52 ` Geert Uytterhoeven
2011-08-26 11:21 ` Finn Thain
2011-08-26 11:32 ` Geert Uytterhoeven
2011-08-26 16:09 ` Brad Boyer [this message]
2011-06-04 17:56 ` Geert Uytterhoeven
[not found] ` <BANLkTimebx56-Wb5JPWxYVnND9gG8OVdsQ@mail.gmail.com>
2011-06-15 19:44 ` Geert Uytterhoeven
[not found] ` <BANLkTin+gp2Cnxj8kHbHRmuoEgyDR8YeaQ@mail.gmail.com>
2011-06-16 19:30 ` Geert Uytterhoeven
2011-06-16 20:03 ` Thomas Gleixner
2011-06-17 3:45 ` Finn Thain
[not found] ` <alpine.OSX.2.00.1106171337170.191@ibook.intranet>
2011-06-17 5:01 ` Geert Uytterhoeven
2011-08-08 13:08 ` Geert Uytterhoeven
[not found] ` <CAMuHMdWcB2JmfxPz=bs3TM2eTPYWnzjFeXw0PRXTTcPeHBQPPQ@mail.gmail.com>
2011-08-10 10:48 ` Finn Thain
2011-06-16 19:45 ` Geert Uytterhoeven
2011-06-16 21:10 ` Michael Schmitz
2011-06-17 17:22 ` Andreas Schwab
[not found] ` <BANLkTi=3L3+3UzAwcybqvNxQXSKf7DERYQ@mail.gmail.com>
2011-06-17 17:25 ` Andreas Schwab
[not found] ` <m2sjr8gyp0.fsf@igel.home>
2011-06-19 10:17 ` Geert Uytterhoeven
[not found] ` <BANLkTikxzQSXLfr81q+b1rScW8YCcoJZRQ@mail.gmail.com>
2011-06-19 11:19 ` Andreas Schwab
[not found] ` <m2mxhejcgm.fsf@igel.home>
2011-06-19 13:36 ` Geert Uytterhoeven
[not found] ` <BANLkTimWnDmKx2bh7T+V_x-pPj47faLJfw@mail.gmail.com>
2011-06-19 13:58 ` Andreas Schwab
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=20110826160905.GA17550@cynthia.pants.nu \
--to=flar@allandria.com \
--cc=fthain@telegraphics.com.au \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.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