From owner-freebsd-net@FreeBSD.ORG Sun Jun 28 16:52:56 2009 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 418E91065673 for ; Sun, 28 Jun 2009 16:52:56 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-px0-f191.google.com (mail-px0-f191.google.com [209.85.216.191]) by mx1.freebsd.org (Postfix) with ESMTP id 108F88FC16 for ; Sun, 28 Jun 2009 16:52:55 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by pxi29 with SMTP id 29so2861447pxi.3 for ; Sun, 28 Jun 2009 09:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=wndb3e/93cqcotTu9YFhVeA1hCs3w8Vnl6au/4tu/28=; b=Rm/XhYU2/HloBij1EPwI2ff7etgr7YGEXb2AuLzqk2xQGbU2DZ5bYsZKl0eGup+g66 /cyWMUXWHFyhxGy7KH4kDMdfr5hwJ56xiKf1ByFrzFBhk0/d2mzFwetGGZFgf5b9sYGC 1tui1Fe2ORw+nhHo2IkFhhjSE400c1qRF5iNM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=aKzAlfUn8hUdCwn5bV9qZBiX/QyR5P+6Lnqn8gQWGAP0kMD/zjEGEBt8Du57capNF3 NV/kbJASwXe6BvdUWT4EDUukuzK77QxOgBhCpmxxKGBZHH+ovmTx/OU4a/YHoMvRpcGa QPOBogFLCXMD/7XKV3FR1DjMU4kQNNVmz8heU= MIME-Version: 1.0 Received: by 10.114.185.12 with SMTP id i12mr9870278waf.123.1246207971744; Sun, 28 Jun 2009 09:52:51 -0700 (PDT) In-Reply-To: <688430.20427.qm@web37906.mail.mud.yahoo.com> References: <2a41acea0905020803s63b69b1awb39538f000f5bd5a@mail.gmail.com> <2a41acea0906261725x57e6903br9f3f42b55f3a3d30@mail.gmail.com> <688430.20427.qm@web37906.mail.mud.yahoo.com> Date: Sun, 28 Jun 2009 09:52:51 -0700 Message-ID: <2a41acea0906280952s23d6553ep42fcfd4671561c3a@mail.gmail.com> From: Jack Vogel To: Mark Atkinson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Regression: em driver in -CURRENT, "Invalid MAC address" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2009 16:52:56 -0000 Sigh.. both windows and linux have frozen drivers for this old hardware, therefore they never see the regressions they cause in the current code :( I will make a patch for you to test on Monday Mark, it will do the same thing that I did in the e1000_82540.c, basically change the read_mac function back to the older way of doing it. Regards, Jack On Sat, Jun 27, 2009 at 10:36 PM, Mark Atkinson wrote: > > > ________________________________ > >From: Jack Vogel > >Oh, hmmm, so this card is completely broken with the new driver then? > > Completely, unfortunately (they don't show up in ifconfig, only in > dmesg/pciconf). > > >What was the last working version you used? > > I was running a kernel from -current May 27th, 2009. I don't recall > any significant em updates between then and when the new driver went > in. > > On Fri, Jun 26, 2009 at 11:36 AM, Mark Atkinson > wrote: > Jack Vogel wrote: > > I'm willing to bet that its in fact the same problem that VMWare is > > having. Our method of getting the mac address changed, and the emulations > > seem to be unprepared for it. > > > > This was done for a real customer requirement to allow support of > > alternate mac addressing in firmware. What happens now is a warm reset of > > the hardware is done, followed by reading the RAR[0] register. In a real > > Intel NIC the mac > > address will be valid in that register, but in VMWare, and I'm willing to > > bet in > > VirtualBox as well, its 0. > > > > VMWare also has 3 choices of device (wow, amazing coincidence :), can > > you tell me when you pick e1000 what real adapter it claims to emulate? > > > > I am considering options for this problem. The one I lean toward right > now > > is to make a "legacy" em driver, it will have support for ONLY pre-PCI > > Express > > hardware, it will be frozen as it were, the idea is that with no new work > > on it > > it will not suffer from any regression type failures. If I do this, there > > are some > > strategy issues, and its those I'm thinking about. > > > > In any case, I intend to have this problem resolved for 8's release. Stay > > tuned. > > Just FYI. this is a real machine with real cards. Older fiber cards. > > em0: mem > 0xdb000000-0xdb01ffff > irq 28 at device 4.0 on pci19 > em0: Reserved 0x20000 bytes for rid 0x10 type 3 at 0xdb000000 > > em0: Invalid MAC address > device_attach: em0 attach returned 5 > em1: mem > 0xdb020000-0xdb03ffff > irq 29 at device 9.0 on pci19 > em1: Reserved 0x20000 bytes for rid 0x10 type 3 at 0xdb020000 > > em1: Invalid MAC address > device_attach: em1 attach returned 5 > > > $ pciconf -v -l |grep -A4 -e "^em" > em0@pci0:19:4:0: class=0x020000 card=0x10008086 chip=0x10008086 > rev=0x03 hdr=0x00 > vendor = 'Intel Corporation' > device = '82542 Gigabit Ethernet Controller' > class = network > subclass = ethernet > em1@pci0:19:9:0: class=0x020000 card=0x10008086 chip=0x10008086 > rev=0x03 hdr=0x00 > vendor = 'Intel Corporation' > device = '82542 Gigabit Ethernet Controller' > class = network > subclass = ethernet > > > > -- > Mark Atkinson > atkin901@yahoo.com > (!wired)?(coffee++):(wired); > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > >