From owner-freebsd-current@FreeBSD.ORG Sun Feb 17 06:51:24 2008 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 C85A316A41A for ; Sun, 17 Feb 2008 06:51:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id A401C13C45A for ; Sun, 17 Feb 2008 06:51:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2103279waf.3 for ; Sat, 16 Feb 2008 22:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=5IpZdcAY0Z+MHohRkwYp1vwlw2S3VOsj2ZzLjmR3ICQ=; b=GxsbrZaD8SkSS/HRUMz87TyFCb3zmHP9Mut0HVvN12cjtQenkzSS3EwkJSY7rgzGLSwBMn158G/RbbNhItkhKC1IALTh0qwsI/dxrtTQpmBUfjndyTW9o7qixWAgRsDDphMxwEqTHyuMW5WlRJCXEj6HQHdkY6zKHsWWBLXDZfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=rou109XE90IeVSb2jGLpocY94xqYmoek6NOkzH0H7fTlhWJ7XzhBlG7QTVJ/hTq7YhXm9P7X8H2+R7zTSa/x3RFJsT8zn3vlykYZwOqZOuE7eVFI+b83vbZxOG6f/2IuDewGkC/ydcMDdEfvpOKlZErzZ2gp+2+olAMUvqi9XOY= Received: by 10.142.131.18 with SMTP id e18mr3468914wfd.36.1203231084339; Sat, 16 Feb 2008 22:51:24 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id 30sm14366814wff.11.2008.02.16.22.51.22 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Feb 2008 22:51:23 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m1H6pJkj011485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 17 Feb 2008 15:51:19 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m1H6pI9k011484; Sun, 17 Feb 2008 15:51:18 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sun, 17 Feb 2008 15:51:18 +0900 From: Pyun YongHyeon To: Marcin Wisnicki Message-ID: <20080217065118.GA11464@cdnetworks.co.kr> References: <20080204022334.GC27999@cdnetworks.co.kr> <200802041545.m14FjpVn014969@lava.sentex.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: CFT: vr(4) 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: Sun, 17 Feb 2008 06:51:24 -0000 On Sun, Feb 10, 2008 at 03:59:16PM +0000, Marcin Wisnicki wrote: > On Mon, 04 Feb 2008 17:47:44 +0000, Marcin Wisnicki wrote: > > > I'm not 100% sure if this is all that is required for RELENG6, but it > > works wonderfully so far. > > > > Even fixed Rx errors I was seeing for some time and didn't have the time > > to investigate whether they were caused by some recent commit to releng6 > > (like the last mfc) or simply a hardware failure. > > > > Thank you Pyun YongHyeon! > > > >>From my dmesg: > > vr0: port 0xd800-0xd8ff mem > > 0xdffefd00-0xdffefdff irq 5 at device 18.0 on pci0 vr0: Quirks: 0x0 > > vr0: Revision: 0x74 > > miibus1: on vr0 > > ukphy0: on miibus1 ukphy0: > > 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet > > address: 42:00:e6:65:9b:11 vr0: [GIANT-LOCKED] > > > > Just noticed in dmesg after reboot: > > vr0: Tx underrun -- increasing Tx threshold(128 -> 256) > vr0: Tx underrun -- increasing Tx threshold(256 -> 512) > vr0: Tx underrun -- increasing Tx threshold(512 -> 1024) > vr0: Tx underrun -- using store and forward mode > vr0: Tx underrun -- > > at this moment I started copying files in and out using samba > and then last message started to repeat for some time with decreasing > frequency until finally: > > vr0: watchdog timeout > Since you're the only user that reported Tx underrun errors and watchdog timeouts, I'd like to know waht caused the error. If you can reliably reproduce the Tx underrun, would you change the vr(4) code as the following and test again? From:if_vr.c 689 /* Configure Tx FIFO threshold. */ 690 sc->vr_txthresh = VR_TXTHRESH_MIN; 691 if ((sc->vr_quirks & VR_Q_CSUM) != 0) { 692 ifp->if_hwassist = VR_CSUM_FEATURES; To: 689 /* Configure Tx FIFO threshold. */ 690 sc->vr_txthresh = VR_TXTHRESH_MIN; 691 if (sc->vr_revid < REV_ID_VT6105_A0) 692 sc->vr_txthresh = VR_TXTHRESH_MAX; 693 if ((sc->vr_quirks & VR_Q_CSUM) != 0) { 694 ifp->if_hwassist = VR_CSUM_FEATURES; > and no more errors were reported. > > Despite the errors in dmesg everything seems to work fine at all times > with samba tx performance of 9.5mb/s and rx of 8.5mb/s using Vista as a > client. > -- Regards, Pyun YongHyeon