Hy! I've added some printks and took out the comedi_lock_irqsave / restore calls from ni_release_ai_mite_channel and it seems that the call of mite_release_channel from ni_release_ai_mite_channel doesn't return
here's a short log : ~ # /usr/xenomai/sbin/comedi_config -v comedi0 comedi_pcimio Comedi: comedi_pcimio: pcimio_attach: found pci-6024e board Comedi: MITE: 0x90000000 mapped to c907a000 <6>Comedi: DAQ: 0x90001000 mapped to c907c000 Comedi: MITE: version = 2, type = 1, mite mode = 1, interface mode = 3 Comedi: MITE: num channels = 1, write post fifo depth = 1, wins = 0, iowins = 2 Comedi: comedi_pcimio: pcimio_attach: found irq 48 *ni_release_ai_mite_channel: in ni_release_ai_mite_channel: ai_mite_chan is not NULL ni_release_ai_mite_channel: the dma channel was set* Unable to handle kernel paging request for data at address 0x00012400 Faulting instruction address: 0xc023b35c Oops: Kernel access of bad area, sig: 11 [#1] MPC831x RDB Modules linked in: NIP: c023b35c LR: c0244254 CTR: c0029f44 REGS: c7adbc40 TRAP: 0300 Not tainted (2.6.24.2) MSR: 00009032 <EE,ME,IR,DR> CR: 22008422 XER: 00000000 DAR: 00012400, DSISR: 20000000 TASK = c7861bd0[888] 'comedi_config' THREAD: c7ada000 I seems that when it calls mite_release_channel none of the specific debug messages appears ! I shall test further the mite_release_channel ! Best , Cristian ! On Thu, Sep 17, 2009 at 1:26 AM, Alexis Berlemont <[email protected]>wrote: > Hi, > > > > > I've applied the debug patches and I think that the problem is in the > > ni_release_ai_mite_channel function because it seems that > > mite_release_channel is never called. > > It is possible that comedi_lock_irqsave to cause the problem or > > devpriv->ai_mite_chan is NULL ? > > > > You can remove comedi_lock_irqsave/restore, they are not critical. And > you can proceed on adding some debug traces so as to check > ai_mite_chan. > > I will double check, the mite "init" function. > > Alexis. >
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
