From owner-freebsd-current@FreeBSD.ORG Tue Sep 22 23:54:39 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 127F8106566B for ; Tue, 22 Sep 2009 23:54:39 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id BA8EF8FC17 for ; Tue, 22 Sep 2009 23:54:38 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so89113qwe.7 for ; Tue, 22 Sep 2009 16:54:38 -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:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=+sWnCViPFWCcEkCjOxBfb1/voBhwuXpdDUOiPHVHzjw=; b=d5Nero21RM20KOENCJXF7yuscDa0Uiho+au8qmVWPx4kbBbQZtVhMZuzzFa7KtiSsK 99DJOs4KpqEEVNhzHnbAvj/ppkNeUKvkVJMcUlQq6GXf8BdmaTOVjFmTfexzqlfqvKkq ERyCEbyoo5z/3T3OHBhmiM0tDpGGHFPTqAy9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=D+Ud1VQhJFOHOKU3XWiDfNMI94+EBK128Q4q55yq0Btcs+R2kooORffkdodAC5AxTk hy2pUUlZ+xKyBogVvO1Vo2+JqXThm62dAymEpK0JbJ94un8uYOA2TBcliu7INt2iOky+ EvR3/9MlbA3SDvupTOIkoO1x+/uvhJ6Ap+fSw= Received: by 10.224.57.21 with SMTP id a21mr1373744qah.122.1253663677848; Tue, 22 Sep 2009 16:54:37 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 5sm335046qwh.18.2009.09.22.16.54.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Sep 2009 16:54:37 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 22 Sep 2009 16:53:50 -0700 From: Pyun YongHyeon Date: Tue, 22 Sep 2009 16:53:50 -0700 To: Kristof Provost Message-ID: <20090922235350.GB1520@michelle.cdnetworks.com> References: <20090922211012.GE19069@nereid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090922211012.GE19069@nereid> User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org Subject: Re: mge, mii/e1000phy 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, 22 Sep 2009 23:54:39 -0000 On Tue, Sep 22, 2009 at 11:10:18PM +0200, Kristof Provost wrote: > Hi, > > I've been trying to get CURRENT running on a TS-7800 [1]. > It's based around a Marvell Orion SoC, with a Marvell 88E1118 PHY. > > It boots and tries to do bootpc_init. This fails because there are no > packets coming in or going out. > > A few thing's I've noticed: > - The PHY is misdetected as an 88E1116. Changing sys/dev/mii/miidevs so > it's detected as the 88E1118 it really is doesn't help. Please show me the output of "devinfo -rv | grep phy". > - sys/dev/mii/e1000phy.c appears to contain a bug: > e1000phy_reset performs a switch on MII_MODEL(esc->mii_model) while > the rest of the code just uses esc->mii_model. This seems to be wrong > as the cases for 1118 (or 1116) are not triggered. Changing this also > doesn't appear to help. It's not a bug. First, I have to see your PHY id to know why you think so. > - Forcing the mge driver to IFM_100_TX (in mge_set_port_serial_control) > does work. The system manages to acquire a DHCP address. Would you also show me the output of "ifconfig -m mge0"? I'm not author of mge(4) so I'm not familiar with mge(4). But it seems that mge(4) lacks link state change handler. Normally NICs are required to reprogram MAC to match resolved speed/duplex/ flow-control of link when it know it established a valid link which is notified from mii(4). > - CURRENT does work correctly on my Sheevaplug, which has a Marvell > 88E1116R PHY (at least, it's identified as one, I've not checked any > further). > > Does anyone have any ideas on what might be causing this or what to try next? > > Kristof > > [1] http://www.embeddedarm.com/products/board-detail.php?product=TS-7800 >