From owner-freebsd-current@FreeBSD.ORG Tue Nov 28 11:53:11 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97CC416A417 for ; Tue, 28 Nov 2006 11:53:11 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1414943C9D for ; Tue, 28 Nov 2006 11:53:08 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1266842pyh for ; Tue, 28 Nov 2006 03:53:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:reply-to:mime-version:content-type:content-disposition:user-agent; b=GqijKC18oU6yiP8Furkq8oI8vn8+FU7Ru/smGzvCj6dhZZyBRozqcMh0+l7RqEbygwmucIvA9ydfIbomrA/b3wcfXN9aYmpDKPIcsZNnQ2eJPkNPU9qC/G/EhDfgMoQ345ovW7adUVLnLJw9HJMsQSdMGLlJ+qKK7Zm9zs22j7M= Received: by 10.35.129.19 with SMTP id g19mr1462363pyn.1164714790250; Tue, 28 Nov 2006 03:53:10 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id f77sm15757333pyh.2006.11.28.03.53.08; Tue, 28 Nov 2006 03:53:09 -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 kASBtdPh069512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 28 Nov 2006 20:55:39 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id kASBtcn1069511 for freebsd-current@FreeBSD.org; Tue, 28 Nov 2006 20:55:38 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 28 Nov 2006 20:55:38 +0900 From: Pyun YongHyeon To: freebsd-current@FreeBSD.org Message-ID: <20061128115538.GB66517@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: Call for e1000phy(4) testers. 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: Tue, 28 Nov 2006 11:53:11 -0000 Hi, I had been writing msk(4) for FreeBSD and realized that e1000phy(4) is buggy on newer Marvell PHYs. For example, manual media selection didn't work at all and I had to stick to autoselection of the media type. The Marvell PHYs are widely used on various NICs including em(4), stge(4), sk(4), msk(4) and nfe(4). Except em(4) which does not support MII layers, correct operation of e1000phy(4) is very important to get a good link with link partner and to report link state changes to upper layers(e.g. dhclinet(8)). With this patch you should be able to set a media type without relying on autoselection and it should supports automatic crossover for all known Marvell PHYs. I've tried hard not to break existing behaviour(e.g. Fiber transceivers) but I can't verify that as I don't have any NICs that have Marvell Fiber transceivers. The patch is somewhat ugly in that it should read a PHY ID register in several palces. It seems that there is no easy way to avoid the reading until we have PHY model/revision numbers in mii softc. If you are one of users that use stge(4), sk(4), msk(4) and nfe(4) please test and report any strange things not observed on stock version. Note for nfe(4) users: It seems that nfe(4) has bugs that it can't send packets on half-duplex media(I've got "tx v1 error 0x6004"). I guess this comes from mismatches between PHY and MAC. So you may have to set full-duplex on nfe(4) until we have a fix for the issue. You can get the latest e1000phy(4) driver from the following URL. http://people.freebsd.org/~yongari/msk/e1000phy.c http://people.freebsd.org/~yongari/msk/e1000phyreg.h http://people.freebsd.org/~yongari/msk/miidevs OR get a jumbo patch for CURRENT. http://people.freebsd.org/~yongari/msk/e1000phy.patch Thanks. -- Regards, Pyun YongHyeon