From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by ozlabs.org (Postfix) with ESMTP id 5C3FDDDEDD for ; Wed, 18 Mar 2009 00:45:03 +1100 (EST) Received: by yx-out-2324.google.com with SMTP id 8so1703322yxb.39 for ; Tue, 17 Mar 2009 06:45:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <396BE890-40BF-451E-AE3E-2E2E1D440951@freescale.com> References: <20090311222615.63410@gmx.net> <1237197925-71727-1-git-send-email-kosmo@semihalf.com> <396BE890-40BF-451E-AE3E-2E2E1D440951@freescale.com> Date: Tue, 17 Mar 2009 07:45:01 -0600 Message-ID: Subject: Re: [PATCH] powerpc: Enable CPU_FTR_NEED_COHERENT for MPC52xx From: Grant Likely To: Kumar Gala Content-Type: text/plain; charset=ISO-8859-1 Cc: LinuxPPC Mailing List , Piotr Ziecik List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Mar 17, 2009 at 6:10 AM, Kumar Gala wrot= e: > On Mar 16, 2009, at 11:43 PM, Grant Likely wrote: >> diff --git a/arch/powerpc/include/asm/cputable.h >> b/arch/powerpc/include/asm/cput >> index 4911104..48d7f5f 100644 >> --- a/arch/powerpc/include/asm/cputable.h >> +++ b/arch/powerpc/include/asm/cputable.h >> @@ -348,8 +348,15 @@ extern const char *powerpc_base_platform; >> =A0 =A0 =A0 =A0 =A0 CPU_FTR_PPC_LE | CPU_FTR_NEED_PAIRED_STWCX) >> #define CPU_FTRS_82XX =A0(CPU_FTR_COMMON | \ >> =A0 =A0 =A0 =A0 =A0 CPU_FTR_MAYBE_CAN_DOZE | CPU_FTR_USE_TB) >> + >> +#if defined(CONFIG_PPC_MPC52xx) >> +#define CPU_FTRS_G2_LE (CPU_FTR_COMMON | CPU_FTR_MAYBE_CAN_DOZE | \ >> + =A0 =A0 =A0 =A0 =A0 CPU_FTR_USE_TB | CPU_FTR_MAYBE_CAN_NAP | >> CPU_FTR_NEED_COHERENT) >> +#else >> #define CPU_FTRS_G2_LE (CPU_FTR_COMMON | CPU_FTR_MAYBE_CAN_DOZE | \ >> =A0 =A0 =A0 =A0 =A0 CPU_FTR_USE_TB | CPU_FTR_MAYBE_CAN_NAP) >> +#endif >> + >> #define CPU_FTRS_E300 =A0(CPU_FTR_MAYBE_CAN_DOZE | \ >> =A0 =A0 =A0 =A0 =A0 CPU_FTR_USE_TB | CPU_FTR_MAYBE_CAN_NAP | \ >> =A0 =A0 =A0 =A0 =A0 CPU_FTR_COMMON) > > Doing this via a static CPU FTR fixup isn't really the best way to handle > it. =A0I was thinking about this the other day in my patch to actually ma= ke > G2/e300 cores respect _PAGE_COHERENT. =A0We really should set this via a > platform fixup. =A0Just not sure if that's soon enough. I agree, but as Ben pointed out last night on IRC, feature fixup (early_init) occurs well before platform probe time. Platform code cannot fix it up until someone does the work of making platform probe time earlier. It's non-trivial. However, I need to get a fix in for this ASAP, otherwise the 5200 will be broken in 2.6.29. I don't see this patch as a final solution, but it works as a stop-gap until platform probing can be reworked. g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.