From owner-freebsd-net@FreeBSD.ORG Tue Jan 15 06:32:24 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 10FFA5E0; Tue, 15 Jan 2013 06:32:24 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward4h.mail.yandex.net (forward4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::4]) by mx1.freebsd.org (Postfix) with ESMTP id 8D877EB7; Tue, 15 Jan 2013 06:32:23 +0000 (UTC) Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward4h.mail.yandex.net (Yandex) with ESMTP id 4B5C91B209C2; Tue, 15 Jan 2013 10:32:18 +0400 (MSK) Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id DFFE51B404A2; Tue, 15 Jan 2013 10:32:17 +0400 (MSK) Received: from ctsoff2.webstroy.ru (ctsoff2.webstroy.ru [213.27.12.78]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WHl8xCai-WHlq2QKD; Tue, 15 Jan 2013 10:32:17 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1358231537; bh=SlfxNJ/nhs/xbt7BvgOY4ygMwalHfNGfeZo2P9h9Nm0=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=vMV03WetwgsRgJE2+FBJSa89s8CtGDX6EqPVUs98ZThzJlRASkk9gZrLxilRE8XxW DX7n5V7DOIQpC/kZ6PaQAkHHKaIIYugFYxXlj9Hqebj9w/r/13j49ld5HiMU19p8YL Ew0xVhCKCAC73JrYN56eEI7ewRIIli37W1d7c1lQ= Message-ID: <50F4F7E6.7070004@yandex.ru> Date: Tue, 15 Jan 2013 10:32:06 +0400 From: Ruslan Makhmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130114 Thunderbird/17.0.2 MIME-Version: 1.0 To: pyunyh@gmail.com Subject: Re: if_vr(4) and DFE520-TX References: <50F110AB.1030107@yandex.ru> <50F14880.4090001@yandex.ru> <50F177E9.3040003@yandex.ru> <20130114061553.GA3531@michelle.cdnetworks.com> <50F3F172.5060903@yandex.ru> <20130115024430.GA3152@michelle.cdnetworks.com> In-Reply-To: <20130115024430.GA3152@michelle.cdnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jeremie Le Hen , freebsd-net@freebsd.org, Ruslan Makhmatkhanov X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 06:32:24 -0000 YongHyeon PYUN wrote on 15.01.2013 06:44: > On Mon, Jan 14, 2013 at 03:52:18PM +0400, Ruslan Makhmatkhanov wrote: >> YongHyeon PYUN wrote on 14.01.2013 10:15: >>> On Sat, Jan 12, 2013 at 06:49:13PM +0400, Ruslan Makhmatkhanov wrote: >>>> Ok, I got some details. It's an DFE-520TX (/C1 or rev. C1). I crafted an >>>> patch attached, but whenever kldloading the modified if_vr, I got this: >> >> [...] >> >>>> I also tried to apply VR_Q_NEEDALIGN quirk, but nothing is changed. Any >>>> hints? >>> >>> I recall D-Link was one of notorious vendor which used to >>> completely change its chip set in later revisions without notice. So >>> I'm afraid the controller you have may not be a VIA manufactured >>> one. >>> Could you take a picture of the chip set of controller and let >>> others see it? I guess it could be a RealTek 8139 or 8139C+. >> >> Here they are. Both front and back for the case (see no traces of >> RealTek though): >> >> http://s2.postimage.org/9nvkrlpqx/IMAG1040.jpg >> http://s2.postimage.org/4qi06hnrt/IMAG1041.jpg > > Thanks. Try attached patch and let me know how it works. > If that patch does not work, try setting a loader tunable like the > following. > dev.rl.0.prefer_iomap=0 Terrific! It's now attaching fine, but network over it doesn't seems working (can't ping/access machine via this interface): re0: flags=8843 metric 0 mtu 1500 options=8209b ether 90:94:e4:82:d5:e6 inet 192.168.0.208 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::9294:e4ff:fe82:d5e6%re0 prefixlen 64 scopeid 0x5 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active re0@pci0:4:1:0: class=0x020000 card=0x11031186 chip=0x42001186 rev=0x10 hdr=0x00 vendor = 'D-Link System Inc' class = network subclass = ethernet I also tried to add dev.rl.0.prefer_iomap=0 to /boot/loader.conf with no difference. I'll try to experiment with this later this day when there will be no active users on this machine, then let you know the results. Thank you! -- Regards, Ruslan Tinderboxing kills... the drives.