From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: Stefan Schaal <sschaal@domain.hid>
Cc: Peter Pastor Sampedro <pastorsa@domain.hid>, xenomai@xenomai.org
Subject: Re: [Xenomai-core] Analogy DIO speed
Date: Wed, 24 Feb 2010 00:22:55 +0100 [thread overview]
Message-ID: <4B84634F.4080606@domain.hid> (raw)
In-Reply-To: <6D7DAD32-5300-47EB-9A04-ECA065395014@domain.hid>
Hi,
Stefan Schaal wrote:
> Hi Alexis,
>
> On Feb 18, 2010, at 14:34, Alexis Berlemont wrote:
>
>> I have some problems with
>>> implementing commands on my NI6259 so far.
>> Could you remind me what was the problem ?
>
> See the print-outs below for the problem we have.
>
> Thanks so much for looking into this!
>
> -Stefan
>
>
>
>
> Using the cmd_write() function that you provide in analogy, we get the following problem:
>
I am currently trying to fix this bug, which is not that easy. I just
have one question (that I remember I have already asked you in some way,
but I just want to be sure):
Does this bug occur the very first time you launched cmd_write (I mean
after a reboot) ?
> root@domain.hid# ./cmd_write -v
> cmd_write: device analogy0 opened (fd=0)
> cmd_write: basic descriptor retrieved
> subdevices count = 14
> read subdevice index = 0
> write subdevice index = 1
> cmd_write: complex descriptor retrieved
> cmd_write: channel 0
> ranges count = 3
> range's size = 16 (bits)
> cmd_write: channel 1
> ranges count = 3
> range's size = 16 (bits)
> cmd_write: scan size = 4
> cmd_write: size to write = 400
> cmd_write: command successfully sent
> cmd_write: triggering failed (ret=-32)
>
> root@domain.hid# dmesg -c
> [133345.213865] Analogy: analogy_ni_pcimio: ni_mio_common: interrupt: b_status=0002 m1_status=80a80000
> [133345.332719] Analogy: analogy_ni_pcimio: ni_ao_wait_for_dma_load: timed out waiting for dma load<3>Analogy: a4l_do_special_insn: execution of the instruction failed (err=-32)
>
>
> Another problem we have is with the --mmap option:
>
> root@domain.hid# ./cmd_write -v --mmap
> cmd_write: device analogy0 opened (fd=0)
> cmd_write: basic descriptor retrieved
> subdevices count = 14
> read subdevice index = 0
> write subdevice index = 1
> cmd_write: complex descriptor retrieved
> cmd_write: channel 0
> ranges count = 3
> range's size = 16 (bits)
> cmd_write: channel 1
> ranges count = 3
> range's size = 16 (bits)
> cmd_write: scan size = 4
> cmd_write: size to write = 400
> cmd_write: buffer size = 65536 bytes
> cmd_write: a4l_mmap() failed (ret=-22)
>
>
> root@domain.hid# dmesg -c
> [133408.942998] Analogy: a4l_ioctl_mmap: mmap not allowed on this subdevice
>
>
Alexis.
next prev parent reply other threads:[~2010-02-23 23:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 21:23 [Xenomai-core] Analogy DIO speed Stefan Schaal
2010-02-18 22:34 ` Alexis Berlemont
2010-02-18 22:48 ` Thomas Lockhart
2010-02-19 5:43 ` Stefan Schaal
2010-02-23 23:22 ` Alexis Berlemont [this message]
2010-03-01 0:24 ` Alexis Berlemont
2010-03-02 18:00 ` Stefan Schaal
2010-03-03 23:58 ` Alexis Berlemont
2010-03-04 0:54 ` Stefan Schaal
2010-03-04 8:37 ` 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=4B84634F.4080606@domain.hid \
--to=berlemont.hauw@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.