From owner-freebsd-net@FreeBSD.ORG Wed Oct 23 16:47:49 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9FB58B49 for ; Wed, 23 Oct 2013 16:47:49 +0000 (UTC) (envelope-from eocallaghan@alterapraxis.com) Received: from smtp.alterapraxis.com (unknown [101.164.33.212]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1F1FF2CFE for ; Wed, 23 Oct 2013 16:47:49 +0000 (UTC) Received: from smtp.alterapraxis.com (tony [127.0.0.1]) by smtp.alterapraxis.com (Postfix) with ESMTP id 2F779634852 for ; Wed, 23 Oct 2013 03:04:00 +1100 (EST) Received: from tinkerbell.alterapraxis.com (unknown [101.164.33.212]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: eocallaghan@alterapraxis.com) by smtp.alterapraxis.com (Postfix) with ESMTPSA id D98E1634851 for ; Wed, 23 Oct 2013 03:03:58 +1100 (EST) Date: Wed, 23 Oct 2013 03:05:51 +1100 From: Edward O'Callaghan To: freebsd-net@freebsd.org Subject: [PATCH] Add preliminary support for some newer RTL8111/8168 Express Gigabit Ethernet controllers such as the one found in PR183167. Message-ID: <20131023030551.06edd9ab.eocallaghan@alterapraxis.com> Organization: Altera Praxis Pty Ltd X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/9K1z=m0GG5It.lPFHVcc9=b"; protocol="application/pgp-signature" X-Virus-Scanned: ClamAV using ClamSMTP 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: Wed, 23 Oct 2013 16:47:49 -0000 --Sig_/9K1z=m0GG5It.lPFHVcc9=b Content-Type: multipart/mixed; boundary="MP_/nb8L4g75CtAlq1WfYJzlJLf" --MP_/nb8L4g75CtAlq1WfYJzlJLf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, If someone could review this please, it needs better testing. I was only really initially trying to fix my own bug: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183167 Kind Regards, --MP_/nb8L4g75CtAlq1WfYJzlJLf Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-Add-preliminary-support-for-some-newer-RTL8111-8168-.patch =46rom 7d54f474d91b362c3e90894ab99ccf7655c60204 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 23 Oct 2013 01:16:14 +1100 Subject: [PATCH] Add preliminary support for some newer RTL8111/8168 Express Gigabit Ethernet controllers such as the one found in PR183167. Organization: Altera Praxis Pty Ltd. To: freebsd-net@freebsd.org Signed-off-by: Edward O'Callaghan --- sys/dev/re/if_re.c | 6 ++++++ sys/pci/if_rlreg.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 381fa87..0ea330a 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -234,6 +234,9 @@ static const struct rl_hwrev re_hwrevs[] =3D { { RL_HWREV_8168E, RL_8169, "8168E/8111E", RL_JUMBO_MTU_9K}, { RL_HWREV_8168E_VL, RL_8169, "8168E/8111E-VL", RL_JUMBO_MTU_6K}, { RL_HWREV_8168F, RL_8169, "8168F/8111F", RL_JUMBO_MTU_9K}, + { RL_HWREV_8168G, RL_8169, "8168G/8111G", RL_MTU}, + { RL_HWREV_8168EP, RL_8169, "8168G/8111EP", RL_MTU}, + { RL_HWREV_8168GU, RL_8169, "8168G/8111GU", RL_MTU}, { RL_HWREV_8411, RL_8169, "8411", RL_JUMBO_MTU_9K}, { 0, 0, NULL, 0 } }; @@ -1451,6 +1454,7 @@ re_attach(device_t dev) RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_AUTOPAD | RL_FLAG_JUMBOV2 | RL_FLAG_WAIT_TXPOLL | RL_FLAG_WOL_MANLINK; break; + case RL_HWREV_8168GU: case RL_HWREV_8168E: sc->rl_flags |=3D RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | @@ -1458,7 +1462,9 @@ re_attach(device_t dev) RL_FLAG_WOL_MANLINK; break; case RL_HWREV_8168E_VL: + case RL_HWREV_8168EP: case RL_HWREV_8168F: + case RL_HWREV_8168G: case RL_HWREV_8411: sc->rl_flags |=3D RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h index 142fe48..95550b7 100644 --- a/sys/pci/if_rlreg.h +++ b/sys/pci/if_rlreg.h @@ -192,6 +192,9 @@ #define RL_HWREV_8106E 0x44800000 #define RL_HWREV_8168F 0x48000000 #define RL_HWREV_8411 0x48800000 +#define RE_HWREV_8168G 0x4C000000 +#define RE_HWREV_8168EP 0x50000000 +#define RE_HWREV_8168GU 0x50800000 /* 8106EUS */ #define RL_HWREV_8139 0x60000000 #define RL_HWREV_8139A 0x70000000 #define RL_HWREV_8139AG 0x70800000 --=20 1.8.4.1 --MP_/nb8L4g75CtAlq1WfYJzlJLf-- --Sig_/9K1z=m0GG5It.lPFHVcc9=b Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCgAGBQJSZqJlAAoJENeyf/ug44dtkrcP+gO8nssASNzOGprRfyz7f3AP hQiIanOVPZYUv9bTirO92uM9VEdQ8PDsZxV8veoqgDqKw5z2KSgzDP4ZXhh3tlhe BKqmdrRAT4e6lfGwYd20eSDciGjrLGtRxgpmqrFJuOjkNG3Jd6SP9ZwZsG4LjtpX at+DdXqAB87os1jGuygPYQpKDdwax/iwU3fSIrjIh3MZXNcVQCFPETNddg7mTNDs DxTKCk5CX8jJXzR7A+kFU45B/YRPAj7uBQPcJdgAOnKMkiuLFWS72vPTXU/3SSfS 1X10O5qqPwGZlqxU0kA8R3nCmrISOIRttxRyJtvVeDbPuDzodIlE6S10QXLmOfTO 54XAli2vHKfHvyK+HczMUUF1oOXs2DwiKN02kiV+CT74SlgrJPbasd1SiWzqVgW9 Kg/G/lH9aXSge+neEaWoy8TF/8a1nYf2rA/K7G48zK18lGe4/g8dH6ZVSwSp6HaB nzw4JzTM4oXIUeskF85qU+JCEh8yjxkHLMacl2+fGWdjhfV4OtCRqlWD5KEyScAT wJZuYjET7xbCnhCDpvkLAsscB/LVQYCVN+QQFmvHZKe++DScTAdeiyuIVvhpibwP z9lfusqJrzvfVuGEcLtFZOPaIE9iBjWt7KqBiLJCcszbPB094YbLONdCHRJ2dlYt Cjz9+ogNLxf9zsGbnzl+ =md3X -----END PGP SIGNATURE----- --Sig_/9K1z=m0GG5It.lPFHVcc9=b--