From owner-freebsd-drivers@FreeBSD.ORG Tue Jul 6 13:21:15 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 75565106566B; Tue, 6 Jul 2010 13:21:15 +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 574F08FC0A; Tue, 6 Jul 2010 13:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1278422470; bh=PSRtUaaJu0pE14N4iW777jEo75GrukJeq6dY5zDSsX4=; 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=ZW/wm6ADXCsuRdkNbCaWko+tpK75ieZ8JVa0kC4TkLL4mA4FmIYm6udjQbgqWEphg u+Jny8YYsybn5eGGgEUqh9DgZAtp/KaLcQhZMkFa40tMoUM+KY3/CsV1jPC1V9G X-QQ-ThreadID: 5rcNGHC3SR,0 X-QQ-SSF: 0000000000000080 X-Originating-IP: 60.177.117.29 X-QQ-STYLE: X-QQ-mid: webmail42t1278422467t7915870 From: "=?ISO-8859-1?B?S0dC?=" To: "=?ISO-8859-1?B?ZnJlZWJzZC1kcml2ZXJz?=" Sender: 380008156@qq.com Mime-Version: 1.0 Date: Tue, 6 Jul 2010 21:21:07 +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: 2041918176 X-Mailman-Approved-At: Wed, 07 Jul 2010 00:26:00 +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: Tue, 06 Jul 2010 13:21:15 -0000 RmluYWxseSBJIHJlc29sdmUgdGhlIGtlcm5lbCBwYW5pYyBwcm9ibGVtLg0KICANCiBUaGVy ZSBhcmUgbG9ja3Mgd2hpY2ggYXJlIGluaXRlZCB1c2luZyBtdHhfaW5pdCgmbG9jayxuYW1l LCBOVUxMLCBNVFhfREVGKSBpbiB0aGUgZnVuY3Rpb24gX196dF90cmFuc21pdF9jaHVuayAo ICkgaW4gdGhlIG1vZHVsZSB6YXB0ZWwua28uDQogIA0KIEFuZCBteSBkcml2ZXIgbW9kdWxl KG5hbWUgdGVqMjEua28pIGNhbGxlZCB0aGUgIGZ1bmN0aW9uIF9fenRfdHJhbnNtaXRfY2h1 bmsoKSBpbiB0aGUgdG9wIGhhbGYgb2YgbXkgIGludGVycnVwdCBoYW5kbGVyLg0KICANCiBT byBJIG1vZGlmaWVkIG15IGRyaXZlciBtb2R1bGUsbW92aW5nIHRoZSBjYWxsaW5nIG9mIHRo ZSAgZnVuY3Rpb24gX196dF90cmFuc21pdF9jaHVuaygpICBpbnRvIGJvdHRvbSBoYWx0IG9m IG15IGludGVycnVwdCBoYW5kbGVyLg0KDQoNCiAgIA0KICANCiAgLS0tLS0tLS0tLS0tLS0t LS0tIE9yaWdpbmFsIC0tLS0tLS0tLS0tLS0tLS0tLQ0KICBGcm9tOiAgIkpvaG4gQmFsZHdp biI8amhiQGZyZWVic2Qub3JnPjsNCiBEYXRlOiAgTW9uLCBKdW4gMjgsIDIwMTAgMDk6Mzkg UE0NCiBUbzogICJLR0IiPGUwMTYzMDExMmFAeWFob28uY29tLmNuPjsgDQogQ2M6ICAi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IEZyaWRheSAyNSBKdW5l IDIwMTAgOTo1NjoxMyBhbSBLR0Igd3JvdGU6DQo+ID4gSSBtZXQgdGhlIGtlcm5lbCBkdW1w IGFnYWluLlRoZSBtZXNzYWdlIGlzIGJlbG93Lg0KPiANCj4gRG8geW91IHVzZSBhbnkgaW50 ZXJydXB0IGhhbmRsZXJzPyAgSWYgc28sIGFyZSB5b3UgdXNpbmcgYSBmaWx0ZXIgZnVuY3Rp b24/DQo+IA0KPiBBbHNvLCB5b3UgY2FuIHVzZSB0aGUgJ3RpZCcgY29tbWFuZCBpbiBrZ2Ri IHRvIHN3aXRjaCB0byBhIHRocmVhZCB2aWEgYSB0aWQgDQp0byANCj4gYXZvaWQgaGF2aW5n IHRvIHNlYXJjaCBmb3IgYSAndGlkJyBpbiBpbmZvIHRocmVhZHMuDQo+IA0KPiAtLSANCj4g Sm9obiBCYWxkd2luDQoNCi0tIA0KSm9obiBCYWxkd2lu From owner-freebsd-drivers@FreeBSD.ORG Fri Jul 9 08:22:22 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 EDD52106564A for ; Fri, 9 Jul 2010 08:22:22 +0000 (UTC) (envelope-from mgamsjager@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 814DB8FC08 for ; Fri, 9 Jul 2010 08:22:22 +0000 (UTC) Received: by bwz12 with SMTP id 12so1109074bwz.13 for ; Fri, 09 Jul 2010 01:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=hKWS4Tz6IHAOxVglCAJoEUX44Da69r7YKKjl962yG0A=; b=KlmjJfPl9Z8WjOcvd4icSk3t24RgA+VlXnq+RBOQeEDk2dkL55cOrHMD04S01tDSpd LbK8MeFrPJYfNKRfLrK9vM79QPs8utXMlfXAesS8Ffklaf+jHoQSl5oD8KGDKfqTotLn HoJWVbaaRvbzSNLi2zjQBmUQm5nz3EmLgWUcY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=h2GPTXhOl9tt4Vf/AqLqnPMBcDkbOUgBBH2yLCgURW9fWgp/xplxWAvkh8//h/Go5t AhufikkrtP4rDWVugxZ/esMRnfThxnPP3y784//BPUlO4BWtFgqX4m9ya8qIYTbQ7Pyq 0KbRREezSRmKrhH08Nk+aIyNF+OtxcTd1JGdU= Received: by 10.204.150.92 with SMTP id x28mr7221541bkv.132.1278663732873; Fri, 09 Jul 2010 01:22:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.70.204 with HTTP; Fri, 9 Jul 2010 01:21:38 -0700 (PDT) From: Matthias Gamsjager Date: Fri, 9 Jul 2010 10:21:38 +0200 Message-ID: To: freebsd-drivers Content-Type: text/plain; charset=ISO-8859-1 Subject: MSK nic driver issue 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: Fri, 09 Jul 2010 08:22:23 -0000 Hello, I have an issue with the MSK nic driver under 8-stable. problem is that during the kernel boot the link status changes couple of times. I'm experimenting with iscsi boot at the moment and just before iscsi is scanning for luns the interface link status changes from up to down and back to up about 1s later. This is enough for iscsi to loose connection with the disk. FXP nic works great and can boot from iscsi lun tho. this there a way to fix this? greets Matthias From owner-freebsd-drivers@FreeBSD.ORG Fri Jul 9 17:09:19 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 E353C106566C for ; Fri, 9 Jul 2010 17:09:19 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A6C618FC15 for ; Fri, 9 Jul 2010 17:09:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o69H6Z88089468; Fri, 9 Jul 2010 11:06:35 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 09 Jul 2010 11:06:54 -0600 (MDT) Message-Id: <20100709.110654.926703890692688940.imp@bsdimp.com> To: mgamsjager@gmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: MSK nic driver issue 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: Fri, 09 Jul 2010 17:09:20 -0000 In message: Matthias Gamsjager writes: : Hello, : : I have an issue with the MSK nic driver under 8-stable. problem is : that during the kernel boot the link status changes couple of times. : I'm experimenting with iscsi boot at the moment and just before iscsi : is scanning for luns the interface link status changes from up to down : and back to up about 1s later. This is enough for iscsi to loose : connection with the disk. : : FXP nic works great and can boot from iscsi lun tho. : : : this there a way to fix this? You may need to debounce the status of the link reported by the PHY... That's what's causing this... Warner From owner-freebsd-drivers@FreeBSD.ORG Fri Jul 9 22:49:13 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 77A3E106564A for ; Fri, 9 Jul 2010 22:49:13 +0000 (UTC) (envelope-from mgamsjager@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 024018FC0C for ; Fri, 9 Jul 2010 22:49:12 +0000 (UTC) Received: by bwz12 with SMTP id 12so1722269bwz.13 for ; Fri, 09 Jul 2010 15:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:received :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=HC3S3uRuB6GTgulHJfCxU714zZmPtFEpo+YC0+eLMGw=; b=fDYlDcgKi+0hksyBQWf1ztD9z091k9fNVUCDIggolRwepE4qhFKOPTeb8bl43FUuNc 0KFw8tk080vPXCZF0ry3My1uD5Kh51Bg5A0gW6AXU9rm8n5EgsiwXenIBcRhifmO2UKK SePjfV+A6xDs7LDuhEJ0335DT/2yi+4tZ7l7U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=sXgTb/wx7QLlQbi/2v07DPyHFw+vP4MJjnENHEvPFvIS0UDDfioNpxMsQXqDDY478j B3aR6IgIh/WRnQJcFPQSLEG/glsyFHPR95sGg+WlRch72ZBsHKEEhfZxX5GsuvJd/Azz 1/RLcYkM6rwKDR4i0rbSJMI2tksZBGb56PiT0= MIME-Version: 1.0 Received: by 10.204.35.5 with SMTP id n5mr1149666bkd.155.1278715740581; Fri, 09 Jul 2010 15:49:00 -0700 (PDT) Received: by 10.204.70.204 with HTTP; Fri, 9 Jul 2010 15:49:00 -0700 (PDT) Received: by 10.204.70.204 with HTTP; Fri, 9 Jul 2010 15:49:00 -0700 (PDT) In-Reply-To: References: <20100709.110654.926703890692688940.imp@bsdimp.com> Date: Sat, 10 Jul 2010 00:49:00 +0200 Message-ID: From: Matthias Gamsjager To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-drivers@freebsd.org Subject: Re: MSK nic driver issue 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: Fri, 09 Jul 2010 22:49:13 -0000 And how do i do that? Because frankly i dont really understand what you mean Op 9 jul 2010 19:09 schreef "M. Warner Losh" : In message: Matthias Gamsjager writes: : Hello, : : I have an issue with the MSK nic driver under 8-stable. problem is : that during the kernel boo... You may need to debounce the status of the link reported by the PHY... That's what's causing this... Warner From owner-freebsd-drivers@FreeBSD.ORG Fri Jul 9 23:16:09 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 B49661065670 for ; Fri, 9 Jul 2010 23:16:09 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 760148FC13 for ; Fri, 9 Jul 2010 23:16:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o69NCitd096915; Fri, 9 Jul 2010 17:12:44 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 09 Jul 2010 17:13:03 -0600 (MDT) Message-Id: <20100709.171303.295937982770237510.imp@bsdimp.com> To: mgamsjager@gmail.com From: "M. Warner Losh" In-Reply-To: References: <20100709.110654.926703890692688940.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: MSK nic driver issue 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: Fri, 09 Jul 2010 23:16:09 -0000 In message: Matthias Gamsjager writes: : And how do i do that? Because frankly i dont really understand what you mean The PHY driver on the miibus is reporting status to the msk NIC driver. That driver interprets the status. While it is autonegotiating for line speed, the registers report garbage/bouncing of the line. You need to defer reporting the change a little during autonegotiation. The code to do this is somewhere in dev/mii. I'm not sure what other drivers have to cope with this issue, but have observed this behavior on a number of occasions... Warner : Op 9 jul 2010 19:09 schreef "M. Warner Losh" : : : In message: : Matthias Gamsjager writes: : : Hello, : : : : : I have an issue with the MSK nic driver under 8-stable. problem is : : that during the kernel boo... : You may need to debounce the status of the link reported by the : PHY... That's what's causing this... : : Warner