From owner-freebsd-stable@FreeBSD.ORG Wed Jul 2 01:11:41 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9AD81065675 for ; Wed, 2 Jul 2008 01:11:41 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 69AB58FC1B for ; Wed, 2 Jul 2008 01:11:41 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so199867rvf.43 for ; Tue, 01 Jul 2008 18:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=WtihZ0bp7vsKatlDz+YXK4xCifNyxBb1aaZQOi16sRs=; b=oyNvOcWBXdjgqbL6OD/0ldf+aJF90NVJAgXMxMSl9WfzYexcPCdEHoWVo7YnAKuvah 81UD0kdtFPUctoSAkwJ88sj25imJN1JTWrv+5LctDl0IWmLLZ41U8WuNvaPoa7ify6R0 Vxjn9P+Bl7tGcozrr9n8MzxpTCjpDfITh9AA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Ke8nBlHIBegoNMpXSKRPAwc3/uMEScVI1Ox4Ee6uEVUJLQ0cniatogbJcOt3rKCBmH ePfmMKUmnRpnQW8Lfiq9OlEtqMejw6inaoRMArzUyIByhNuFD4R+oEttmMxEB2ESHKLd eT6RXwT1ohHLvkuw78MVlC11zE2kUVNhoLtZI= Received: by 10.140.136.6 with SMTP id j6mr4012408rvd.231.1214961101105; Tue, 01 Jul 2008 18:11:41 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id g31sm11200860rvb.2.2008.07.01.18.11.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jul 2008 18:11:40 -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 m6219VWa088257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jul 2008 10:09:31 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m6219Tl5088256; Wed, 2 Jul 2008 10:09:29 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 2 Jul 2008 10:09:29 +0900 From: Pyun YongHyeon To: Krzysztof J??druczyk Message-ID: <20080702010929.GA87933@cdnetworks.co.kr> References: <1052423937.20080630135423@hot.pl> <20080701004855.GF83626@cdnetworks.co.kr> <486A07A4.1070406@hot.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <486A07A4.1070406@hot.pl> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: Marvell Yukon 88E8062 - media selection problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 01:11:41 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 01, 2008 at 12:32:04PM +0200, Krzysztof J??druczyk wrote: > Hi, > > Pyun YongHyeon wrote: > >The 88E8062 support wasn't tested due to lack of hardware and I just > >copied the device id from myk driver. Would you show me the output > >of "devinfo -rv| grep oui" ? Also it would be better if I can see > >verbosed boot message. > > > > Here you go: > > # devinfo -rv | grep oui > e1000phy0 pnpinfo oui=0x5043 model=0x9 rev=0x1 at phyno=0 > e1000phy1 pnpinfo oui=0x5043 model=0x9 rev=0x1 at phyno=0 > inphy0 pnpinfo oui=0xaa00 model=0x15 rev=0x4 at phyno=1 > > And dmesg with '-v' in boot.config and 'verbose_loading="YES"' in > loader.conf: > Would you try attached patch? The patch is just for checking code path of fiber media. Btw, it looks like you have dual port controller, right? -- Regards, Pyun YongHyeon --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="e1000phy.fiber.patch" --- sys/dev/mii/e1000phy.c.orig 2007-11-21 14:51:55.000000000 +0900 +++ sys/dev/mii/e1000phy.c 2008-07-02 09:57:39.000000000 +0900 @@ -148,10 +148,13 @@ esc->mii_model = MII_MODEL(ma->mii_id2); switch (esc->mii_model) { case MII_MODEL_MARVELL_E1011: - case MII_MODEL_MARVELL_E1112: if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) sc->mii_flags |= MIIF_HAVEFIBER; break; + case MII_MODEL_MARVELL_E1112: + /* XXX Should have a way to get instance info. */ + sc->mii_flags |= MIIF_HAVEFIBER; + break; case MII_MODEL_MARVELL_E3082: /* 88E3082 10/100 Fast Ethernet PHY. */ sc->mii_anegticks = MII_ANEGTICKS; --nFreZHaLTZJo0R7j--