Date: Tue, 6 Jul 2010 21:21:07 +0800 From: "=?ISO-8859-1?B?S0dC?=" <e01630112a@yahoo.com.cn> To: "=?ISO-8859-1?B?ZnJlZWJzZC1kcml2ZXJz?=" <freebsd-drivers@freebsd.org> Subject: Re: Kernel panic of "spin lock held too long" Message-ID: <tencent_474B357B52C603B21559279B@qq.com>
index | next in thread | raw e-mail
Finally I resolve the kernel panic problem. There are locks which are inited using mtx_init(&lock,name, NULL, MTX_DEF) in the function __zt_transmit_chunk ( ) in the module zaptel.ko. And my driver module(name tej21.ko) called the function __zt_transmit_chunk() in the top half of my interrupt handler. So I modified my driver module,moving the calling of the function __zt_transmit_chunk() into bottom halt of my interrupt handler. ------------------ Original ------------------ From: "John Baldwin"<jhb@freebsd.org>; Date: Mon, Jun 28, 2010 09:39 PM To: "KGB"<e01630112a@yahoo.com.cn>; Cc: "freebsd-drivers"<freebsd-drivers@freebsd.org>; Subject: Re: Kernel panic of "spin lock held too long" On Sunday 27 June 2010 1:53:56 am KGB wrote: > Hi John Baldwin: > Thank you for your reply! > Yes,I use an interrupt handler in my driver module and use a filter function. In the filter function,I call the __zt_transmit_chunk function which defined in the zaptel module(name zaptel.ko). Try using a regular interrupt handler without a filter instead. > ------------------ Original ------------------ > From: "John Baldwin"<jhb@freebsd.org>; > Date: Fri, Jun 25, 2010 11:09 PM > To: "KGB"<e01630112a@yahoo.com.cn>; > Cc: "freebsd-drivers"<freebsd-drivers@freebsd.org>; > Subject: Re: Kernel panic of "spin lock held too long" > > > On Friday 25 June 2010 9:56:13 am KGB wrote: > > I met the kernel dump again.The message is below. > > Do you use any interrupt handlers? If so, are you using a filter function? > > Also, you can use the 'tid' command in kgdb to switch to a thread via a tid to > avoid having to search for a 'tid' in info threads. > > -- > John Baldwin -- John Baldwinhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tencent_474B357B52C603B21559279B>
