- From: David Schleef <ds_at_schleef.org>
- Date: Thu, 2 Oct 2003 12:58:00 -0700
On Thu, Oct 02, 2003 at 04:21:15PM +0000, Xiaoyu Duan wrote: > Dear all, > > I use linux-2.4.17 with patch-2.4.17-rthal5g, comedi-0.7.66, > comedilib-0.7.19, and rtai-24.1.11. > When I tried the test program named "tests" in directory > /rtai/comedi_lxrt/, the following error message occured in kernel space: > > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 1689 times > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 122 times > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of in insn !=insn.n > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 122 times > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of in insn !=insn.n > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 370 times > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of in insn !=insn.n > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 246 times > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of in insn !=insn.n > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 246 times > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of in insn !=insn.n > Oct 2 16:16:41 ctrl6-pc kernel: BUG: result of insn !=insn.n > Oct 2 16:16:41 ctrl6-pc: last message repeated 603 times > > and in user space following message occured: > what does that bug mean? Is there anything wrong with the driver? It's a simple consistency check. Patch attached. dave... Index: multiq3.c =================================================================== RCS file: /var/cvs/comedi/comedi/drivers/multiq3.c,v retrieving revision 1.17 diff -u -r1.17 multiq3.c --- multiq3.c 15 Feb 2003 18:35:46 -0000 1.17 +++ multiq3.c 2 Oct 2003 19:56:10 -0000 _at__at_ -128,7 +128,7 _at__at_ data[n] = ((hi << 8) | lo) & 0xfff; } - return i; + return n; } static int multiq3_ao_insn_read(comedi_device *dev, comedi_subdevice *s,
Received on 2003-10-02Z18:58:00