All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <alexis.berlemont@domain.hid>
To: Stefan Schaal <sschaal@domain.hid>
Cc: Peter Pastor Sampedro <pastorsa@domain.hid>, xenomai@xenomai.org
Subject: Re: [Xenomai-core] analogy - experimental branch
Date: Wed, 30 Jun 2010 15:45:35 +0200	[thread overview]
Message-ID: <20100630134535.GA2849@domain.hid> (raw)
In-Reply-To: <46F86785-737D-41F4-BC37-5DC5A4462039@domain.hid>

Hi,

Stefan Schaal wrote:
> Hi Alexis,
> 
>   I did a reboot, ran my modified cmd_bits.c again one time. 
> 
> cat /proc/xenomai/irq  reports:
> 
> IRQ         CPU0        CPU1        CPU2        CPU3        CPU4        CPU5        CPU6        CPU7
>  56:           0           0           0           0           0           0           0           0         Analogy device
> 518:           0           1           1           1           1           1           1           1         [IPI]
> 521:      626392      618020      618539      620274      617326      625008      622464      626300         [timer]
> 522:           0           0           0           0           0           0           0           0         [critical sync]
> 546:           0           0           0           0           0           0           0           0         [virtual]
> 

I have not forgotten you. I am still stuck with your bug: The mite
transfers the first 8000 bytes and after does nothing; no interrupt is
generated by the mite so as to finally awake your application. 

It seems like the data retrieved by the mite are not consumed by the
board. Are you sure the digital output lines correspond to what you
configured with cmd_bits ? 

I think the digital output is misconfigured. I am working on it.

> 
> -Stefan
> 
> On Jun 27, 2010, at 3:37, Alexis Berlemont wrote:
> 
> > Hi,
> > 
> > 
> > Stefan Schaal wrote:
> >> Hi Alexis,
> >> 
> >>  thanks so much for the new analogy software. Here are some first observations:
> >> 
> >> 1) cmd_bits.c works fine on our NI6250 board
> >> 
> >> 2) however, a slightly modified version hangs -- I appended my cmd_bits.c to this email. All what I added is a for loop around the a4l_async_write() and a4l_snd_insn() commands, i.e., I wanted to trigger a write repeatedly. Look for the "sschaal" comment in my modified cmd_bits.c .  After 32 iterations, cmd_bits hangs, no error messages in dmesg. Interesting, when I change your "trigger_threshold" variable from 128 to 256, my loop runs for 16 iterations (other changes of the trigger threshold adjust the number of iterations I get in a similar way). Thus, it feels like there is a buffer which does not get reset after a4l_snd_insn() is called -- does this make sense?
> >> 
> > 
> > Could you tell me if the mite triggered an interrupt ? Could you send
> > a dump of cat /proc/xenomai/irq after having made the test program
> > hang ?
> > 
> > Many thanks,
> > 
> >> Best wishes,
> >> 
> >> -Stefan
> >> 
> >> 
> >> On Jun 24, 2010, at 15:43, Alexis Berlemont wrote:
> >> 
> >>> Hi,
> >>> 
> >>> Alexis Berlemont wrote:
> >>>> Hi Stefan,
> >>>> 
> >>>> Stefan Schaal wrote:
> >>>>> Hi Alexis,
> >>>>> 
> >>>>> I was just wondering whether the new "experimental" branch in your git repository is something that can be tried already.
> >>>>> 
> >>>> 
> >>>> No. Not yet. This branch is aimed at temporarily holding the
> >>>> corrections I am trying to do for the cmd_bits issue. It needs quite a
> >>>> lot of work and I have not finished yet. 
> >>>> 
> >>>> If you have a look at the commits in this branch, we will see many
> >>>> "(broken)".
> >>>> 
> >>> 
> >>> I just rebased the experimental branch into the branch analogy. So,
> >>> starting from now, we should be able to properly use cmd_bits with a
> >>> clone of my git repository.
> >>> 
> >>> After having reworked the asynchronous buffer subsystem (and having
> >>> fixed some oops in the NI driver and in the new code), cmd_bits can
> >>> correctly communicate with the DIO subdevice. 
> >>> 
> >>> A command like "./cmd_bits 0xffff 0xffff" works on my
> >>> board. Unfortunately, I have not done the necessary to check the
> >>> digital output lines yet.
> >>> 
> >>> 
> >>>>> Best wishes,
> >>>>> 
> >>>>> -Stefan
> >>>> 
> >>>> -- 
> >>>> Alexis.
> >>> 
> >>> -- 
> >>> Alexis.
> >> 
> >> 
> >> ======================================================= cmd_bits.c ==================================================
> > 
> > 
> > 
> > -- 
> > Alexis.
> 

-- 
Alexis.


  reply	other threads:[~2010-06-30 13:45 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03  0:24 [Xenomai-core] analogy - experimental branch Stefan Schaal
2010-06-05 21:11 ` Alexis Berlemont
2010-06-24 22:43   ` Alexis Berlemont
2010-06-25 18:28     ` Stefan Schaal
2010-06-27 10:37       ` Alexis Berlemont
2010-06-27 15:53         ` Stefan Schaal
2010-06-30 13:45           ` Alexis Berlemont [this message]
2010-06-30 18:11             ` Stefan Schaal
2010-07-05 21:40               ` Alexis Berlemont
2010-07-05 22:02                 ` Alexis Berlemont
2010-07-07  3:57                   ` Stefan Schaal
2010-07-09 22:17                     ` Alexis Berlemont
2010-07-10  0:10                       ` Stefan Schaal
2010-07-12  6:12                         ` Stefan Schaal
2010-07-12 22:29                           ` Alexis Berlemont
2010-07-13  5:51                             ` Stefan Schaal
2010-07-13 18:40                               ` Stefan Schaal
2010-07-14 21:03                                 ` Alexis Berlemont
2010-07-15  0:46                                   ` Stefan Schaal
2010-07-15 20:59                                     ` Stefan Schaal
2010-07-19 22:01                                       ` Alexis Berlemont
2010-07-19 22:30                                         ` Stefan Schaal
2010-08-23 23:09                                           ` Alexis Berlemont
2010-08-24  6:49                                             ` Stefan Schaal
2010-09-02 21:18                                               ` Stefan Schaal
2010-09-04 21:45                                                 ` Alexis Berlemont
2010-09-08 14:30                                                   ` Stefan Schaal
2010-09-09  6:51                                                     ` Alexis Berlemont
2010-09-09 17:14                                                       ` Stefan Schaal
2010-07-14 20:42                               ` Alexis Berlemont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100630134535.GA2849@domain.hid \
    --to=alexis.berlemont@domain.hid \
    --cc=pastorsa@domain.hid \
    --cc=sschaal@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.