From owner-freebsd-current@FreeBSD.ORG Thu Jul 5 08:29:39 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38B301065672 for ; Thu, 5 Jul 2012 08:29:39 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 09D3C8FC12 for ; Thu, 5 Jul 2012 08:29:39 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so13418953pbb.13 for ; Thu, 05 Jul 2012 01:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=QhWtghO+14GnV+dPTUjlVjx30H4tInBbZkbacOeHXZk=; b=zoXOatIZRGV7Rw5mxMpFtM4m9wvDU0ZYR9G2kAk9kPwdOy67kiCqb/Oq3KKx+D+3JQ 3jDfH9Z+fIMNgmucTKWsBr37A7AMp4SxfZsWORQuMAzXamlgJeQEEhYrHBdpNbd3glIj i5ZFAoBNi7Ww0UvSJx57dKdRJZriCIbvWhC8t5LuUJDuISflCRTlglHO66my7/8TyO7A dqrnJfvIQOS2Eb4KbPTeNauFMqPeMKavUKj/JsWncLkhDE389AfSGIMe+iggRgbzRlLq +0db72qz1shTTeOeJrpUSXhpk18EKglxnJBEEkr13ZSec+VHSQ3bVSesHzOlgmbPWZgM xPxA== Received: by 10.68.239.103 with SMTP id vr7mr19188714pbc.0.1341476978407; Thu, 05 Jul 2012 01:29:38 -0700 (PDT) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id og4sm19346305pbb.48.2012.07.05.01.29.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 01:29:37 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 05 Jul 2012 17:29:31 -0700 From: YongHyeon PYUN Date: Thu, 5 Jul 2012 17:29:30 -0700 To: Willem Jan Withagen Message-ID: <20120706002930.GA1466@michelle.cdnetworks.com> References: <4FF41610.10402@digiware.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FF41610.10402@digiware.nl> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Current Subject: Re: sk0 link bouncing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 08:29:39 -0000 On Wed, Jul 04, 2012 at 12:08:16PM +0200, Willem Jan Withagen wrote: > Hi, > > I've got tons of these since I stopped loading the port with traffic.... > It seems to have a pretty steady 27 min interval. > > Jul 4 07:00:05 freetest kernel: sk0: link state changed to DOWN > Jul 4 07:00:05 freetest kernel: sk0: link state changed to UP > Jul 4 07:27:21 freetest kernel: sk0: link state changed to DOWN > Jul 4 07:27:21 freetest kernel: sk0: link state changed to UP > Jul 4 07:53:48 freetest kernel: sk0: link state changed to DOWN > Jul 4 07:53:48 freetest kernel: sk0: link state changed to UP > Jul 4 08:21:16 freetest kernel: sk0: link state changed to DOWN > Jul 4 08:21:16 freetest kernel: sk0: link state changed to UP > Jul 4 08:48:10 freetest kernel: sk0: link state changed to DOWN > Jul 4 08:48:11 freetest kernel: sk0: link state changed to UP > Jul 4 09:13:38 freetest kernel: sk0: link state changed to DOWN > Jul 4 09:13:38 freetest kernel: sk0: link state changed to UP > Jul 4 09:39:06 freetest kernel: sk0: link state changed to DOWN > Jul 4 09:39:06 freetest kernel: sk0: link state changed to UP > > Very recent 10-current install with std GENERIC kernel. > FreeBSD freetest.digiware.nl 10.0-CURRENT FreeBSD 10.0-CURRENT #1: Sat > Jun 30 09:35:43 UTC 2012 > root@freetest.digiware.nl:/usr/obj/usr/src/sys/GENERIC amd64 > > The port is connected to a basic netgear 10/100/1000 switch with nothing > modified in the config of that port. > Other connections do not seem to suffer from disconnecting. > > Used the server to 'zfs send' a 360G backup to, and then it did not do > anything like this, the port just stayed up. > > Suggestions where of what to look for this? Probably you have to implement link state change handler for Marvell controller(i.e. sk_marv_miibus_statchg()). Locking for MII access should be revisited too. Sorry, don't have spare time to do that. > > Thanx, > --WjW