at91sam9260
Hi
----- Messaggio originale -----
Quoted 22 lines
Da: Gilles Chanteperdrix <[email protected]>
A: Michael Trimarchi <[email protected]>
Cc: [email protected]> Inviato: Mercoledì 26 dicembre 2007, 6:59:31
Oggetto: Re: [Adeos-main] at91sam9260Quoted 10 lines · Michael Trimarchi
Hi,
Quoted 3 lines
Ok. Could you try something ? It will work with I-pipe only but will break Xenomai, so do not try to run Xenomai over this modification.
I tried the adeos-2.6.20-arm-1.8-02 patch and linux 2.6.20 and I obtained the same results. When the system is not loaded I can't receive from the serial line using the adeos patch and null modem cable.
Quoted 5 lines
AT91sam9260 8MB ram (using filesystem on ramdisk) I removed spi flash support, mmc support.
I have only serial driver and using lrz for receiving fileCan I do some tests for you using my board?
Quoted 8 lines
in
drivers/serial/atmel_serial.c, add theIRQF_DISABLEDflag torequest_irq.When linux is running without adeos, the AT91 serial driver interrupt is shared with the timer interrupt, so it automatically gets this flag. Adeos does not use the same hardware timer as linux, so, when adeos is enabled the serial interrupt is no longer shared with the timer interrupt and it no longer gets this flag.
I will try.
Thank's
___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html
Hi all!
Are there some conclusions or test reports regarding this discussion?
Thanx!
Quoted 50 lines · Michael Trimarchi
Hi
----- Messaggio originale -----Quoted 6 lines
Da: Gilles Chanteperdrix <[email protected]>
A: Michael Trimarchi <[email protected]>
Cc: [email protected]
Inviato: Mercoledì 26 dicembre 2007, 6:59:31
Oggetto: Re: [Adeos-main] at91sam9260Quoted 8 lines
Quoted 7 lines · Michael Trimarchi
Hi,
Quoted 3 lines
Ok. Could you try something ? It will work with I-pipe only but will break Xenomai, so do not try to run Xenomai over this modification.
I tried the adeos-2.6.20-arm-1.8-02 patch and linux 2.6.20 and I
obtained the
Quoted 1 line
Quoted 1 line
same results. When the system is not loaded I can't receive from the
serial
Quoted 9 lines
Quoted 7 lines
line using the adeos patch and null modem cable.
AT91sam9260 8MB ram (using filesystem on ramdisk) I removed spi flash support, mmc support.
I have only serial driver and using lrz for receiving fileCan I do some tests for you using my board?
in
drivers/serial/atmel_serial.c, add theIRQF_DISABLEDflag to
request_irq.Quoted 7 lines
When linux is running without adeos, the AT91 serial driver interrupt is shared with the timer interrupt, so it automatically gets this flag. Adeos does not use the same hardware timer as linux, so, when adeos is enabled the serial interrupt is no longer shared with the timer interrupt and it no longer gets this flag.
I will try.
Thank's
___________________________________L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main
Quoted 39 lines · Bosko Radivojevic
Quoted 36 lines · Michael Trimarchi
Hi
----- Messaggio originale -----Quoted 6 lines
Da: Gilles Chanteperdrix <[email protected]>
A: Michael Trimarchi <[email protected]>
Cc: [email protected]
Inviato: Mercoledì 26 dicembre 2007, 6:59:31
Oggetto: Re: [Adeos-main] at91sam9260Quoted 8 lines
Quoted 7 lines · Michael Trimarchi
Hi,
Quoted 3 lines
Ok. Could you try something ? It will work with I-pipe only but will break Xenomai, so do not try to run Xenomai over this modification.
I tried the adeos-2.6.20-arm-1.8-02 patch and linux 2.6.20 and I
obtained the
Quoted 1 line
Quoted 1 line
same results. When the system is not loaded I can't receive from the
serial
Quoted 9 lines
Quoted 7 lines
line using the adeos patch and null modem cable.
AT91sam9260 8MB ram (using filesystem on ramdisk) I removed spi flash support, mmc support.
I have only serial driver and using lrz for receiving fileCan I do some tests for you using my board?
in
drivers/serial/atmel_serial.c, add theIRQF_DISABLEDflag to
request_irq.Quoted 7 lines
When linux is running without adeos, the AT91 serial driver interrupt is shared with the timer interrupt, so it automatically gets this flag. Adeos does not use the same hardware timer as linux, so, when adeos is enabled the serial interrupt is no longer shared with the timer interrupt and it no longer gets this flag.
Quoted 7 lines
Quoted 2 lines
I will try.
Hi all!
Are there some conclusions or test reports regarding this discussion?
Thanx!
I received a mail from Michael recently telling me that he observes the same behaviour with the PREEMPT_RT patch, so the I-pipe patch is probably out of cause. He now suspects a hardware issue (one serial port pin seems to be shared with another peripheral, as I think I understood).
Signature · 1 line
Gilles Chanteperdrix.
Thanks. Actually, I have simillar problems (buffer overrun) when working with serial port (at91sam9260-ek based board). But, I haven't inspected the problem more than that. I'll do that next week.
Quoted 7 lines · Gilles Chanteperdrix
I received a mail from Michael recently telling me that he observes the same behaviour with the
PREEMPT_RTpatch, so the I-pipe patch is probably out of cause. He now suspects a hardware issue (one serial port pin seems to be shared with another peripheral, as I think I understood).
Hi,
Quoted 11 lines
Thanks. Actually, I have simillar problems (buffer overrun) when working
with serial port (at91sam9260-ek based board). But, I haven't inspected the
problem more than that. I'll do that next week.Quoted 1 line · Gilles Chanteperdrix
Quoted 11 lines
Quoted 1 line
I received a mail from Michael recently telling me
that he observes the
Quoted 1 line
same behaviour with the
PREEMPT_RTpatch, so theI-pipe patch is
Quoted 1 line
probably out of cause. He now suspects a hardware
issue (one serial port
Quoted 1 line
pin seems to be shared with another peripheral, as
I think I understood).
Quoted 2 lines
I finish my investigation, and I think that depens only
in some overhead. In linux is present using hrtimer and doesn't depends on NO_HZ options. If some hrtimer is executed with the interrupts disabled and the serial
must receive a single char, you receive and overrun. I suppose that the NO_HZ option can be a solution (less interrupt) but an the end, doesn't change. The dma
patch on serial device resolve the problem. I think that for adeos is the same. I try to investigate, how long is the max blocking time in hrtimer interrupt.
Using TC timer is ok. David and Gilles, you are right but I want to know how in linux-rt and adeos, I can reduce the latency to support this interrupts frquency.
Regards Michael
___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html
Quoted 37 lines · Michael Trimarchi
Hi,
Quoted 11 lines
Thanks. Actually, I have simillar problems (buffer overrun) when working
with serial port (at91sam9260-ek based board). But, I haven't inspected the
problem more than that. I'll do that next week.Quoted 1 line · Gilles Chanteperdrix
Quoted 11 lines
Quoted 1 line
I received a mail from Michael recently telling me
that he observes the
Quoted 1 line
same behaviour with the
PREEMPT_RTpatch, so theI-pipe patch is
Quoted 1 line
probably out of cause. He now suspects a hardware
issue (one serial port
Quoted 1 line
pin seems to be shared with another peripheral, as
I think I understood).
Quoted 2 lines
I finish my investigation, and I think that depens only
in some overhead. In linux is present using hrtimer and doesn't depends onNO_HZoptions. If some hrtimer is executed with the interrupts disabled and the serial
must receive a single char, you receive and overrun. I suppose that theNO_HZoption can be a solution (less interrupt) but an the end, doesn't change. The dma
patch on serial device resolve the problem. I think that for adeos is the same. I try to investigate, how long is the max blocking time in hrtimer interrupt.
Quoted 4 lines
Using TC timer is ok. David and Gilles, you are right but I want to know how in linux-rt and adeos, I can reduce the latency to support this interrupts frquency.
If I were you, if this serial driver was used only for debugging, I would tolerate overruns. And if my application relied on the correct working of a serial driver, I would use another driver, because you can not base a system on a driver needing 10000 interrupts by second without loss. This is not reasonable, especially on ARM. Or use a lower baud rate.
Signature · 1 line
Gilles Chanteperdrix.