From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7CB52B6F0A for ; Thu, 26 Nov 2009 16:09:37 +1100 (EST) Subject: Re: [RFC PATCH 07/19] powerpc: gamecube/wii: declare as non-coherent platforms From: Benjamin Herrenschmidt To: Albert Herranz In-Reply-To: <1258927311-4340-8-git-send-email-albert_herranz@yahoo.es> References: <1258927311-4340-1-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-2-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-3-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-4-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-5-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-6-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-7-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-8-git-send-email-albert_herranz@yahoo.es> Content-Type: text/plain; charset="UTF-8" Date: Thu, 26 Nov 2009 16:09:30 +1100 Message-ID: <1259212170.16367.263.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2009-11-22 at 23:01 +0100, Albert Herranz wrote: > The processors bundled in the Nintendo GameCube and Wii video game consoles > require explicit cache handling when DMA engines are used. That reminds me we really need to make that a runtime option some day... Cheers, Ben. > Signed-off-by: Albert Herranz > --- > arch/powerpc/platforms/Kconfig.cputype | 2 +- > arch/powerpc/platforms/embedded6xx/Kconfig | 1 + > 2 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype > index e382cae..80d934b 100644 > --- a/arch/powerpc/platforms/Kconfig.cputype > +++ b/arch/powerpc/platforms/Kconfig.cputype > @@ -312,7 +312,7 @@ config NR_CPUS > > config NOT_COHERENT_CACHE > bool > - depends on 4xx || 8xx || E200 || PPC_MPC512x > + depends on 4xx || 8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON > default y > > config CHECK_CACHE_COHERENCY > diff --git a/arch/powerpc/platforms/embedded6xx/Kconfig b/arch/powerpc/platforms/embedded6xx/Kconfig > index 97a2dbc..31487e4 100644 > --- a/arch/powerpc/platforms/embedded6xx/Kconfig > +++ b/arch/powerpc/platforms/embedded6xx/Kconfig > @@ -93,4 +93,5 @@ config MPC10X_STORE_GATHERING > > config GAMECUBE_COMMON > bool > + select NOT_COHERENT_CACHE >