From owner-freebsd-stable@FreeBSD.ORG Fri Aug 24 01:53:00 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AE05106564A; Fri, 24 Aug 2012 01:53:00 +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 22FB68FC0C; Fri, 24 Aug 2012 01:53:00 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so2558726pbb.13 for ; Thu, 23 Aug 2012 18:53:00 -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=kY6DIHQaFmng7OhjCTNSb+ijF3HDgGppNbOnF9VH0nY=; b=ZBWryLFZtyx6Dfz3dRfRPSpDYRWHwUOMS4Kul76piMwdgEy93vH3mKj/LlDXu865Nt c3/uVb8SpF7LA1khkoMsRKBqxsUPV3iJP8jgETRwunGxX6dGGboZTa15VcziwCUu35Dv 7JhJBoS6pfCzzwIW1YUrdlwZga1JcX2WKPRnHqc643kKU2Ynz4dI2wyCjTLe5XpzvwB6 8EuoZAavtl5L0sHHMrkjd59OSAy+OFS3Of/rOa8RHqX2JdQ2y4XCrsJtMC8w6egP4CeQ iJSlBc5n5QLnSgURAmgyM0PJDZCS99ChPZHJl+ahOe9m0XrAOG0ovmsJjr8YR2QStf9T 9QwA== Received: by 10.68.239.164 with SMTP id vt4mr8988273pbc.118.1345773179878; Thu, 23 Aug 2012 18:52:59 -0700 (PDT) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id pg9sm7182753pbb.26.2012.08.23.18.52.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 18:52:57 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 24 Aug 2012 10:52:48 -0700 From: YongHyeon PYUN Date: Fri, 24 Aug 2012 10:52:48 -0700 To: Anders Nordby Message-ID: <20120824175248.GB3183@michelle.cdnetworks.com> References: <20120703185704.GA81296@fupp.net> <20120705010136.GA3218@michelle.cdnetworks.com> <20120823161505.GA64558@fupp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120823161505.GA64558@fupp.net> User-Agent: Mutt/1.4.2.3i Cc: stable@freebsd.org Subject: Re: bge problems in RELENG_9, bge0: watchdog timeout -- resetting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2012 01:53:00 -0000 On Thu, Aug 23, 2012 at 06:15:05PM +0200, Anders Nordby wrote: > Hi, > > On ons, jul 04, 2012 at 06:01:36pm -0700, YongHyeon PYUN wrote: > > There is a WIP version at the following URL. > > http://people.freebsd.org/~yongari/bge/if_bge.c > > http://people.freebsd.org/~yongari/bge/if_bgereg.h > > http://people.freebsd.org/~yongari/bge/brgphy.c > > > > I have a couple of positive feedbacks but it seems it still has > > some issues. Let me know whether it makes any difference on your > > box. > > I tried these bge source files in 9.1-PRERELEASE this week, and it does > not help. If I try to log in with SSH I get: > > Aug 23 17:30:32 login: ROOT LOGIN (root) ON ttyu0 > bge0: watchdog timeout -- resetting > Aug 23 17:31:31 kernel: bge0: watchdog timeout -- resetting > Aug 23 17:31:31 kernel: bge0: link state changed to DOWN > Aug 23 17:31:35 kernel: bge0: link state changed to UP > bge0: watchdog timeout -- resetting > Aug 23 17:33:24 kernel: bge0: watchdog timeout -- resetting > Aug 23 17:33:24 kernel: bge0: link state changed to DOWN > Aug 23 17:33:28 kernel: bge0: link state changed to UP > > I tried setting hw.bge.allow_asf to 0, but it did not help. The loader tunable has no effect for controllers with APE(Application Processor Engine). > > During boot I get: > > pcib3: at device 2.0 on pci0 > pci3: on pcib3 > pci0:3:0:0: failed to read VPD data. > bge0: mem > 0xf6bf0000-0xf6bfffff0xf6be0000-0xf6beffff,0xf6bd0000-0xf6bdffff irq 32 > at device 0.0 on pci3 > bge0: APE FW version: NCSI v1.0.80.0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ It seems your APE runs slightly newer NC-SI firmware. I was able to reproduce watchdog timeouts on Dell R820 but I'm not sure you're also seeing the same issue here. Due to unknown reason, it seems programming RX MTU register has no effect with BCM5720 on R820. Receiving frames larger than 175(?) bytes seem to hang the controller on R820. Current workaround for the issue is to set the MTU of sender(i.e. link partner or switch) to some low value, 128 for example. That would show poor performance but shall make your controller work. I asked help to Broadcom and waiting for answers/hint from Broadcom. > bge0: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E > miibus0: on bge0 > brgphy0: PHY 1 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-aster, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge0: Ethernet address: 2c:76:8a:54:08:14 > pci0:3:0:1: failed to read VPD data. > bge1: mem > 0xf6bc0000-0xf6bcffff0xf6bb0000-0xf6bbffff,0xf6ba0000-0xf6baffff irq 36 > at device 0.1 on pci3 > bge1: APE FW version: NCSI v1.0.80.0 > bge1: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E > miibus1: on bge1 > brgphy1: PHY 2 on miibus1 > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-aster, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge1: Ethernet address: 2c:76:8a:54:08:15 > pci0:3:0:2: failed to read VPD data. > bge2: mem > 0xf6b90000-0xf6b9ffff0xf6b80000-0xf6b8ffff,0xf6b70000-0xf6b7ffff irq 32 > at device 0.2 on pci3 > bge2: APE FW version: NCSI v1.0.80.0 > bge2: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E > miibus2: on bge2 > brgphy2: PHY 3 on miibus2 > brgphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-aster, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge2: Ethernet address: 2c:76:8a:54:08:16 > pci0:3:0:3: failed to read VPD data. > bge3: mem > 0xf6b60000-0xf6b6ffff0xf6b50000-0xf6b5ffff,0xf6b40000-0xf6b4ffff irq 36 > at device 0.3 on pci3 > bge3: APE FW version: NCSI v1.0.80.0 > bge3: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E > miibus3: on bge3 > brgphy3: PHY 4 on miibus3 > brgphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-aster, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge3: Ethernet address: 2c:76:8a:54:08:17 > > Regards, > > -- > Anders.