From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 30 10:01:01 2005 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B52116A4CE for ; Wed, 30 Mar 2005 10:01:01 +0000 (GMT) Received: from rndsoft.co.kr (michelle.rndsoft.co.kr [211.32.202.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7E3443D41 for ; Wed, 30 Mar 2005 10:01:00 +0000 (GMT) (envelope-from yongari@rndsoft.co.kr) Received: from yongari@rndsoft.co.kr(192.168.5.90) by MailFilter v1.05 with ESMTP; 30 Mar 2005 18:59:30 +0900 Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j2UA0lGq002059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Mar 2005 19:00:47 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j2UA0gIA002058; Wed, 30 Mar 2005 19:00:42 +0900 (KST) (envelope-from yongari@rndsoft.co.kr) Date: Wed, 30 Mar 2005 19:00:42 +0900 From: Pyun YongHyeon To: jacques brierre Message-ID: <20050330100042.GF1771@michelle.rndsoft.co.kr> References: <424998E0.5030605@bellsouth.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <424998E0.5030605@bellsouth.net> User-Agent: Mutt/1.4.2.1i cc: freebsd-sparc64@freebsd.org Subject: Re: problem with sparc64 networking/qfe port config. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@rndsoft.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 10:01:01 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 29, 2005 at 01:05:20PM -0500, jacques brierre wrote: > Hi all, > > I am having some problems and am not sure if I understand what's going on. > Had network configuration problem with 5.3 release on Sparc Ultra 2. It has > on-board hme, and qfe card. Was not able to use qfe ports... kept getting > ipv6 duplicate address errors (i only use ipv4, mind you). > > I just installed (from scratch) 5.4 release. and i seem to have the same > problem, only this time it starts when i config the first hme network port. > > Any ideas? > I'd really like to be able to use the other (qfe) network ports. > > Any ideas appreciated. > > thanks. > -jacques brierre. > > > sphynx# uname -a > FreeBSD sphynx.homeunix.net 5.4-BETA1 FreeBSD 5.4-BETA1 #0: Fri Mar 18 > 20:22:13 > UTC 2005 root@binkley.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > sparc64 > sphynx# > > > I am NOT using ipv6 and there is my problem again! > > # ifconfig hme0 inet 172.16.1.110 netmask 255.255.255.0 up > # ifMar 28 23:37:56 kernel: hme0: DAD detected duplicate IPv6 address > fe80:0001::0a00:20ff:fe85:7364: NS in/out=1/1, NA in=0 > Mar 28 23:37:56 kernel: hme0: DAD complete for > fe80:0001::0a00:20ff:fe85:7364 - > duplicate found > Mar 28 23:37:56 kernel: hme0: manual intervention required > > # ifconfig -a > hme0: flags=8843 mtu 1500 > options=b > inet6 fe80::a00:20ff:fe85:7364%hme0 prefixlen 64 duplicated > scopeid 0x1 > inet 172.16.1.110 netmask 0xffffff00 broadcast 172.16.1.255 > ether 08:00:20:85:73:64 > media: Ethernet autoselect (10baseT/UTP) ^^^^^^^^^^^^^ According to NetBSD's source, it seems HME is "SIMPLEX" if used in full-duplex mode. But I can't sure it affects both 10Mbps and 100Mbps mode. How about attached patch(not tested, borrowed from NetBSD)? > status: active PS: Due to real life thing I have little time to test/experiment /commit this one. It would be great if any committers can hanle this. -- Regards, Pyun YongHyeon http://www.kr.freebsd.org/~yongari | yongari@freebsd.org --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_hme.simplex.patch" --- if_hme.c.orig Wed Mar 23 06:51:58 2005 +++ if_hme.c Wed Mar 30 14:47:46 2005 @@ -1496,10 +1496,13 @@ HME_UNLOCK(sc); return; } - if ((IFM_OPTIONS(sc->sc_mii->mii_media_active) & IFM_FDX) != 0) + if ((IFM_OPTIONS(sc->sc_mii->mii_media_active) & IFM_FDX) != 0) { v |= HME_MAC_TXCFG_FULLDPLX; - else + sc->sc_arpcom.ac_if.if_flags |= IFF_SIMPLEX; + } else { v &= ~HME_MAC_TXCFG_FULLDPLX; + sc->sc_arpcom.ac_if.if_flags &= ~IFF_SIMPLEX; + } HME_MAC_WRITE_4(sc, HME_MACI_TXCFG, v); if (!hme_mac_bitflip(sc, HME_MACI_TXCFG, v, 0, HME_MAC_TXCFG_ENABLE)) { HME_UNLOCK(sc); --gBBFr7Ir9EOA20Yy--