Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2009 14:22:23 -0700
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Re: D-Link DGE-560SX (Marvell 88E8061-based) doesn't see link
Message-ID:  <20090904212223.GA9950@michelle.cdnetworks.com>
In-Reply-To: <20090901161310.GA37481@traktor.dnepro.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090904212223.GA9950>