From owner-freebsd-net@freebsd.org Sat Sep 12 15:27:40 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 3ACC4A01BD6 for ; Sat, 12 Sep 2015 15:27:40 +0000 (UTC) (envelope-from sreenathbh@rocketmail.com) Received: from nm26.bullet.mail.ne1.yahoo.com (nm26.bullet.mail.ne1.yahoo.com [98.138.90.89]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 066E9110C for ; Sat, 12 Sep 2015 15:27:39 +0000 (UTC) (envelope-from sreenathbh@rocketmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1442071652; bh=ia6n1Blzx8/OEEunzLyqURWfsps5dkJ2o68c4qy5e3k=; h=Date:From:Subject:To:Cc:In-Reply-To:From:Subject; b=VhwzdQOb6g54KeQ6IajuPvvfVqgnx1Q61xfsx4qZ9NUj8qEKJBJ3LqvN2sjHDVLdYnbwxUzJfSiD1Dr1ds130SRci/Q8hU2Cs5S9JKifbtjkhxcuO4Zz+lOnTijLvETAL4c4ZgXJxP2fd9Lv7lqwahcFt084lXn152tV2qpHA+ZKa6edW18QkhtsrKKwnwmuvGsmTlR59H1FPQ5bi6LbU/Q0JRAjJkfgG5kb3O87QP1nO6uhxfr+/F1x3GbbsBz6X4NNjKiUEZA3wirVBEbfYzlzu97mQzuk4XUxLF346FTU73ed/OTvSSevdxVHE+LEQNPvxywEG8crXbaw688bgQ== Received: from [98.138.100.112] by nm26.bullet.mail.ne1.yahoo.com with NNFMP; 12 Sep 2015 15:27:32 -0000 Received: from [98.138.226.161] by tm103.bullet.mail.ne1.yahoo.com with NNFMP; 12 Sep 2015 15:27:32 -0000 Received: from [127.0.0.1] by omp1062.mail.ne1.yahoo.com with NNFMP; 12 Sep 2015 15:27:32 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 790580.72842.bm@omp1062.mail.ne1.yahoo.com Received: (qmail 34137 invoked by uid 60001); 12 Sep 2015 15:27:32 -0000 X-YMail-OSG: xJ6mjIEVM1nUziGgnIVg7EuxJ4vlh9ckBY1W6boEPqS.fs9 OClwUAhGOncJW5iyd3ZGhHjjlhNGcD8iCJGhsxrqAx0QjsSWQH7lPnI9kzYe IX0Ju5Drv15l6jHkVs5k5P9vh4InkNAzPnLOckSPcGMg4aYIjofua8qU.dM2 qbAmNkfzDXn.lQgMdEdaHoAyCf5dEo.E9L2ca17pfQXFlN3vSClUoyrL8tlJ eoJVwOKDhr0NwyMO3wCuWPb6t7KYhZKXAiEUmQGKbkUN1nOK0jOtMhopA3YZ PW3_LVL9YwA2BTVewdrqhYOruYds_CclVGBJM6Ysf.hYlyHyq_w5OO7VzCNH YCEpeebqvlzKev6vefQQ7br4kNc0hQV12T4AD26tklR1R4EvsmFGclSoG9Po m87EJZM6UMSaohChx.TOwi7bOGk_lbmXpsB410Lyfvx0YBOWsjQe3Q1baQfl 8dlz0msWwJq2ysvRS68k4iWEOtIcrH89Q4f65oW.caV4wxUi7r3CcJEJ9.KB QEq8..2NUgkknsrs7pPjEajmit6qL_2W3t28s0PllDeAG1FdZQOuwkUoo8t. QPG0C.Oo- Received: from [61.1.246.48] by web122105.mail.ne1.yahoo.com via HTTP; Sat, 12 Sep 2015 08:27:32 PDT X-Rocket-MIMEInfo: 002.001, SGkgR2FyeSwNCg0KSXQgbXVzdCBoYXZlIGJlZW4gcmVzdWx0IG9mIHByZXZpb3VzIGJvb3QuIEl0IGlzIG5vdyBnb25lIGFmdGVyIGEgY291cGxlIG9mIHJlYm9vdHMuDQoNCnRoYW5rcywNClNyZWVuYXRoDQogDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KT24gU2F0LCA5LzEyLzE1LCBHYXJ5IFBhbG1lciA8Z3BhbG1lckBmcmVlYnNkLm9yZz4gd3JvdGU6DQoNCiBTdWJqZWN0OiBSZTogcmVhbHRlayBpbnRlcmZhY2Ugbm90IHdvcmtpbmcNCiBUbzogIlNyZWVuYXRoIEIBMAEBAQE- X-Mailer: YahooMailBasic/654 YahooMailWebService/0.8.203.813 Message-ID: <1442071652.20114.YahooMailBasic@web122105.mail.ne1.yahoo.com> Date: Sat, 12 Sep 2015 08:27:32 -0700 From: Sreenath Battalahalli Subject: Re: realtek interface not working To: Gary Palmer Cc: Marius Strobl , freebsd-net@freebsd.org In-Reply-To: <20150912104347.GA45080@in-addr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Sat, 12 Sep 2015 15:27:40 -0000 Hi Gary, It must have been result of previous boot. It is now gone after a couple of= reboots. thanks, Sreenath =20 -------------------------------------------- On Sat, 9/12/15, Gary Palmer wrote: Subject: Re: realtek interface not working To: "Sreenath Battalahalli" Cc: "Marius Strobl" , freebsd-net@freebsd.org Date: Saturday, September 12, 2015, 10:43 AM =20 On Fri, Sep 11, 2015 at 10:57:36PM -0700, Sreenath Battalahalli wrote: > Hi Marius, >=20 > Thanks for the patch. I manually made changes to the two files, and after building the kernel and installing it, > I can see the re0 interface. I am now sending this email using the new laptop. >=20 > However, I am a bit confused by the dmesg output. I see two sets of lines pertaining to the re0 device. >=20 > $dmesg | grep -i re0 > =20 > re0: port 0x3000-0x30ff mem 0xb0604000-0xb0604fff,0xb0600000-0xb0603fff irq 18 at device 0.0 on pci2 > re0: Using 1 MSI-X message > re0: turning off MSI enable bit. > re0: ASPM disabled > re0: Chip rev. 0x54000000 > re0: MAC rev. 0x00100000 > re0: Unknown H/W revision: 0x54000000 > device_attach: re0 attach returned 6 > re0: port 0x3000-0x30ff mem 0xb0604000-0xb0604fff,0xb0600000-0xb0603fff irq 18 at device 0.0 on pci2 > re0: Using 1 MSI-X message > re0: ASPM disabled > re0: Chip rev. 0x54000000 > re0: MAC rev. 0x00100000 > miibus0: on re0 > re0: Using defaults for TSO: 65518/35/2048 > re0: Ethernet address: 2c:60:0c:92:0f:c2 >=20 > seems the driver attempted to initialize the device twice? >=20 > Anyway, it is working now. =20 The kernel dmesg buffer can be preserved over a reboot, so it's possible the lines up to and including "device_attach: re0 attach returned 6" are from the reboot before you installed the patch.=A0 Rather than just grep for re0, do "dmesg | less" or "dmesg | more" and check the context of the=20 "device_attach: re0 attach returned 6" error and see if there are any=20 indications of a reboot between that line and the next re0 probe lines, e.g. "Copyright (c) 1992-2015 The FreeBSD Project" =20 Regards, =20 Gary