From owner-freebsd-current@FreeBSD.ORG Mon Mar 20 10:36:31 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ADA816A422 for ; Mon, 20 Mar 2006 10:36:31 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC7CA43D45 for ; Mon, 20 Mar 2006 10:36:29 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr14.xs4all.nl (8.13.3/8.13.3) with ESMTP id k2KAaRrg068372; Mon, 20 Mar 2006 11:36:27 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.4/8.13.3) with ESMTP id k2KAaR7E034549; Mon, 20 Mar 2006 11:36:27 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.4/8.13.1/Submit) id k2KAaRsb034548; Mon, 20 Mar 2006 11:36:27 +0100 (CET) (envelope-from wb) Date: Mon, 20 Mar 2006 11:36:26 +0100 From: Wilko Bulte To: Pyun YongHyeon Message-ID: <20060320103626.GA34533@freebie.xs4all.nl> References: <200603171426.k2HEQJ9L085859@pinky.frank-behrens.de> <200603200626.k2K6Qq2M029733@pinky.frank-behrens.de> <20060320071159.GA76305@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060320071159.GA76305@cdnetworks.co.kr> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Frank Behrens , freebsd-current@freebsd.org Subject: Re: call for sk(4) testers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 10:36:31 -0000 On Mon, Mar 20, 2006 at 04:11:59PM +0900, Pyun YongHyeon wrote.. > On Mon, Mar 20, 2006 at 07:26:48AM +0100, Frank Behrens wrote: > > Pyun YongHyeon wrote on 20 Mar 2006 10:36: > > > Thanks for your report. > > > If you find any unusual things related with sk(4) please let me know. > > > > Unfortunalety I must report an issue. Yesterday I had after several > > weeks of fine running: > > Mar 19 17:59:08 moon kernel: sk0: watchdog timeout > > Mar 19 17:59:08 moon kernel: sk0: link state changed to DOWN > > > > Stock sk(4) had a flaw on sending TX command to NIC due to hardware > related races. Rev. 1.90 of if_sk.c tried to fix it by keep resending > the start TX command if driver detects pending packets to be > transmitted. Since the check is done in interrupt handler it would > fail to detect the stuck condition if the first TX command was lost. > I modified the driver to enable a TX polling timer to reissue TX > command periodically as stated in SK NET GENESIS data sheet. > New driver is available at: > http://people.freebsd.org/~yongari/sk/if_sk.c > http://people.freebsd.org/~yongari/sk/if_skreg.h > > > The problem is not the watchdog timeout message itself, but that the > > No. The watchdog timeout message is serious one. It wouldn't recover > from its stuck state without manual interface down/up procedure. > > > links goes down. Fortunately I have in my crontab still a "safety > > belt", calling every 12 minutes > > (ifconfig sk0 | fgrep active >/dev/null) || (ifconfig sk0 down; ifconfig sk0 up; ifconfig sk0) > > > > So the system could recover without user interaction: > > Mar 19 18:12:01 moon kernel: sk0: link state changed to UP > > Mar 19 18:12:01 moon kernel: sk0: phy failed to come ready > > > > Yup, this is one thing I'd like to fix. > >From time to time I saw the PHY message during sk(4) module load but > it seems to work correctly in spite of the dereadful message(I think > the same thing happens on stock driver too). So I guess you may > safely ignore that message. > > If you still see "watchdog timeout message" please let me know. Assuming it works it would be neat if we could get it into RELENG_6 soon. thanks, Wilko -- Wilko Bulte wilko@FreeBSD.org