From owner-freebsd-net@freebsd.org Sun Aug 16 12:56:31 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 983669B9972 for ; Sun, 16 Aug 2015 12:56:31 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-ig0-x241.google.com (mail-ig0-x241.google.com [IPv6:2607:f8b0:4001:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 66337128A; Sun, 16 Aug 2015 12:56:31 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: by igcwe12 with SMTP id we12so5068884igc.3; Sun, 16 Aug 2015 05:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FtYt11y8j0gl8s3xFi/T+Gex8Dgx2gPU/Z+VFync4jY=; b=XDSMfDp+lRT531fZF1hOem8NmfItNm5QOdH2nQF7X90rV7Rajm/1LtgDTi6NHHZeQ2 utCRX+4untvJLenJX91zKP/KY4yGeX9DNz0g+/k/A24MbZ8agmfmN1V6XD11a1E8MJGL p0cY1yfE/kF1rZCdsuPcGDi5cavLKQ7hEOBZfOmY9leOY+nRsGXQkdenKfGrhQeslx1H WDEtRiop5inex1G8yoAvtPbEu9NnWtOHDHeToGnlmE6XWpGPYbnxYV5P/Yob+281QWCu AKuRvHHmiPFBqYjp4wnnI9Gd/2QriywYgTC7LCXUlf8UHLRMC571O+28X7FAuz1o2fKl /Vdg== MIME-Version: 1.0 X-Received: by 10.50.66.197 with SMTP id h5mr11134486igt.82.1439729790736; Sun, 16 Aug 2015 05:56:30 -0700 (PDT) Received: by 10.107.202.132 with HTTP; Sun, 16 Aug 2015 05:56:30 -0700 (PDT) In-Reply-To: <20150816115623.GA1288@michelle.fasterthan.com> References: <20150816115623.GA1288@michelle.fasterthan.com> Date: Sun, 16 Aug 2015 08:56:30 -0400 Message-ID: Subject: Re: RE not working on 10.2-RELEASE #0 r286731M From: Kim Culhan To: pyunyh@gmail.com Cc: Sean Bruno , freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 16 Aug 2015 12:56:31 -0000 The dmesg output: pci4: on pcib3 em0: port 0xdc00-0xdc1f mem 0xfe9e0000-0xfe9fffff,0xfe900000-0xfe97ffff,0xfe9dc000-0xfe9dffff irq 17 at device 0.0 on pci4 em0: Using MSIX interrupts with 3 vectors em0: Ethernet address: 68:05:ca:12:91:cd [snip] pcib5: irq 16 at device 28.5 on pci0 pci2: on pcib5 re0: port 0xb800-0xb8ff mem 0xf8fff000-0xf8ffffff,0xf8fe0000-0xf8feffff irq 17 at device 0.0 on pci2 re0: Using 1 MSI-X message re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: 90:e6:ba:c8:52:df [snip] pcib6: at device 30.0 on pci0 pci6: on pcib6 re1: port 0xe800-0xe8ff mem 0xfebffc00-0xfebffcff irq 16 at device 0.0 on pci6 re1: Chip rev. 0x10000000 re1: MAC rev. 0x00000000 miibus1: on re1 rgephy1: PHY 1 on miibus1 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re1: Using defaults for TSO: 65518/35/2048 re1: Ethernet address: d8:eb:97:91:12:d7 re2: port 0xe400-0xe4ff mem 0xfebff800-0xfebff8ff irq 17 at device 1.0 on pci6 re2: Chip rev. 0x10000000 re2: MAC rev. 0x00000000 miibus2: on re2 rgephy2: PHY 1 on miibus2 rgephy2: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re2: Using defaults for TSO: 65518/35/2048 re2: Ethernet address: c4:12:f5:32:57:76 I will need to try the patch tomorrow when i am located with the machine, thanks -kim On Sun, Aug 16, 2015 at 7:56 AM, Yonghyeon PYUN wrote: > On Fri, Aug 14, 2015 at 06:29:08PM -0400, Kim Culhan wrote: > > [...] > > > > On 08/14/15 13:34, Kim Culhan wrote: > > >> RE on 10.2-RELEASE #0 r286731M appears to pass only arp traffic. > > >> > > >> Replaced if_re.c with version from 273757, appears to work > > >> normally. > > >> > > >> The diff: > > >> > > >> 34c34 < __FBSDID("$FreeBSD: stable/10/sys/dev/re/if_re.c 273757 > > >> 2014-10-28 00:43:00Z yongari $"); --- > > >>> __FBSDID("$FreeBSD: releng/10.2/sys/dev/re/if_re.c 285177 > > >>> 2015-07-05 > > >> 20:16:38Z marius $"); 3198,3202d3197 < * Enable transmit and > > >> receive. < */ < CSR_WRITE_1(sc, RL_COMMAND, > > >> RL_CMD_TX_ENB|RL_CMD_RX_ENB); < < /* 3227a3223,3227 > > >>> /* * Enable transmit and receive. */ CSR_WRITE_1(sc, RL_COMMAND, > > >>> RL_CMD_TX_ENB | RL_CMD_RX_ENB); > > >>> > > >> 3251,3254d3250 < #ifdef notdef < /* Enable receiver and > > >> transmitter. */ < CSR_WRITE_1(sc, RL_COMMAND, > > >> RL_CMD_TX_ENB|RL_CMD_RX_ENB); < #endif > > >> > > >> Let me know what additional info I can provide. > > [...] > > > > I'm running -current with all changes in place, I'm not seeing the > > > issues noted here with my hardware. Can you post your hardware from > > > pciconf -lv? > > > > > > re0@pci0:3:0:0: class=0x020000 card=0x84321043 chip=0x816810ec > > > rev=0x06 hdr=0x00 > > > vendor = 'Realtek Semiconductor Co., Ltd.' > > > device = 'RTL8111/8168B PCI Express Gigabit Ethernet > controller' > > > class = network > > > subclass = ethernet > > > re1@pci0:4:5:0: class=0x020000 card=0x43021186 chip=0x43021186 > > > rev=0x10 hdr=0x00 > > > vendor = 'D-Link System Inc' > > > device = 'DGE-530T Gigabit Ethernet Adapter (rev.C1) [Realtek > > > RTL8169]' > > > class = network > > > subclass = ethernet > > > > > > > > > sean > > > > pciconf -lv > > > > re0@pci0:2:0:0: class=0x020000 card=0x83671043 chip=0x816810ec rev=0x02 > > hdr=0x00 > > vendor = 'Realtek Semiconductor Co., Ltd.' > > device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' > > class = network > > subclass = ethernet > > re1@pci0:6:0:0: class=0x020000 card=0x816910ec chip=0x816910ec rev=0x10 > > hdr=0x00 > > vendor = 'Realtek Semiconductor Co., Ltd.' > > device = 'RTL8169 PCI Gigabit Ethernet Controller' > > class = network > > subclass = ethernet > > re2@pci0:6:1:0: class=0x020000 card=0x4c001186 chip=0x43001186 rev=0x10 > > hdr=0x00 > > vendor = 'D-Link System Inc' > > device = 'DGE-528T Gigabit Ethernet Adapter' > > class = network > > subclass = ethernet > > > > The problem was noted on re2, re0 and re1 appeared to be working > normally. > > > > Hmm, it seems your PCI controller does not work. > I can't explain why Sean's re1 still works though. > Would you try attached patch? > > BTW, it would be better to see the re(4) related dmesg output. > Driver will show Chip/MAC revision and that is the only way to > identify each MAC revision. >