Re: Linux serial port dropping bytes
- From: Didi <dp@xxxxxxxxxxx>
- Date: Tue, 1 Apr 2008 10:26:55 -0700 (PDT)
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.
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 - 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... -).
Dimiter
------------------------------------------------------
Dimiter Popoff Transgalactic Instruments
http://www.tgi-sci.com
------------------------------------------------------
http://www.flickr.com/photos/didi_tgi/sets/72157600228621276/
Grant Edwards wrote:
On 2008-04-01, Derek Young <edu.mit.LL@xxxxxxxxxxxxx> wrote:.
Yes, I feel like there should be plenty of time to handle the
interrupts. But from what I understand (which isn't a whole
lot mind you :P), Linux isn't strictly a real-time OS. It
doesn't normally have a preemptible kernel (I've turned on the
"experimental" preemptible kernel flag) and it doesn't really
have a standard way to tweak interrupt priorities.
Was wondering if anybody knew of a straight-forward hack. I
just want the serial port ISR to get priority over the device
driver ISRs.
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.
--
Grant Edwards grante Yow! As President I have
at to go vacuum my coin
visi.com collection!
- Follow-Ups:
- Re: Linux serial port dropping bytes
- From: Grant Edwards
- Re: Linux serial port dropping bytes
- 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
- Linux serial port dropping bytes
- Prev by Date: Re: PCI SPI interface card
- Next by Date: "Number of BSCANs: 2 out of 1 200%"
- Previous by thread: Re: Linux serial port dropping bytes
- Next by thread: Re: Linux serial port dropping bytes
- Index(es):
Relevant Pages
|