From owner-freebsd-current@FreeBSD.ORG Thu Jan 19 01:53:01 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A9071065673 for ; Thu, 19 Jan 2012 01:53:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3F3938FC0A for ; Thu, 19 Jan 2012 01:53:00 +0000 (UTC) Received: by iagz16 with SMTP id z16so11798165iag.13 for ; Wed, 18 Jan 2012 17:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=DHaKcWV0eJIT6tA8K1k2T2bWeU3sVxk9CyuJP70WlF8=; b=TV/EPoXPjO4kkwugs7ZGqWQCChi7PB02jKCeIhd8CtVHLQsXnxpIYK8v6t516xE3GU N32xxXNNnYROhjnzbQa2TDOHR9lAlmgASsglB9Nn39icCwhZpnJBg2/2uMr+h1tNHxVC HBcJ8OSDNyYt/P6WW7oKYICFYTk0gb3/Tbox8= Received: by 10.50.222.233 with SMTP id qp9mr22681550igc.1.1326937980546; Wed, 18 Jan 2012 17:53:00 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id pb6sm47554195igc.5.2012.01.18.17.52.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jan 2012 17:52:59 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 18 Jan 2012 17:52:58 -0800 From: YongHyeon PYUN Date: Wed, 18 Jan 2012 17:52:58 -0800 To: Michael Butler Message-ID: <20120119015258.GF7469@michelle.cdnetworks.com> References: <4F174C4F.2010302@protected-networks.net> <20120119005457.GE7469@michelle.cdnetworks.com> <4F176B76.5010809@protected-networks.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: <4F176B76.5010809@protected-networks.net> User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org Subject: Re: Intermittent re0 phy failure 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, 19 Jan 2012 01:53:01 -0000 --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jan 18, 2012 at 08:01:42PM -0500, Michael Butler wrote: > On 01/18/12 19:54, YongHyeon PYUN wrote: > > On Wed, Jan 18, 2012 at 05:48:47PM -0500, Michael Butler wrote: > >> At random intervals, when re0 is without any significant load; idle for > >> lengthy periods, I see .. > >> > >> kernel: re0: PHY read failed > >> last message repeated 4 times > >> kernel: re0: link state changed to DOWN > >> > >> Unplugging the cable and re-inserting is sufficient to restore > >> functionality. > >> > >> kernel is @ SVN r230276 > >> > >> Any ideas how to track this down? > > > > Knowing which kind of controller you have would be more helpful. > > Show me both re(4)/rgephy(4) related message from dmesg and > > 'devinfo -rv | grep rgephy' output. > > > > As requested: > > dmesg: > > re0: port > 0x2000-0x20ff mem 0xf0700000-0xf0700fff,0xf0200000-0xf0203fff irq 17 at > device 0.0 on pci3 > re0: MSI count : 1 > re0: MSI-X count : 4 > re0: attempting to allocate 1 MSI-X vectors (4 supported) > msi: routing MSI-X IRQ 257 to local APIC 0 vector 51 > re0: using IRQ 257 for MSI-X > re0: Using 1 MSI-X message > re0: ASPM disabled > re0: Chip rev. 0x28000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: OUI 0x00e04c, model 0x0011, rev. 2 > rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, > 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, > 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, > 1000baseT-FDX-flow-master, auto, auto-flow > > devinfo -rv | grep rgephy > rgephy0 pnpinfo oui=0xe04c model=0x11 rev=0x2 at phyno=1 > Thanks a lot. Would you try attached patch? --DKU6Jbt7q3WqK7+M Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="re.8168d.diff" Index: sys/dev/re/if_re.c =================================================================== --- sys/dev/re/if_re.c (revision 230315) +++ sys/dev/re/if_re.c (working copy) @@ -1433,11 +1433,16 @@ sc->rl_flags |= RL_FLAG_MACSLEEP; /* FALLTHROUGH */ case RL_HWREV_8168CP: - case RL_HWREV_8168D: sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD | RL_FLAG_JUMBOV2 | RL_FLAG_WOL_MANLINK; break; + case RL_HWREV_8168D: + sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM | + RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | + RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD | RL_FLAG_JUMBOV2 | + RL_FLAG_WOL_MANLINK; + break; case RL_HWREV_8168DP: sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_AUTOPAD | --DKU6Jbt7q3WqK7+M--