From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: Alexis Berlemont Message-ID: <4B84634F.4080606@domain.hid> Date: Wed, 24 Feb 2010 00:22:55 +0100 From: Alexis Berlemont MIME-Version: 1.0 References: <0C632A1C-3B64-462B-9892-380CB14F6AD8@domain.hid> <4B7DC07C.5@domain.hid> <6D7DAD32-5300-47EB-9A04-ECA065395014@domain.hid> In-Reply-To: <6D7DAD32-5300-47EB-9A04-ECA065395014@domain.hid> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] Analogy DIO speed List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Schaal Cc: Peter Pastor Sampedro , xenomai@xenomai.org 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.