All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Adeos-main] at91sam9260
@ 2007-12-20 18:44 Michael Trimarchi
  2007-12-20 18:54 ` Gilles Chanteperdrix
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-20 18:44 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

Hi,

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

AT91sam9260 8MB ram (using filesystem on ramdisk)
I removed spi flash support, mmc support.
I have only serial driver and using lrz for receiving file

Can I do some tests for you using my board? Do you have and updated patch 
for linux 2.6.23?

Regards 
Michael






      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html


^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-26 11:10 Michael Trimarchi
  2008-02-08 19:21 ` Bosko Radivojevic
  0 siblings, 1 reply; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-26 11:10 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

Hi
----- Messaggio originale -----
> Da: Gilles Chanteperdrix <gilles.chanteperdrix@domain.hid>
> A: Michael Trimarchi <trimarchimichael@domain.hid>
> Cc: adeos-main@gna.org> Inviato: Mercoledì 26 dicembre 2007, 6:59:31
> Oggetto: Re: [Adeos-main] at91sam9260
> 
> On Dec 20, 2007 7:44 PM, Michael Trimarchi wrote:
> > Hi,
> >
> > > 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.
> >
> > AT91sam9260 8MB ram (using filesystem on ramdisk)
> > I removed spi flash support, mmc support.
> > I have only serial driver and using lrz for receiving file
> >
> > Can I do some tests for you using my board?
> 
> in drivers/serial/atmel_serial.c, add the IRQF_DISABLED flag to request_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


^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-17 14:51 Michael Trimarchi
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-17 14:51 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]


Hi,
>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.

>In include/asm-arm/system.h in the definition of the switch_to macro
>try removing the calls to local_irq_disable_hw_cond and
>local_irq_enable_hw_cond, and tell us if you still get the serial
>driver overruns.
Ok,
now I can't because I have a flight in the afternoon. Maybe this night 
or tomorrow :)

>This means that there is a fault in xnpod_schedule, that causes a
>Linux function to be called over Xenomai domain. But the problem is
>the fault in the first place. To debug this, we need a disassembly of
>xnpod_schedule. This will be best discussed on Xenomai mailing list.
>You probably have a problem in your port of the I-pipe patch, since
>Xenomai is reported to works on other AT91s.
Ok

Regards MIchael






      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 1578 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-17 14:20 Michael Trimarchi
  2007-12-17 14:42 ` Gilles Chanteperdrix
  2007-12-17 21:47 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-17 14:20 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 3600 bytes --]


Hi,
>> >Wait a minute. You mean that you want more than 5000 interrupts by
>> >second ? Are you sure you do not get overruns with plain, unpatched
>> >Linux, if you load it sufficiently ?
>> If you do a simple count ( 115200 bps ) considering buffer length = 1
 the
>> answer is yes.
>>
>> :)
>>
>> regards Michael
>>
>> PS work with linux

>Do you observe this behaviour with I-pipe only or with Xenomai running
>? If we xenomai, could you try only booting Linux with I-pipe enabled
>?
>
>-- 
>                                               Gilles Chanteperdrix

I report this only using ipipe. I have some trouble with xenomai, that I will try to solve ( see below )


== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
I-pipe: Detected illicit call from domain 'Xenomai'
        into a service reserved for domain 'Linux' and below.
[<c0021988>] (show_stack+0x0/0x48) from [<c005cca0>] (ipipe_check_context+0x88/0xa4)
[<c005cc18>] (ipipe_check_context+0x0/0xa4) from [<c0057e40>] (search_module_extables+0x3c/0xe8)
 r5:00000000 r4:c0063cf0
[<c0057e04>] (search_module_extables+0x0/0xe8) from [<c004887c>] (search_exception_tables+0x30/0x3c)
 r8:00000154 r7:00000017 r6:00000000 r5:c0271e00 r4:c0063cf0
[<c004884c>] (search_exception_tables+0x0/0x3c) from [<c00231c0>] (fixup_exception+0x18/0x30)
 r4:c0271e00
[<c00231a8>] (fixup_exception+0x0/0x30) from [<c002339c>] (__do_kernel_fault+0x24/0x7c)
 r4:00000154
[<c0023378>] (__do_kernel_fault+0x0/0x7c) from [<c0023670>] (do_page_fault+0x27c/0x29c)
 r7:00000000 r6:c0266520 r5:c01a1e6c r4:ffffffff
[<c00233f4>] (do_page_fault+0x0/0x29c) from [<c001c2c8>] (do_DataAbort+0x3c/0x11c)
[<c001c28c>] (do_DataAbort+0x0/0x11c) from [<c001cb40>] (__dabt_svc+0x40/0x60)
Exception stack(0xc0271e00 to 0xc0271e48)
1e00: 204c0000 c0457860 40000093 40000093 c0457860 00000000 c01bf860 00000000 
1e20: c0280b30 c0270000 c01bf890 c0271e80 00000000 c0271e48 c0063ce4 c0063cf0 
1e40: 40000093 ffffffff                                                       
 r8:c0280b30 r7:00000000 r6:c01bf860 r5:c0271e34 r4:ffffffff
[<c00636ec>] (xnpod_schedule+0x0/0x7ac) from [<c00608f8>] (xnintr_clock_handler+0xa8/0x124)
[<c0060850>] (xnintr_clock_handler+0x0/0x124) from [<c005deb0>] (__ipipe_dispatch_wired+0xdc/0x104)
 r8:c0266520 r7:c01bf480 r6:c01a8120 r5:c01aa4e0 r4:c01bd140
[<c005ddd4>] (__ipipe_dispatch_wired+0x0/0x104) from [<c0021efc>] (__ipipe_handle_irq+0x94/0x1c8)
 r6:c0271f20 r5:00000011 r4:c01bd140
[<c0021e68>] (__ipipe_handle_irq+0x0/0x1c8) from [<c00220f4>] (__ipipe_grab_irq+0xc4/0x120)
[<c0022030>] (__ipipe_grab_irq+0x0/0x120) from [<c001cb90>] (__irq_svc+0x30/0x78)
 r8:c0266520 r7:c0457860 r6:00000011 r5:fefff000 r4:ffffffff
[<c014e0d4>] (schedule+0x0/0x814) from [<c006af54>] (gatekeeper_thread+0xfc/0x194)
[<c006ae58>] (gatekeeper_thread+0x0/0x194) from [<c004b1a4>] (kthread+0x58/0x90)
[<c004b14c>] (kthread+0x0/0x90) from [<c003780c>] (do_exit+0x0/0x94c)
 r6:00000000 r5:00000000 r4:00000000


There is a patch to using the serial device with DMA too and I use it with other board

 equipped with the at91rm9200. But my question is this:



spi prioriy < serial priority



In linux the interrupt nesting is controlled by the hardware logic. Is it true?



The priority is mainted using ipipe in at91sam9260? 





Regards Michael






      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 4957 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-17 10:23 Michael Trimarchi
  2007-12-17 10:26 ` Gilles Chanteperdrix
  2007-12-17 14:11 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-17 10:23 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]


Hi,
>Wait a minute. You mean that you want more than 5000 interrupts by
>second ? Are you sure you do not get overruns with plain, unpatched
>Linux, if you load it sufficiently ?
If you do a simple count ( 115200 bps ) considering buffer length = 1 the answer is yes.

:)

regards Michael

PS work with linux





      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 964 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-15 13:06 Michael Trimarchi
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-15 13:06 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

Hi,

another simple question:

How the interrupt controllor priority are manteined by adeos for the root domain (LINUX)?

Regards Michael





      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 685 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-15 12:35 Michael Trimarchi
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-15 12:35 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 1257 bytes --]

Hi,
>> 
 >> Hi,
 >> 
 >> I think that the problem of the overruns are related to the latency
 introduced by adeos, and the
 >> serial buffer of the at91sam9260 ( length = 1 ). 

>Wait a minute. You mean that you want more than 5000 interrupts by
>second ? Are you sure you do not get overruns with plain, unpatched
>Linux, if you load it sufficiently ?

Thank's for you help. I'm new on ipipe & xenomai. Yesterday I find a problem related to my patch and the at91 clock initialization ( I forgot to patch timex.h file ) and I will test serial line again as 
soon as possible. Now I try to integrate the leatest patch of ipipe from the git repository.
I think that is not possible to have a "wired interrupt" for the root domain, or exclude ipipe 
for a series of interrupt (just to try). I try to use linux without ipipe patch and I don't have
overrun on serial line. It is possible to count unhandled interrupt? Maybe I have some problem
but dosen't related to ipipe ( just visible with it ). are there test suite for ipipe?

Regards Michael


Regards Michael







      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 1790 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-14 19:44 Michael Trimarchi
  2007-12-14 20:15 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-14 19:44 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]


Hi,

+#define PICK_SPINUNLOCK_IRQ_RAW(lock)                          \
+do {                                                                   \
+       if (TYPE_EQUAL((lock), __ipipe_spinlock_t)) {                   \
+               __ipipe_spin_lock_irq(&((__ipipe_spinlock_t *)(lock))->__raw_lock); \
+       } else if (TYPE_EQUAL(lock, spinlock_t))                        \
+               __raw_spin_unlock(&((spinlock_t *)(lock))->raw_lock);   \
+               local_irq_enable();                                     \
+} while (0)

Who can me explain this in the official adeos-ipipe-2.6.20-arm-1.7-06.patch ?
I don't understand

Regards Michael





      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 2368 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-13 15:41 Michael Trimarchi
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-13 15:41 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 955 bytes --]


Hi
>
>
> Hi,
>
> I think that the problem of the overruns are related to the latency
> introduced by adeos, and the
> serial buffer of the at91sam9260 ( length = 1 ).
>
>
> >Do you get the same behaviour if you apply
> >adeos-ipipe-2.6.20-arm-1.8-02.patch on a linux 2.6.20 ?
> >                                              Gilles Chanteperdrix
>
> I'll send soon my xeno-test. It is possible to serve an interrupt
 without
> pass
> throw the log system in the root domain?

>If you do not want to test the I-pipe patch on the kernel for which it
>is made, then I am afraid we can not conclude anything from any result
>you obtain.

>-- 
>                                               Gilles Chanteperdrix
I will test it on my board. 

Regards Michael






      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 1755 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-13 15:27 Michael Trimarchi
  2007-12-13 15:32 ` Gilles Chanteperdrix
  2007-12-15 11:59 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-13 15:27 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]


Hi,

I think that the problem of the overruns are related to the latency introduced by adeos, and the
serial buffer of the at91sam9260 ( length = 1 ). 

>Do you get the same behaviour if you apply
>adeos-ipipe-2.6.20-arm-1.8-02.patch on a linux 2.6.20 ?
>                                               Gilles Chanteperdrix

I'll send soon my xeno-test. It is possible to serve an interrupt without pass
throw the log system in the root domain?

Regards Michael








      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 1251 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-11 18:33 Michael Trimarchi
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-11 18:33 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

Hi,

>> adeos-ipipe-2.6.20-arm-1.7-06.patch
>>
>> I don't understand your question ?!

>Do you get the same behaviour if you apply
>adeos-ipipe-2.6.20-arm-1.8-02.patch on a linux 2.6.20 ?
>
>-- 
>                                               Gilles Chanteperdrix

I dont't try! because I don't have time to test my board for the 2.6.20, 
I hope that there are another people that work on at91sam9260 and ipipe.

Regards Michael






      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 1240 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [Adeos-main] at91sam9260
@ 2007-12-11 18:23 Michael Trimarchi
  2007-12-11 18:24 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-11 18:23 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: adeos-main

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Hi,
>> I prepare an adeos patch for the at91sam9260 and linux 2.6.22, and I
 test it
>> with success. I reported only a problem with
>> the serial drivers. I have overrun and I can't using it in interrupt
 mode
>> with trasfer rate > 57600 using zmodem
>> protocol. Is there any suggest?

>Do you get the same behaviour with the "official" I-pipe patch ?

I start from the patch:
adeos-ipipe-2.6.20-arm-1.7-06.patch

I don't understand your question ?!

Michael






      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 1158 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* [Adeos-main] at91sam9260
@ 2007-12-11 17:19 Michael Trimarchi
  2007-12-11 18:14 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 31+ messages in thread
From: Michael Trimarchi @ 2007-12-11 17:19 UTC (permalink / raw)
  To: adeos-main

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

Hi all,

I prepare an adeos patch for the at91sam9260 and linux 2.6.22, and I test it with success. I reported only a problem with
the serial drivers. I have overrun and I can't using it in interrupt mode with trasfer rate > 57600 using zmodem 
protocol. Is there any suggest?

Regards Michael




      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

[-- Attachment #2: Type: text/html, Size: 807 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2008-02-09 13:39 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-20 18:44 [Adeos-main] at91sam9260 Michael Trimarchi
2007-12-20 18:54 ` Gilles Chanteperdrix
2007-12-20 19:26 ` Gilles Chanteperdrix
2007-12-26 10:59 ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2007-12-26 11:10 Michael Trimarchi
2008-02-08 19:21 ` Bosko Radivojevic
2008-02-08 19:36   ` Gilles Chanteperdrix
2008-02-08 19:42     ` Bosko Radivojevic
2008-02-09 11:13       ` Michael Trimarchi
2008-02-09 13:39         ` Gilles Chanteperdrix
2007-12-17 14:51 Michael Trimarchi
2007-12-17 14:20 Michael Trimarchi
2007-12-17 14:42 ` Gilles Chanteperdrix
2007-12-17 21:47 ` Gilles Chanteperdrix
2007-12-17 23:38   ` Gilles Chanteperdrix
2007-12-17 10:23 Michael Trimarchi
2007-12-17 10:26 ` Gilles Chanteperdrix
2007-12-17 14:11 ` Gilles Chanteperdrix
2007-12-15 13:06 Michael Trimarchi
2007-12-15 12:35 Michael Trimarchi
2007-12-14 19:44 Michael Trimarchi
2007-12-14 20:15 ` Gilles Chanteperdrix
2007-12-13 15:41 Michael Trimarchi
2007-12-13 15:27 Michael Trimarchi
2007-12-13 15:32 ` Gilles Chanteperdrix
2007-12-15 11:59 ` Gilles Chanteperdrix
2007-12-11 18:33 Michael Trimarchi
2007-12-11 18:23 Michael Trimarchi
2007-12-11 18:24 ` Gilles Chanteperdrix
2007-12-11 17:19 Michael Trimarchi
2007-12-11 18:14 ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.