Re: Linux serial port dropping bytes
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Tue, 01 Apr 2008 13:36:25 -0500
On 2008-04-01, Didi <dp@xxxxxxxxxxx> wrote:
Grant Edwards wrote:
....
Changing ISR priority isn't going to make any difference.
It only determines which of two pending interrupts get
serviced. It doesn't allow "higher" priority interrupts to
preempt lower priority ones. If a low-priority ISR runs for a
long time, it's still going to block high-priority ISRs for the
whole time it's running.
Sadly true, except on 68k/coldfire platforms. Some newer PPC
parts from Freescale offer separate mask bits for two
interrupts (6809 F and I like), which is not bad either.
The Hitachi H8 series has the same feature, but linux doesn't
allow one ISR to preempt another ISR even if the hardware is
capable of that.
Of course if the system has been designed properly and written
properly (are they ever in commecrial land?... :-) ), every
IRQ handler would reenable IRQ after a few cycles only
In Linux, the point where interrupts can be re-enabled is the
end of the ISR. The portion of the event handling that can be
done with other interrupts enabled is done in a different
context. Back in the day, Linux ISRs used be divided into a
top half and a bottom half, with the re-enabling of interrupts
occurring between the two (both halves ran in a single ISR
context). But, now the portion of the ISR that used to run with
interrupts enabled is a "soft irq" or a tasklet or something
like that (it runs in a different context, not in an ISR
context). At least that's the way it was the last time I
looked...
- some of the Freescale PPC parts have a good priority encoder
in front of the core IRQ input and things will then in effect
be as good as in a 68k/CF. But good luck enforcing that if
more than 1 person is doing the work... -).
Even with only 1 person, you're chances aren't great. :)
--
Grant Edwards grante Yow! I need to discuss
at BUY-BACK PROVISIONS
visi.com with at least six studio
SLEAZEBALLS!!
.
- References:
- Linux serial port dropping bytes
- From: Derek Young
- Re: Linux serial port dropping bytes
- From: CBFalconer
- Re: Linux serial port dropping bytes
- From: Grant Edwards
- Re: Linux serial port dropping bytes
- From: Derek Young
- Re: Linux serial port dropping bytes
- From: Grant Edwards
- Re: Linux serial port dropping bytes
- From: Didi
- Linux serial port dropping bytes
- Prev by Date: Re: Linux serial port dropping bytes
- Next by Date: Re: need simple A/D converter
- Previous by thread: Re: Linux serial port dropping bytes
- Next by thread: Re: Linux serial port dropping bytes
- Index(es):
Relevant Pages
|