Re: [PATCH -mm v4 6/9] atmel_serial: Split the interrupt handler



Hello All,

All works now for me with preempt-rt. The problem is using hrtimer.
I think that hrtimer are executed with interrupts disabled so, if
this happen when I must receive a char, i have an overrun.

No, they share the same interrupt line...
So, while the timer interrupt handler is running, the serial handler
has to wait until the timer interrupt handler has finished.
Notice that the HRT interrupt handler is quite heavy and takes a long
time to complete.

And, as I already mentioned, related to the 1 byte FIFO and a
interrupt latency of about 85us (without HRT), it is logical that you
can get an overrun at the higher serial speeds... (>=115200bps)

The only solution was the dma support to serial device.

Or, use flow control?


Kind Regards,

Remy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Handling SSC interrupts in Applesoft BASIC
    ... He has written an assembly-language program that reads and writes to the ... A little background on the concept of an interrupt. ... the initial interrupt handler does some ... No idea where the rest of the 256 char buffer is (John's ...
    (comp.sys.apple2.programmer)
  • Re: em network issues
    ... (as is automatic in fast interrupt handlers) ... task thinks it won't be interfered with by the em interrupt handler. ... Now that we start doing things, we have various races. ... SWI handler would just wake time, but missing scheduling would break ...
    (freebsd-net)
  • Re: Do I need a RTOS?
    ... an interrupt at a known interval. ... Should I use a full blown RTOS? ... I would say that's true only if your longest interrupt handler take more ... tasks with wildly different timing requirements to work smoothly. ...
    (comp.arch.embedded)
  • Re: Do I need a RTOS?
    ... an interrupt at a known interval. ... handler for that peripheral (example UART receive). ... Should I use a full blown RTOS? ... I would say that's true only if your longest interrupt handler take more ...
    (comp.arch.embedded)
  • Re: pccbb crashes when detaching (unsafe interrupt handler)
    ... to the interrupt handler, which the ithread has to ack before you can ... > because I'd one day like to make the cbb isr a fast interrupt handler ... feasibility of an ithread handler critical section. ...
    (freebsd-current)

Loading