From owner-freebsd-net@FreeBSD.ORG Sun Oct 21 16:20:58 2007 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0576716A418 for ; Sun, 21 Oct 2007 16:20:58 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id D316113C4C4 for ; Sun, 21 Oct 2007 16:20:57 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1044758waf for ; Sun, 21 Oct 2007 09:20:46 -0700 (PDT) Received: by 10.114.201.1 with SMTP id y1mr3596788waf.1192935875149; Sat, 20 Oct 2007 20:04:35 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id k23sm6063741waf.2007.10.20.20.04.31 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 20 Oct 2007 20:04:33 -0700 (PDT) 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 l9L30tH2000211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Oct 2007 12:00:55 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l9L30r4W000210; Sun, 21 Oct 2007 12:00:53 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sun, 21 Oct 2007 12:00:53 +0900 From: Pyun YongHyeon To: Garrett Cooper Message-ID: <20071021030053.GA99816@cdnetworks.co.kr> References: <20071019182349.J97691@odysseus.silby.com> <47194EA1.8000402@u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47194EA1.8000402@u.washington.edu> User-Agent: Mutt/1.4.2.1i Cc: net@freebsd.org Subject: Re: Marvell chipsets on 8-CURRENT and XP x64 won't talk with one another X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 16:20:58 -0000 On Fri, Oct 19, 2007 at 05:41:05PM -0700, Garrett Cooper wrote: > Mike Silbersack wrote: > > > >On Fri, 19 Oct 2007, Garrett Cooper wrote: > > > >>Hi, > >> In an effort to connect my 2 machines up -- the FreeBSD 8-CURRENT > >>and the Windows box, for filesharing via SMB I've installed samba3 > >>and done that song and dance to get things to work. The really weird > >>thing is that my 2 machines will talk via ICMP with one another, but > >>not via TCP and/or UDP (connections time out). Thinking that it was > >>just a samba3 issue, I tried ssh as well (Cygwin installed), and ssh > >>connections (Windows to FreeBSD) fails with connection timeouts as well. > >> Both machines have Marvell onboard chipsets and will communicate > >>with my Mac OSX 10.4.9 iBook (has a Broadcom chipset) without issue > >>(in fact that's what I'm using as my 'bridge' right now). I tried > >>also using an SMB client via my Xbox but that failed as well (then > >>again the XBMC SMB client tended to be really quirky if setup > >>incorrectly). > >> I'm not sure where to start, so if there are any ideas I'd be > >>more than happy to hear them. This issue has been occurring from > >>7-CURRENT built in late September to 8-CURRENT built 6 days ago. > >>Thanks, > >>-Garrett > > > >Just to clarify, how are the two hooked together? Is it over gigabit > >switch, a 10mbps hub, or directly cabled together? > > > >-Mike > > Sure. They're both connected over a gigabit switch, but the Windows > driver's kind of sketchy because it keeps on switching between 100MBit > and 1GBit. I haven't really paid that much attention to what speed the > FreeBSD msk driver is registering at. I'm not sure but it looks like bad-cabling issue. Gigabit link partners requires four-pair RJ-45 cable to establish 10/100/1000Mbps link. The e1000phy(4) has lack of downshift feature of Marvell PHY. Without the downshift feature two-pairs RJ-45 cable can negotiate to 1000Mbps but fails to link with link-partner. Activating downshift feature will retry to link at 10Mbps or 100Mbps such that you can send/receive frames at 10/100Mbps. Unfortunately, the bit positions that enable the downshift feature is different for each PHY models and the vendor didn't release these information to developers. Even if we had managed to make downshift feature available for the PHY there are no user interface to get/set the feature in mii layer. Flow-controls, master/slave configuration, MDI/MDIX selection, polarity correction, DTE detection and downshift feature needs more work in mii layer, I guess. -- Regards, Pyun YongHyeon