From patchwork Thu Feb 12 11:22:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Risto Suominen X-Patchwork-Id: 23011 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id BFAB447773 for ; Thu, 12 Feb 2009 22:29:37 +1100 (EST) X-Original-To: LinuxPPC-dev@ozlabs.org Delivered-To: LinuxPPC-dev@ozlabs.org X-Greylist: delayed 365 seconds by postgrey-1.31 at ozlabs; Thu, 12 Feb 2009 22:28:42 EST Received: from mail-fx0-f11.google.com (mail-fx0-f11.google.com [209.85.220.11]) by ozlabs.org (Postfix) with ESMTP id 1F80CDDDE4 for ; Thu, 12 Feb 2009 22:28:41 +1100 (EST) Received: by fxm4 with SMTP id 4so2792865fxm.9 for ; Thu, 12 Feb 2009 03:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=yXUJiTdJ4HZPF/DjLCCTXfuLenSKnKQFGbEcEtOiKO4=; b=IIj1kJ5amVSR+Lc8E472D0b+oS5xZ+GzjtgbpHJ1yQD5BNGW5Y/6KEOhSMlliJ/KQG J8AIwcZdNex5WtbJ1Gro8TDSfWYdRfq/lr3cYEH7rkLFGWRvhlv1AXucPWKgrk4GXOR7 zZNYYyjCr2pY0KHjsoLznfSQ5Bwg4D5UjQ4yk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lav1NEWoB6+QcOl/6dDwpH12HyIdhimzvHhCwNHNIKbt46DwlRu6PeallnblnC24UT T5awo3x3uZ8oagsWix1LRYP/1EWltW+zY98aBcr+Y07AcrsUiABjrCYwD5OcpgVchK9b VxT0K778C7FyvLEqq2D73sDrs1VGBoLtCEOIA= MIME-Version: 1.0 Received: by 10.181.28.15 with SMTP id f15mr265369bkj.187.1234437726066; Thu, 12 Feb 2009 03:22:06 -0800 (PST) Date: Thu, 12 Feb 2009 13:22:05 +0200 Message-ID: <46e1c7760902120322r11cffbdcgff330a242ca586fb@mail.gmail.com> Subject: [PATCH 002/002] de2104x: support for systems lacking cache coherence From: Risto Suominen To: LinuxPPC-dev@ozlabs.org X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Here is a patch that helped me to get my de2104x NIC working on my PowerMac 5500. As an interesting side effect, it also made my mesh module crash. Background can be found here: http://www.spinics.net/lists/netdev/msg88488.html Risto Allow setting NOT_COHERENT_CACHE explicitly. Signed-off-by: Risto Suominen --- The testing is done on kernel version 2.6.24. --- a/arch/powerpc/platforms/powermac/Kconfig.org 2008-01-25 00:58:37.000000000 +0200 +++ b/arch/powerpc/platforms/powermac/Kconfig 2009-02-10 17:44:24.000000000 +0200 @@ -18,4 +18,10 @@ config PPC_PMAC64 select PPC_970_NAP default y - +config NOT_COHERENT_CACHE + bool "Incoherent cache" + default n + help + Setting this option may be necessary for avoiding cache-related + problems with some network cards on some platforms. An example is + 2104x and PowerMac 5500. Allow setting NOT_COHERENT_CACHE explicitly. Signed-off-by: Risto Suominen --- The testing is done on kernel version 2.6.24. --- a/arch/powerpc/platforms/powermac/Kconfig.org 2008-01-25 00:58:37.000000000 +0200 +++ b/arch/powerpc/platforms/powermac/Kconfig 2009-02-10 17:44:24.000000000 +0200 @@ -18,4 +18,10 @@ config PPC_PMAC64 select PPC_970_NAP default y - +config NOT_COHERENT_CACHE + bool "Incoherent cache" + default n + help + Setting this option may be necessary for avoiding cache-related + problems with some network cards on some platforms. An example is + 2104x and PowerMac 5500.