Re: Linux serial port dropping bytes



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!
.



Relevant Pages

  • Re: Linux serial port dropping bytes
    ... Changing ISR priority isn't going to make any difference. ... It only determines which of two pending interrupts get ... preempt lower priority ones. ...
    (comp.arch.embedded)
  • Re: Linux serial port dropping bytes
    ... Changing ISR priority isn't going to make any difference. ... It only determines which of two pending interrupts get ... context). ...
    (comp.arch.embedded)
  • Re: How to change interrupt priority
    ... Although the ISR really doesn't do much other than 'sums' ... > and service our hardware, there are a lot of calcs and time spent in the ... > for lower priority interrupts to wait for us. ...
    (microsoft.public.windowsce.platbuilder)
  • PIC Interrupts - C18 compatibility mode
    ... I'd appreciate some advice on PIC interrupts under M'chip C18. ... C18, which is new to me, C18 is a good deal more complex than the C ... only one ISR involved. ... the high priority vector in 18F priority mode. ...
    (sci.electronics.design)
  • [tip:x86/apic] x86, apic: Reclaim IDT vectors 0x20-0x2f
    ... Reclaim 16 IDT vectors and make them available for general allocation. ... an otherwise-unusable APIC priority level and put it to use. ... * Vectors 0x30-0x3f are used for ISA interrupts. ...
    (Linux-Kernel)