Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932140Ab2EGRjy (ORCPT ); Mon, 7 May 2012 13:39:54 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:36109 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757110Ab2EGRjw (ORCPT ); Mon, 7 May 2012 13:39:52 -0400 Message-ID: <4FA808E3.1030908@gmail.com> Date: Mon, 07 May 2012 19:39:47 +0200 From: Erwan Velu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120426 Thunderbird/10.0.4 MIME-Version: 1.0 To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, tshimizu818@gmail.com Subject: [PATCH] pch_gbe: Adding read memory barriers Content-Type: multipart/mixed; boundary="------------070504030608060709050009" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3604 Lines: 67 This is a multi-part message in MIME format. --------------070504030608060709050009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dear Linux Kernel Developers, Please find attached, a patch to solve "Received CRC" errors reported by the pch_gbe driver under heavy load. It occurred on an Intel ATOM E620T while running a 300mbit/sec multicast network stream leading to a ~100% cpu usage. This patch got validated on the 3.2.16 kernel but also apply to the 3.x family. Getting it into stable would be perfect as it solves reliability issues. Cheers, Erwan Velu --------------070504030608060709050009 Content-Type: application/octet-stream; name="0001-pch_gbe-Adding-read-memory-barriers.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-pch_gbe-Adding-read-memory-barriers.patch" RnJvbSAzYjY1ODAyZTRjNWE4ODI3YTg0MDIyMDY2ZjEwZGVjNGQ2MWMxZjIyIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBFcndhbiBWZWx1IDxlcndhbi52ZWx1QHpvZGlhY2Fl cm9zcGFjZS5jb20+Ck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IG90aGVyIHJlYWRzIGJlZm9yZSovCisKIAkJaWYgKHJ4 X2Rlc2MtPmdiZWNfc3RhdHVzID09IERTQ19JTklUMTYpCiAJCQlicmVhazsKIAkJY2xlYW5l ZCA9IHRydWU7Ci0tIAoxLjcuNC40Cgo= --------------070504030608060709050009-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/