From owner-freebsd-net@FreeBSD.ORG Fri Sep 4 21:23:26 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 946891065672 for ; Fri, 4 Sep 2009 21:23:25 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1538FC08 for ; Fri, 4 Sep 2009 21:23:24 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so321003qwe.7 for ; Fri, 04 Sep 2009 14:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:subject :message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=cBVdnTo44tgyoA0+addtldNEhGRAkG7VJBo2aHIsxbY=; b=Mcv+1H50X3uhThhG6kHXgq3nA7YAoFib9c+HmfpZ/jN7gaxVuvXDV7ZGe3UjHENYjT fgRf0oo5D9ZFjMZiYsbmhNOczwfdhFE69OQgGnDDWS5NG3/o8xGqrkAeLg0wCyniL7gc mzajjP6RqTJuV8YFWxoSxgl0QHcu6jLCMwmw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=bdYxfEGIbbdKAZU0WG3cLoncfE/u1jMmMDcltPYSUUGiduMyil2IxN6Q48XZ06yecr eGpPDGasz5Rhz4Dtl2THenVHK6aAsmLddsM34jATK5tUpvqFKkWEaXFJNslV1j65oSwk aPeOsQgB+vLE7eTdt8NKQjQKWC6CmUjkrVyS0= Received: by 10.224.64.207 with SMTP id f15mr7853494qai.167.1252099404436; Fri, 04 Sep 2009 14:23:24 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 20sm824267qyk.5.2009.09.04.14.23.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Sep 2009 14:23:22 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 4 Sep 2009 14:22:23 -0700 From: Pyun YongHyeon Date: Fri, 4 Sep 2009 14:22:23 -0700 To: freebsd-net@freebsd.org Message-ID: <20090904212223.GA9950@michelle.cdnetworks.com> References: <20090821142039.GA40018@traktor.dnepro.net> <20090821221932.GE1262@michelle.cdnetworks.com> <20090825083857.GA22983@traktor.dnepro.net> <20090825114649.GA11642@traktor.dnepro.net> <20090825130821.GA41669@traktor.dnepro.net> <20090825182553.GD1282@michelle.cdnetworks.com> <20090826093916.GB10790@traktor.dnepro.net> <20090826094856.GC10790@traktor.dnepro.net> <20090901161310.GA37481@traktor.dnepro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090901161310.GA37481@traktor.dnepro.net> User-Agent: Mutt/1.4.2.3i Subject: Re: D-Link DGE-560SX (Marvell 88E8061-based) doesn't see link 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: Fri, 04 Sep 2009 21:23:26 -0000 On Tue, Sep 01, 2009 at 07:13:10PM +0300, Eugene Perevyazko wrote: > On Wed, Aug 26, 2009 at 12:48:56PM +0300, Eugene Perevyazko wrote: > > On Wed, Aug 26, 2009 at 12:39:16PM +0300, Eugene Perevyazko wrote: > > > On Tue, Aug 25, 2009 at 11:25:53AM -0700, Pyun YongHyeon wrote: > > > > > > > > Try attached patch and let me know how it goes on your box. > > > > You can see statistics counters maintained in driver with sysctl. > > > > "sysctl dev.msk.0.stats" will show some numbers if it can see > > > > packets on wire. > > > > > > With attached patch NIC doesn't see link again. > > > All counters in dev.msk.0.stats are 0s. > > > > > > > At the same time the link led on NIC is on, and switch shows that port is up. > > That's different from the unpatched system, where led was off and switch port > > was down. > > > > Any chances to get that NIC working? I tried to look at linux driver for it > (sk98lin) but quickly got lost - it's about 700 lines only for > SkGmInitPhyMarv() - Initialize the Marvell PHY registers sk98lin driver is much more complex than sky2 driver. I agree Linux sky2 driver is also hard to read but I guess it mainly cames from numerous workarounds for vendor's broken controller. > And hw programming is definitely not my expertise :( > Would you back out previous changes and apply the patch at the following URL? http://people.freebsd.org/~yongari/msk/msk.DGE560.diff2 Note, I have no more access to msk(4) hardwares so it wasn't tested at all except compilation. > -- > Eugene Perevyazko