* 405 Critical Interrupts
@ 2003-11-26 16:28 Felix Domke
2003-11-26 20:48 ` Matt Porter
0 siblings, 1 reply; 3+ messages in thread
From: Felix Domke @ 2003-11-26 16:28 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
i need to have a low-latency interrupt on a 405-based chip with linux 2.4.
Did anybody yet worked on this?
I thought about routing the CriticalInterrupt pretty much the same way
as the HardwareInterrupt, but with disabling MSR_CE. MSR_CE would be
enabled then even in (normal) interrupts, we probably have to add a
__crit_cli and __save_and_crit_cli as someone already suggested.
Does CRIT_EXCEPTION work? Is do_IRQ reentrant? Should i use the same
interrupt processing as a normal hardware interrupt, with the exception
that only "critical"-flagged interrupts are processed?
Any suggestions?
The background: the IBM-STB045xx's capture port, which we use for
IR-decoding, doesn't have any buffering, so when a time-consuming
interrupt is processed (PIO network, maybe PIO ide), we miss IR cycles.
Felix
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 405 Critical Interrupts
2003-11-26 16:28 405 Critical Interrupts Felix Domke
@ 2003-11-26 20:48 ` Matt Porter
2003-11-27 2:12 ` Takeharu KATO
0 siblings, 1 reply; 3+ messages in thread
From: Matt Porter @ 2003-11-26 20:48 UTC (permalink / raw)
To: Felix Domke; +Cc: linuxppc-embedded
On Wed, Nov 26, 2003 at 05:28:37PM +0100, Felix Domke wrote:
> I thought about routing the CriticalInterrupt pretty much the same way
> as the HardwareInterrupt, but with disabling MSR_CE. MSR_CE would be
> enabled then even in (normal) interrupts, we probably have to add a
> __crit_cli and __save_and_crit_cli as someone already suggested.
>
> Does CRIT_EXCEPTION work? Is do_IRQ reentrant? Should i use the same
> interrupt processing as a normal hardware interrupt, with the exception
> that only "critical"-flagged interrupts are processed?
>
> Any suggestions?
You could backport the critical exception handling code from 2.6.
-Matt
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 405 Critical Interrupts
2003-11-26 20:48 ` Matt Porter
@ 2003-11-27 2:12 ` Takeharu KATO
0 siblings, 0 replies; 3+ messages in thread
From: Takeharu KATO @ 2003-11-27 2:12 UTC (permalink / raw)
To: Matt Porter; +Cc: Felix Domke, linuxppc-embedded
Dear Domke :
>>Does CRIT_EXCEPTION work? Is do_IRQ reentrant? Should i use the same
>>interrupt processing as a normal hardware interrupt, with the exception
>>that only "critical"-flagged interrupts are processed?
>>
>>Any suggestions?
>>
>>
As far as I know, critical interrupt in ppc4xx archetecture is handled
as a kind of unknown Interrupts. So It make system down in 2.6 series
(this may also be true in 2.4).
In linux kernel , the kernel stack is changed to critical interrupt
stack instead of
user process's kernel stack when it occuers in super visor mode.
So do_IRQ can not be called in crittical interrupt(because it call
preempt relevant
functions).
We have implemeted critical interrupt handling facilites in 2.6 kernel .
In this implementation, critical interrupt specific interrupt handling
routines.
If you need our patch, please contact me(cause we need some periods to
prepare the patch).
Regards,
--
Takeharu KATO
Fujitsu Limited
Email:tkato@cs.fujitsu.co.jp (ext. 7112-4621)
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-27 2:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-26 16:28 405 Critical Interrupts Felix Domke
2003-11-26 20:48 ` Matt Porter
2003-11-27 2:12 ` Takeharu KATO
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).