Date: Thu, 10 Sep 2015 21:12:40 +0200 From: Marius Strobl <marius@alchemy.franken.de> To: Sreenath Battalahalli <sreenathbh@rocketmail.com> Cc: freebsd-net@freebsd.org Subject: Re: realtek interface not working Message-ID: <20150910191240.GA97360@alchemy.franken.de> In-Reply-To: <1441899186.70362.YahooMailBasic@web122104.mail.ne1.yahoo.com> References: <1441899186.70362.YahooMailBasic@web122104.mail.ne1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Thu, Sep 10, 2015 at 08:33:06AM -0700, Sreenath Battalahalli wrote:
> Hi
>
> I got a new laptop (Acer E5-573) that has a Realtek 1Gbps adapter.
> ifconfig after booting does not list re0 interface.
>
> Here are relevant lines from dmesg:
>
> re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x3000-0x3
> 0ff 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
>
> Looks like this hardware is not supported by the driver.
>
> Freebsd version is 10.2 amd64
>
> any help if getting this to work appreciated.
>
Please give the attached patch a try.
Marius
--RnlQjJ0d97Da+TV1
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="re_8168h.diff"
Index: re/if_re.c
===================================================================
--- re/if_re.c (revision 287625)
+++ re/if_re.c (working copy)
@@ -238,6 +238,7 @@ static const struct rl_hwrev re_hwrevs[] = {
{ RL_HWREV_8168F, RL_8169, "8168F/8111F", RL_JUMBO_MTU_9K},
{ RL_HWREV_8168G, RL_8169, "8168G/8111G", RL_JUMBO_MTU_9K},
{ RL_HWREV_8168GU, RL_8169, "8168GU/8111GU", RL_JUMBO_MTU_9K},
+ { RL_HWREV_8168H, RL_8169, "8168H/8111H", RL_JUMBO_MTU_9K},
{ RL_HWREV_8411, RL_8169, "8411", RL_JUMBO_MTU_9K},
{ RL_HWREV_8411B, RL_8169, "8411B", RL_JUMBO_MTU_9K},
{ 0, 0, NULL, 0 }
@@ -1485,6 +1486,7 @@ re_attach(device_t dev)
break;
case RL_HWREV_8168EP:
case RL_HWREV_8168G:
+ case RL_HWREV_8168H:
case RL_HWREV_8411B:
sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR |
RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP |
Index: rl/if_rlreg.h
===================================================================
--- rl/if_rlreg.h (revision 287625)
+++ rl/if_rlreg.h (working copy)
@@ -195,6 +195,7 @@
#define RL_HWREV_8168G 0x4C000000
#define RL_HWREV_8168EP 0x50000000
#define RL_HWREV_8168GU 0x50800000
+#define RL_HWREV_8168H 0x54000000
#define RL_HWREV_8411B 0x5C800000
#define RL_HWREV_8139 0x60000000
#define RL_HWREV_8139A 0x70000000
--RnlQjJ0d97Da+TV1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150910191240.GA97360>
