From owner-freebsd-net@FreeBSD.ORG Sat Sep 6 00:46:39 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 C98A910656D5 for ; Sat, 6 Sep 2008 00:46:39 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3786B8FC17 for ; Sat, 6 Sep 2008 00:46:37 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so371165tid.3 for ; Fri, 05 Sep 2008 17:46:34 -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=0w4hV72ysMs5JkAcsqa7sl9q7U3EHxo579BaxhIjgOg=; b=WBJ7f1gKj1dE94N0kuiDFQ+Ekeup4YRDV0tdTaKbxeHpGgtxZWlsoMFEpijjEQw6GR rJxmB+ptd4Y9clvhiZoaEgUehTbY1iiN49i6pOUDiUWZ2QFxmxuk2bSZqRB68WUwknuL 9TM9wBdsviN04d69YmkhVag7P/7sPRQMy1DRA= 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=YBVyJLI8/fvzCYofpHrlHjnqxXpqn18bVNZx+ddpdtMvPJVnzJI9boymg0P+rrwnoT o73i35EKNmGTwtTOIIjk90hqHKlnKWO2aahGV8QAJmCf5BfBRpq6Xab0xaqsTdJKPuiw K905eQ9AdB3Za37rcPaVL+BqDZOsZvnFr5yrc= Received: by 10.110.47.17 with SMTP id u17mr15804400tiu.49.1220661994798; Fri, 05 Sep 2008 17:46:34 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id a14sm1969621tia.0.2008.09.05.17.46.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Sep 2008 17:46:33 -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 m860kTxO070076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Sep 2008 09:46:29 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m860kR6K070075; Sat, 6 Sep 2008 09:46:27 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 6 Sep 2008 09:46:27 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20080906004627.GA69867@cdnetworks.co.kr> References: <200809050945.09276.freebsd-net@dino.sk> <20080905082322.GA66951@cdnetworks.co.kr> <200809051643.52950.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809051643.52950.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: Sat, 06 Sep 2008 00:46:40 -0000 On Fri, Sep 05, 2008 at 04:43:51PM +0200, Milan Obuch wrote: > On Friday 05 September 2008 10:23:22 Pyun YongHyeon wrote: > > On Fri, Sep 05, 2008 at 09:45:08AM +0200, Milan Obuch wrote: > > [ snip ] > > > > 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. > > [ snip ] > > > > 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. > > > > OK, but what surprised me a bit was the fact this line is not present in dmesg > when booting verbose. I would expect all lines from normal boot in verbose > boot... > That MSI information is stored in EEPROM. So you wouldn't see the message again if MSI enable bit was already cleard. Since re(4) clears the bit subsequent booting wouldn't touch the MSI enable bit in EEPROM. > > > 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? > > > > I tried on freshly csup'ped head and it works. Ethernet link address is now > correctly set. Great! It looks like a kind of magic at first glance :) > I've commited the patch to HEAD(r182808). Thanks for your testing! -- Regards, Pyun YongHyeon