Date: Mon, 19 Jul 2010 18:00:04 +0200 From: Harald Schmalzbauer <h.schmalzbauer@omnilan.de> To: bseklecki@collaborativefusion.com Cc: freebsd-stable <freebsd-stable@freebsd.org>, Brandon Gooch <jamesbrandongooch@gmail.com>, Sean McAfee <smcafee@collaborativefusion.com>, Steve Polyack <korvus@comcast.net>, Michael Tuexen <tuexen@freebsd.org>, Jack Vogel <jfvogel@gmail.com>, Jeremy Chadwick <freebsd@jdc.parodius.com> Subject: Re: em(4) duplex problems with 82541EI on RELENG_8, -CURRENT on PowerEdge 1850 Message-ID: <4C447684.7010308@omnilan.de> In-Reply-To: <1279552398.31311.443.camel@soundwave> References: <1275419919.30057.50.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <20100601193733.GA44816@icarus.home.lan> <AANLkTilAiGMfh7Jo0aJk4aEYXnPOvJvz93Xl3fpsxGQR@mail.gmail.com> <AANLkTik2uhWo1MGbEfvZGfSiLpx5Y-m9FpA1UKn3SaTa@mail.gmail.com> <4C3CBC1E.9030106@omnilan.de> <1279212377.31311.144.camel@soundwave> <1279212602.31311.151.camel@soundwave> <84875A93-3851-476E-8F2E-A7008CA6BD5C@FreeBSD.org> <4C3F49E8.9090201@comcast.net> <AANLkTilXYsE9SID4qeAdn_ZhHCWL8xO6dRKaIjNl4gJD@mail.gmail.com> <1279552398.31311.443.camel@soundwave>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF6A690C36A07BC733D80DCC7 Content-Type: multipart/mixed; boundary="------------020608030802000604090208" This is a multi-part message in MIME format. --------------020608030802000604090208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Brian A. Seklecki schrieb am 19.07.2010 17:13 (localtime): > On Thu, 2010-07-15 at 10:53 -0700, Jack Vogel wrote: >> The fact that I WISH it to be MFC'd doesn't mean that I am actually >> given permission to do so. >=20 > It seems 8.1 release was tagged on Saturday so we're proper-fucked > (we will have to run local patches on all 1850s and 2850s for the > duration of RELENG_8_1) >=20 > http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D210187 >=20 >=20 > Might want to prepare a patch file and instructions now for when At least the patchfile is something I have hand, Find attached. > the whining starts on freebsd-questions@. -Harry --------------020608030802000604090208 Content-Type: text/plain; name="e1000-releng8.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="e1000-releng8.patch" LS0tIHN5cy9kZXYvZTEwMDAvaWZfZW0uYwkyMDEwLzA1LzE4IDE3OjA5OjIwCTEuMjEuMi4x MAorKysgc3lzL2Rldi9lMTAwMC9pZl9lbS5jCTIwMTAvMDYvMTggMTc6MjI6MDgJMS4yMS4y LjExCkBAIC0zMCw3ICszMCw3IEBACiAgIFBPU1NJQklMSVRZIE9GIFNVQ0ggREFNQUdFLgog CiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKiovCi0vKiRGcmVlQlNEOiBzcmMvc3lzL2Rldi9l MTAwMC9pZl9lbS5jLHYgMS4yMS4yLjEwLjIuMSAyMDEwLzA2LzE0IDAyOjA5OjA2IGtlbnNt aXRoIEV4cCAkKi8KKy8qJEZyZWVCU0Q6IHNyYy9zeXMvZGV2L2UxMDAwL2lmX2VtLmMsdiAx LjIxLjIuMTEgMjAxMC8wNi8xOCAxNzoyMjowOCBqZnYgRXhwICQqLwogCiAjaWZkZWYgSEFW RV9LRVJORUxfT1BUSU9OX0hFQURFUlMKICNpbmNsdWRlICJvcHRfZGV2aWNlX3BvbGxpbmcu aCIKQEAgLTIzMCw4ICsyMzAsOSBAQCBzdGF0aWMgdm9pZAllbV9mcmVlX3JlY2VpdmVfYnVm ZmVycyhzdHJ1CiBzdGF0aWMgdm9pZAllbV9lbmFibGVfaW50cihzdHJ1Y3QgYWRhcHRlciAq KTsKIHN0YXRpYyB2b2lkCWVtX2Rpc2FibGVfaW50cihzdHJ1Y3QgYWRhcHRlciAqKT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QgPSAlbGxkXG4iLAotCSAgICAobG9uZyBsb25nKWFk YXB0ZXItPnN0YXRzLmdwcmMpOwotCWRldmljZV9wcmludGYoZGV2LCAiR29vZCBQYWNrZXRz IFhtdGQgPSAlbGxkXG4iLAotCSAgICAobG9uZyBsb25nKWFkYXB0ZXItPnN0YXRzLmdwdGMp OwotCWRldmljZV9wcmludGYoZGV2LCAiVFNPIENvbnRleHRzIFhtdGQgPSAlbGxkXG4iLAot CSAgICAobG9uZyBsb25nKWFkYXB0ZXItPnN0YXRzLnRzY3RjKTsKLQlkZXZpY2VfcHJpbnRm KGRldiwgIlRTTyBDb250ZXh0cyBGYWlsZWQgPSAlbGxkXG4iLAotCSAgICAobG9uZyBsb25n KWFkYXB0ZXItPnN0YXRzLnRzY3RmYyk7CiB9CiAKIC8qKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCkBAIC00 OTg2LDI4ICs1MTQ3LDkgQEAgZW1fcHJpbnRfaHdfc3RhdHMoc3RydWN0IGFkYXB0ZXIgKmFk YXB0ZQogICogIDMyIHdvcmRzLCBzdHVmZiB0aGF0IG1hdHRlcnMgaXMgaW4gdGhhdCBleHRl bnQuCiAgKgogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKiovCi1zdGF0aWMgdm9pZAotZW1fcHJpbnRfbnZt X2luZm8oc3RydWN0IGFkYXB0ZXIgKmFkYXB0ZXIpCi17Ci0JdTE2CWVlcHJvbV9kYXRhOwot CWludAlpLCBqLCByb3cgPSAwOwotCi0JLyogSXRzIGEgYml0IGNydWRlLCBidXQgaXQgZ2V0 cyB0aGUgam9iIGRvbmUgKi8KLQlwcmludGYoIlxuSW50ZXJmYWNlIEVFUFJPTSBEdW1wOlxu Iik7Ci0JcHJpbnRmKCJPZmZzZXRcbjB4MDAwMCAgIik7Ci0JZm9yIChpID0gMCwgaiA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KCZhZGFwdGVyLT5odywgaSwgMSwg JmVlcHJvbV9kYXRhKTsKKwkJcHJpbnRmKCIlMDR4ICIsIGVlcHJvbV9kYXRhKTsKIAl9Ci0K LQlyZXR1cm4gKGVycm9yKTsKKwlwcmludGYoIlxuIik7CiB9CiAKIHN0YXRpYyBpbnQKLS0t IHN5cy9kZXYvZTEwMDAvaWZfaWdiLmMJMjAxMC8wNS8xNCAyMjoyMDo1OAkxLjIxLjIuOAor Kysgc3lzL2Rldi9lMTAwMC9pZl9pZ2IuYwkyMDEwLzA2LzE4IDE3OjIyOjA4CTEuMjEuMi45 CkBAIC0zMCw3ICszMCw3IEBACiAgIFBPU1NJQklMSVRZIE9GIFNVQ0ggREFNQUdFLgogCiAq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKiovCi0vKiRGcmVlQlNEOiBzcmMvc3lzL2Rldi9lMTAw MC9pZl9pZ2IuYyx2IDEuMjEuMi44LjIuMSAyMDEwLzA2LzE0IDAyOjA5OjA2IGtlbnNtaXRo IEV4cCAkKi8KKy8qJEZyZWVCU0Q6IHNyYy9zeXMvZGV2L2UxMDAwL2lmX2lnYi5jLHYgMS4y MS4yLjkgMjAxMC8wNi8xOCAxNzoyMjowOCBqZnYgRXhwICQqLwogCiAKICNpZmRlZiBIQVZF X0tFUk5FTF9PUFRJT05fSEVBREVSUwpAQCAtOTksNyArOTksNyBAQCBpbnQJaWdiX2Rpc3Bs YXlfZGVidWdfc3RhdHMgPSAwOwogLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICogIERyaXZlciB2ZXJz aW9uOgogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKi8KLWNoYXIgaWdiX2RyaXZlcl92ZXJzaW9uW10gPSAi dmVyc2lvbi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lci0+bnVtX3J4X2Rlc2MgLSAxOwogCUUx MDAwX1dSSVRFX1JFRygmYWRhcHRlci0+aHcsIEUxMDAwX1JEVCgwKSwgaSk7CisJaWYgKGRv bmUgIT0gTlVMTCkKKwkJKmRvbmUgPSByeF9zZW50OwogCUVNX1JYX1VOTE9DSyhhZGFwdGVy KTsKLQlyZXR1cm4gKHJ4X3NlbnQpOworCXJldHVybiAoY3VycmVudF9kZXNjLT5zdGF0dXMg JiBFMTAwMF9SWERfU1RBVF9ERCk7CiB9CiAKICNpZm5kZWYgX19OT19TVFJJQ1RfQUxJR05N RU5UCg== --------------020608030802000604090208-- --------------enigF6A690C36A07BC733D80DCC7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkxEdpcACgkQLDqVQ9VXb8jz9ACfaLxQ+Y+z2ullaBPna0/0KrDT bAYAoKW/S/STf/Y8EzULUKEd8l6bxGNJ =zpqG -----END PGP SIGNATURE----- --------------enigF6A690C36A07BC733D80DCC7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C447684.7010308>