From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <506496C2.9030302@xenomai.org> Date: Thu, 27 Sep 2012 20:11:14 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Error requesting IRQ on DM3730 (BeagleBoard xM) List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Nechypurenko Cc: xenomai@xenomai.org On 09/27/2012 06:25 PM, Andrey Nechypurenko wrote: > Hi, > > I am currently working on simple RTDM driver for quadrature encoder > and want to register the handler for interrupt from GPIO pin using > rtdm_irq_request(). My platform is BeagleBoard xM (TI DM3730 ARM CPU), > 3.2.21 Linux kernel with Xenomai-2.6.1. > > When insmod-ing the driver for the very first time, I am getting the > following error message. However, after rmmod-ing and inserting the > driver again, the error message is not appearing any more. All > subsequent insertions and removals also do not generate any errors. > > [ 109.244410] I-pipe: Detected stalled head domain, probably caused by a bug. > [ 109.244417] A critical section may have been left unterminated. > [ 109.258596] [] (unwind_backtrace+0x0/0xe0) from > [] (ipipe_request_irq+0x1c/0) > [ 109.269958] [] (ipipe_request_irq+0x1c/0xd0) from > [] (rthal_irq_request+0x34) > [ 109.281951] [] (rthal_irq_request+0x34/0x3c) from > [] (xnintr_attach+0x54/0x1) > [ 109.292274] [] (xnintr_attach+0x54/0x100) from > [] (rtdm_irq_request+0x34/0x5) > [ 109.302221] [] (rtdm_irq_request+0x34/0x5c) from > [] (initializeEncoders+0xa4) > [ 109.313102] [] (initializeEncoders+0xa4/0xe0 [tb6612fng]) > from [] (initpwm+0) > [ 109.324364] [] (initpwm+0x130/0x1a4 [tb6612fng]) from > [] (init_module+0x94/0) > [ 109.334984] [] (init_module+0x94/0xf0 [tb6612fng]) from > [] (do_one_initcall+) > [ 109.345146] [] (do_one_initcall+0x94/0x174) from > [] (sys_init_module+0x161c/) > [ 109.354948] [] (sys_init_module+0x161c/0x17f4) from > [] (ret_fast_syscall+0x0) > [ 109.364657] ------------[ cut here ]------------ > [ 109.369472] WARNING: at include/linux/ipipe_debug.h:88 > xnintr_attach+0xb0/0x100() > [ 109.377267] Modules linked in: tb6612fng(O+) sdmak(O) > lpm_omap3530(O) dsplinkk(O) cmemk(O) easycn > [ 109.391566] [] (unwind_backtrace+0x0/0xe0) from > [] (warn_slowpath_common+0x4) > [ 109.401362] [] (warn_slowpath_common+0x4c/0x64) from > [] (warn_slowpath_null+) > [ 109.411430] [] (warn_slowpath_null+0x18/0x1c) from > [] (xnintr_attach+0xb0/0x) > [ 109.423816] [] (xnintr_attach+0xb0/0x100) from > [] (rtdm_irq_request+0x34/0x5) > [ 109.434047] [] (rtdm_irq_request+0x34/0x5c) from > [] (initializeEncoders+0xa4) > [ 109.444919] [] (initializeEncoders+0xa4/0xe0 [tb6612fng]) > from [] (initpwm+0) > [ 109.456206] [] (initpwm+0x130/0x1a4 [tb6612fng]) from > [] (init_module+0x94/0) > [ 109.466824] [] (init_module+0x94/0xf0 [tb6612fng]) from > [] (do_one_initcall+) > [ 109.478492] [] (do_one_initcall+0x94/0x174) from > [] (sys_init_module+0x161c/) > [ 109.489746] [] (sys_init_module+0x161c/0x17f4) from > [] (ret_fast_syscall+0x0) > [ 109.500334] ---[ end trace c1c770f3aa0b8c03 ]--- > > I am stuck searching for possible reasons for this error message and > would appreciate any help or hints. The message is likely a false positive. Could you post the init_module code? -- Gilles.