[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140914084511.GU12361@n2100.arm.linux.org.uk>
Date: Sun, 14 Sep 2014 09:45:11 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Daniel Thompson <daniel.thompson@...aro.org>
Cc: linaro-kernel@...ts.linaro.org, patches@...aro.org,
Catalin Marinas <catalin.marinas@....com>,
linux-kernel@...r.kernel.org, John Stultz <john.stultz@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Sumit Semwal <sumit.semwal@...aro.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler
On Sun, Sep 14, 2014 at 07:36:31AM +0100, Daniel Thompson wrote:
> > - if (!relinquish)
> > + if (!relinquish) {
> > + /* Restore default handler and registers */
> > + local_fiq_disable();
> > + set_fiq_regs(&dfl_fiq_regs);
>
> This variable was declared as def_fiq_regs .
Yep.
> > set_fiq_handler(&no_fiq_insn, sizeof(no_fiq_insn));
> > + local_fiq_enable();
> > +
> > + /* FIXME: notify irq controller to standard enable FIQs */
>
> I don't understand what we need to tell the irq controller at this point.
>
> If we do want to mask sources of FIQ from arch code then in the case of
> IPI_CPU_BACKTRACE we might be better off disabling it at point of
> generation than at the interrupt controller (to avoid the long timeout).
The point is, when a platform decides that it wants to insert its own
/fast/ interrupt handler into the vector, our default one is moved out
of the way. Those fast interrupt handlers assume that they are the
only user of FIQ (since only one fast interrupt handler routine can be
in place at any one time.) So, it's not going to expect to receive any
other FIQs other than the one(s) it's written for.
So, when the platform gives up the FIQ vector, and we restore the
default FIQ code, we need to make sure that the FIQ sources for that
code are re-enabled.
Yes, you may not like this, and you may want to turn FIQ into a sprawling
mess with interrupt source demux and such like, but that's not really on.
The clue is in the name. *Fast*. On certain platforms, it gets used for
time critical activities, and it being low latency is an absolute must.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists