From owner-freebsd-net@FreeBSD.ORG Fri Sep 5 08:23:32 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A9391065674 for ; Fri, 5 Sep 2008 08:23:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 016FE8FC13 for ; Fri, 5 Sep 2008 08:23:31 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so453007rvf.43 for ; Fri, 05 Sep 2008 01:23:31 -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=2v01+UEB4X8tcdgIfWuInNnRpGJYq5GZ7rUSHke6RyU=; b=YK1Yx8+cvzZ8nSGyq4dKwHhm72JVq9iCVsVfcXQ7zu2vjlAFRg7jwFoRGVaPILc/6o TSPYMushUnyQQMXydhALpe6aOHYiMtyfDcTYHOPq/xXYbK4zYwmPqOjj9DKEJLA02MGE I2BCIRO7hV9eevsUSHH8USBQqcF6RdrbgrCOc= 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=qNJqHoAdi3bAo0lKt9tvCelubJVSSD2fAoPnrx789wfLWKpQUPAB07SBcqwxo4dwS8 Hi0P0i+mbEeVuVxfTbTZgxcfa8jhyX0zZr+ncaTVuLcRndMOfWHZYG2mUZEDfthvvL9g BRBj+OnO1C3YAYGrdHUFCc4Ctc+gbyB+iq8j4= Received: by 10.140.135.19 with SMTP id i19mr5276664rvd.169.1220603011654; Fri, 05 Sep 2008 01:23:31 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id b8sm19179902rvf.4.2008.09.05.01.23.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Sep 2008 01:23:30 -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 m858NQoW067172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Sep 2008 17:23:26 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m858NMmT067171; Fri, 5 Sep 2008 17:23:22 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 5 Sep 2008 17:23:22 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20080905082322.GA66951@cdnetworks.co.kr> References: <200809050945.09276.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <200809050945.09276.freebsd-net@dino.sk> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: MSI Wind Notebook's network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2008 08:23:32 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 05, 2008 at 09:45:08AM +0200, Milan Obuch wrote: > Hi, > I have new notebook, MSI's Wind, and installed succesfully both FreeBSD-7 > and -CURRENT. > > In 7.0-RELEASE wired network interface did not work, but after upgrading to > 7-STABLE (now 7.1-PRERELEASE) it work with re driver. There is just one small > uglyness - it's link level address (MAC) is 00:00:00:00:00:00. Needless to > say, Windows initializes this to 00:1d:92:59:f5:8b. I can change it > with 'ifconfig re0 ether 00:1d:92:59:f5:8b', but I would rather let the > driver to find the correct MAC. > > While everything works (I am csup'ing sources over its re0, which is a good > test in my experience), if anybody have any idea/patch to test, I would like > to do it. > > Some data collected: > > ifconfig re0 > re0: flags=8843 metric 0 mtu 1500 > > options=389b > ether 00:00:00:00:00:00 > inet 192.168.16.235 netmask 0xffffff00 broadcast 192.168.16.255 > media: Ethernet autoselect (100baseTX ) > status: active > > pciconf -lcv (part of) > re0@pci0:1:0:0: class=0x020000 card=0x01101462 chip=0x813610ec rev=0x02 > hdr=0x00 > vendor = 'Realtek Semiconductor' > device = 'RTL8139/810x Family Fast Ethernet NIC' > class = network > subclass = ethernet > cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 > cap 05[50] = MSI supports 1 message, 64 bit > cap 10[70] = PCI-Express 2 endpoint IRQ 0 > cap 11[ac] = MSI-X supports 2 messages in map 0x20 > cap 03[cc] = VPD > > dmesg (part of verbose boot) > re0: port 0xc000-0xc0ff mem > 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on pci1 > re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xffd10000 > re0: MSI count : 1 > re0: Chip rev. 0x34800000 > re0: MAC rev. 0x00200000 > miibus0: on re0 > rlphy0: PHY 1 on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > re0: bpf attached > re0: [MPSAFE] > re0: [FILTER] > > When not booting verbose, there is also one line telling > re0: turning off MSI enable bit. > re(4) cleared MSI enable bit of configuration register as MSI wouldn't be used. You can ignore this. > This netbook has also wireless interface, but this one does not get detected > (or I have no driver for it), in dmesg there is only line telling > pci2: at device 0.0 (no driver attached) > > and relevant part of pciconf -lcv is > none0@pci0:2:0:0: class=0x028000 card=0x68941462 chip=0x819910ec > rev=0x22 hdr=0x00 > vendor = 'Realtek Semiconductor' > class = network > cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 > cap 05[50] = MSI supports 1 message, 64 bit > cap 10[70] = PCI-Express 1 legacy endpoint > > While currently I have no urge need for wireless connectivity, in the long run > I would like to use it. Currently I can't change card (probably minipci) as > netbook is under warranty, with 'warranty sticker - void if tampered' over > screw. > > If anybody had some idea how to fix MAC address initialization for wired Would you try attached patch? > interface or what driver to use for wireless interface (I will probably try > NDIS, but my experience in this area is limited and previous succesfull try > none), I am all ears. > > Regars, > Milan -- Regards, Pyun YongHyeon --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="re.810E.patch" --- sys/dev/re/if_re.c.orig Wed Aug 13 12:40:08 2008 +++ sys/dev/re/if_re.c Fri Sep 5 17:18:40 2008 @@ -1213,7 +1213,8 @@ case RL_HWREV_8102E: case RL_HWREV_8102EL: sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR | - RL_FLAG_PHYWAKE | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT; + RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | + RL_FLAG_MACSTAT; break; case RL_HWREV_8168_SPIN1: case RL_HWREV_8168_SPIN2: --gBBFr7Ir9EOA20Yy--