From owner-freebsd-drivers@FreeBSD.ORG Sun Jun 27 05:54:04 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B486F106564A; Sun, 27 Jun 2010 05:54:04 +0000 (UTC) (envelope-from 380008156@qq.com) Received: from smtpbg55.qq.com (smtpbg55.qq.com [64.71.138.44]) by mx1.freebsd.org (Postfix) with SMTP id 979E18FC18; Sun, 27 Jun 2010 05:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1277618039; bh=wWVqS886YBD6vpRmOgY7GgblxsLNIdTD9odIEkLWnQ0=; h=X-QQ-ThreadID:X-QQ-SSF:X-Originating-IP:X-QQ-STYLE:X-QQ-mid:From: To:Cc:Sender:Subject:Mime-Version:Content-Type: Content-Transfer-Encoding:Date:X-Priority:Message-ID:X-QQ-MIME: X-Mailer:X-QQ-Mailer:X-QQ-ReplyHash; b=RgVx7aH3h+VrL3DF+rB9OJ1RlBe6p4jTtMx6dMPpi4K+nRD674dEJGWRcXAVTndo1 oAzKW1GPNoxZ7btqnPbhtFuMinAlQ8hOx85jTA7FQFIpVNfJ6fxBYbTCa6EkDvI X-QQ-ThreadID: b8rMuGpkRx,0 X-QQ-SSF: 0000000000000081 X-Originating-IP: 125.120.131.88 X-QQ-STYLE: X-QQ-mid: webmail307t1277618036t2125956 From: "=?ISO-8859-1?B?S0dC?=" To: "=?ISO-8859-1?B?ZnJlZWJzZC1kcml2ZXJz?=" Sender: 380008156@qq.com Mime-Version: 1.0 Date: Sun, 27 Jun 2010 13:53:56 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x X-QQ-ReplyHash: 1507541686 X-Mailman-Approved-At: Sun, 27 Jun 2010 11:07:34 +0000 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Kernel panic of "spin lock held too long" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2010 05:54:04 -0000 SGkgSm9obiBCYWxkd2luOg0KICAgICAgVGhhbmsgeW91IGZvciB5b3VyIHJlcGx5IQ0KICAg ICAgWWVzLEkgdXNlIGFuIGludGVycnVwdCBoYW5kbGVyIGluIG15IGRyaXZlciBtb2R1bGUg YW5kIHVzZSBhIGZpbHRlciBmdW5jdGlvbi4gSW4gdGhlIGZpbHRlciBmdW5jdGlvbixJIGNh bGwgdGhlIF9fenRfdHJhbnNtaXRfY2h1bmsgZnVuY3Rpb24gd2hpY2ggZGVmaW5lZCBpbiB0 aGUgemFwdGVsIG1vZHVsZShuYW1lIHphcHRlbC5rbykuDQogICANCiAgDQogIC0tLS0tLS0t LS0tLS0tLS0tLSBPcmlnaW5hbCAtLS0tLS0tLS0tLS0tLS0tLS0NCiAgRnJvbTogICJKb2hu IEJhbGR3aW4iPGpoYkBmcmVlYnNkLm9yZz47DQogRGF0ZTogIEZyaSwgSnVuIDI1LCAyMDEw IDExOjA5IFBNDQogVG86ICAiS0dCIjxlMDE2MzAxMTJhQHlhaG9vLmNvbS5jbj47IA0KIENj OiAgImZyZWVic2QtZHJpdmVycyI8ZnJlZWJzZC1kcml2ZXJzQGZyZWVic2Qub3JnPjsgDQog U3ViamVjdDogIFJlOiBLZXJuZWwgcGFuaWMgb2YgInNwaW4gbG9jayBoZWxkIHRvbyBsb25n Ig0KDQogIA0KT24gRnJpZGF5IDI1IEp1bmUgMjAxMCA5OjU2OjEzIGFtIEtHQiB3cm90ZToN Cj4gSSBtZXQgdGhlIGtlcm5lbCBkdW1wIGFnYWluLlRoZSBtZXNzYWdlIGlzIGJlbG93Lg0K DQpEbyB5b3UgdXNlIGFueSBpbnRlcnJ1cHQgaGFuZGxlcnM/ICBJZiBzbywgYXJlIHlvdSB1 c2luZyBhIGZpbHRlciBmdW5jdGlvbj8NCg0KQWxzbywgeW91IGNhbiB1c2UgdGhlICd0aWQn IGNvbW1hbmQgaW4ga2dkYiB0byBzd2l0Y2ggdG8gYSB0aHJlYWQgdmlhIGEgdGlkIHRvIA0K YXZvaWQgaGF2aW5nIHRvIHNlYXJjaCBmb3IgYSAndGlkJyBpbiBpbmZvIHRocmVhZHMuDQoN Ci0tIA0KSm9obiBCYWxkd2lu From owner-freebsd-drivers@FreeBSD.ORG Mon Jun 28 13:39:56 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9128B1065672 for ; Mon, 28 Jun 2010 13:39:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6074E8FC20 for ; Mon, 28 Jun 2010 13:39:56 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 1176346B39; Mon, 28 Jun 2010 09:39:56 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 33FBE8A04E; Mon, 28 Jun 2010 09:39:55 -0400 (EDT) From: John Baldwin To: "KGB" Date: Mon, 28 Jun 2010 09:39:45 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006280939.45977.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 28 Jun 2010 09:39:55 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-drivers Subject: Re: Kernel panic of "spin lock held too long" X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 13:39:56 -0000 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"; > Date: Fri, Jun 25, 2010 11:09 PM > To: "KGB"; > Cc: "freebsd-drivers"; > 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 Baldwin From owner-freebsd-drivers@FreeBSD.ORG Thu Jul 1 22:22:03 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A62E4106566C for ; Thu, 1 Jul 2010 22:22:03 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3D5338FC0C for ; Thu, 1 Jul 2010 22:22:02 +0000 (UTC) Received: by pzk12 with SMTP id 12so449043pzk.13 for ; Thu, 01 Jul 2010 15:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=EpWK9IV/RO0HQpksWDIxI4YQM7MXaFcBTlggVkLyahc=; b=l9uZVFTNOx/obHVieF+dniTHZrFA6qIFKJYJPY4z76mkoOLeT85mV7YkbuTRhA0yv0 XS31qEHHs71URRylhhKcb8XUDEaHX8SjZ1+bdTnF6ag7yX8SvCt4Iv+n7NoO7PCLv8n9 zEQVhepnPifIo4A0iBFBUwi8UHHqkj7eei59Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=sMHTkSCdsgTXlZzjv6+Cd/jKznlZMVNXt+xzWrQZueOzXu6QseWd1w6yB8CPGNPBNe Dvf2/sh3lfyPMnrdjIIkINvflBzQ2U+blmEdNuI4558qU980aVo9AJdMZe1pixITh+UQ 100MOxt8oVDBCpeGVjSZn2c4zJhB9rJodUGTM= Received: by 10.142.207.9 with SMTP id e9mr116070wfg.331.1278022917196; Thu, 01 Jul 2010 15:21:57 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id f2sm7586998wfp.11.2010.07.01.15.21.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 15:21:56 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 1 Jul 2010 15:21:29 -0700 From: Pyun YongHyeon Date: Thu, 1 Jul 2010 15:21:29 -0700 To: Anjali Kulkarni Message-ID: <20100701222129.GE7090@michelle.cdnetworks.com> References: <50B3A5560BA4D74CADEC55A48B4641B23D5AD26EBF@EMBX01-HQ.jnpr.net> <50B3A5560BA4D74CADEC55A48B4641B23D5AD26ECF@EMBX01-HQ.jnpr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50B3A5560BA4D74CADEC55A48B4641B23D5AD26ECF@EMBX01-HQ.jnpr.net> User-Agent: Mutt/1.4.2.3i Cc: "freebsd-drivers@freebsd.org" Subject: Re: About Marvell Yukon drivers skgeinit and sky2 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 22:22:03 -0000 On Mon, Jun 21, 2010 at 08:48:21PM -0700, Anjali Kulkarni wrote: > Hi, > > As I understand, there are 2 flavors of the Marvel Yukon driver. One is for Yukon-I devices, and is called skgeinit, and other is for Yukon-II devices and called sky2 driver. > Looking at the release notes for 7.0, it looks like this driver which was in sys/dev/yukon, is now present as the msk(4) driver in sys/dev/msk and sys/dev/sk?. I do not see a yukon under dev anymore. I see only 2 files in the msk directory, is it really moved here? No. msk(4) supports Marvell Yukon II controllers. > Is the Yukon-II sky2 driver support present in Freebsd 6.1? How easy would it to backport this to 6.1? No. Backporting msk(4) from stable/8 and stable/7 to 6.1 may require some work and time due to KPI differences but it's doable if you spend some time. > If yes, then is there a way to disable the skgeinit(which seems to be the default) and enable the sky2 driver? > You don't need to disable skgeinit and sky2. Actually I don't know where you got the name of skgeinit. AFAIK skgeinit is a function name of vendor's Linux driver. > Anjali