Re: [Xenomai-core] porting xenomai on imx25

2012-04-18 Thread Gilles Chanteperdrix
On 04/18/2012 10:44 AM, Roberto Bielli wrote:
 Hi Gilles,
 
 here find the answers.
 sorry for the delay.
 
 Il 13/04/2012 15:47, Gilles Chanteperdrix ha scritto:
 On 04/13/2012 10:44 AM, Roberto Bielli wrote:
 Hi Gilles,

 you don't feel like to repeat.
 I'm trying all the things that you told me and i will do all the missing
 test that you told me.
 So, what is the result of running your test with unpatched Linux, but
 with CONFIG_HIGH_RES_TIMERS enabled?
 the result is the same.
 With the base linux application and  CONFIG_HIGH_RES_TIMERS all it's ok,
 instead with xenomai application the task with less priority halt the 
 task with higher priority until it sleeps.
 I send you my .config file and the test with pthread base.

You know as well as me that this description of the problem is
inaccurate, what really happens is that the timer is programmed but does
not tick. What you have to do now is try and understand what is the
difference between the way xenomai and linux handle the timer to
understand what cause it not to work in xenomai case. If I were you, to
understand this difference, I would start by dumping all timer registers
values at the time when the problem is detected, that is, before the
timer is programmed again. But I am afraid I can not give you more help,
ultimately you are the one which is doing the port to imx25, so you are
on your own.

-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] porting xenomai on imx25

2012-04-18 Thread Roberto Bielli

Hi Gilles,

i try to give only another accurate information.

i made another test:
i write a xenomai driver for reading the timer and avic register and i 
see a strange behaviour.
when there is the problem the interrupt is NOT masqueraded in avic but 
the timer has the interrupt not acked.


After this i understand that now are my problems.
Do you know somebody that can help me understanding the problem only for 
xenomai side?

We can accept a quotation of work.

Thanks for all


information and if you

Il 18/04/2012 11:19, Gilles Chanteperdrix ha scritto:

On 04/18/2012 10:44 AM, Roberto Bielli wrote:

Hi Gilles,

here find the answers.
sorry for the delay.

Il 13/04/2012 15:47, Gilles Chanteperdrix ha scritto:

On 04/13/2012 10:44 AM, Roberto Bielli wrote:

Hi Gilles,

you don't feel like to repeat.
I'm trying all the things that you told me and i will do all the missing
test that you told me.

So, what is the result of running your test with unpatched Linux, but
with CONFIG_HIGH_RES_TIMERS enabled?

the result is the same.
With the base linux application and  CONFIG_HIGH_RES_TIMERS all it's ok,
instead with xenomai application the task with less priority halt the
task with higher priority until it sleeps.
I send you my .config file and the test with pthread base.

You know as well as me that this description of the problem is
inaccurate, what really happens is that the timer is programmed but does
not tick. What you have to do now is try and understand what is the
difference between the way xenomai and linux handle the timer to
understand what cause it not to work in xenomai case. If I were you, to
understand this difference, I would start by dumping all timer registers
values at the time when the problem is detected, that is, before the
timer is programmed again. But I am afraid I can not give you more help,
ultimately you are the one which is doing the port to imx25, so you are
on your own.




--
++

Roberto Bielli
Sviluppo Software   
Axel S.r.l. 

Via Del Cannino, 3  
21020 Crosio Della Valle
Varese - Italy  

Telefono: +39 0332 949600   
Fax:  +39 0332 969315   

E-mail:   roberto.bie...@axelsw.it  
Web Site: www.axelsw.it

++

Si precisa che le informazioni contenute in questo messaggio sono riservate e 
ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di 
eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da 
Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo 
autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o 
cancellazione dei Vostri dati: i...@axelsw.it

This e-mail and any attachments is confidential and may contain privileged 
information
intended for the addressee(s) only. Dissemination, copying, printing or use by 
anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you. 

++


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] porting xenomai on imx25

2012-04-18 Thread Gilles Chanteperdrix
On 04/18/2012 12:28 PM, Roberto Bielli wrote:
 Hi Gilles,
 
 i try to give only another accurate information.
 
 i made another test:
 i write a xenomai driver for reading the timer and avic register and i 
 see a strange behaviour.
 when there is the problem the interrupt is NOT masqueraded in avic but 
 the timer has the interrupt not acked.

Ah, that is good news, at least now we have a clue. Note that it could
also mean that the timer has ticked, but the irq is not generated for
another reason. I think you should dump all the timer registers, and see
if anything is wrong by decoding their values with the datasheet.

A quick test also, assuming that the write to the MX3_TSTAT regiter in
gpt_irq_acknowledge may be posted, try rereading the register after
writing it.

 
 After this i understand that now are my problems.
 Do you know somebody that can help me understanding the problem only for 
 xenomai side?

If you need someone's help, you need to give access to your board to
that person or company. Because indirect debugging is really
inefficient: look at how many mails I had to send you over how much time
to get you to do what anybody with xenomai experience would have done in
just a few hours.

-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core