From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0181.outbound.protection.outlook.com [207.46.163.181]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 9ACE01A0054 for ; Thu, 21 Aug 2014 11:57:41 +1000 (EST) Message-ID: <1408586243.4058.96.camel@snotra.buserror.net> Subject: Re: [PATCH v2 1/2] powerpc/booke: Restrict SPE exception handlers to e200/e500 cores From: Scott Wood To: Mihai Caraman Date: Wed, 20 Aug 2014 20:57:23 -0500 In-Reply-To: <1408540144-24436-1-git-send-email-mihai.caraman@freescale.com> References: <1408540144-24436-1-git-send-email-mihai.caraman@freescale.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Cc: linuxppc-dev@lists.ozlabs.org, Alexander Graf , kvm-ppc@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2014-08-20 at 16:09 +0300, Mihai Caraman wrote: > SPE exception handlers are now defined for 32-bit e500mc cores even though > SPE unit is not present and CONFIG_SPE is undefined. > > Restrict SPE exception handlers to e200/e500 cores adding CONFIG_SPE_POSSIBLE > and consequently guard __stup_ivors and __setup_cpu functions. > > Signed-off-by: Mihai Caraman > Cc: Scott Wood > Cc: Alexander Graf > --- > v2: > - use CONFIG_PPC_E500MC without CONFIG_E500 > - use elif defined() > > arch/powerpc/kernel/cpu_setup_fsl_booke.S | 12 +++++++++++- > arch/powerpc/kernel/cputable.c | 5 +++++ > arch/powerpc/kernel/head_fsl_booke.S | 18 +++++++++++++----- > arch/powerpc/platforms/Kconfig.cputype | 6 +++++- > 4 files changed, 34 insertions(+), 7 deletions(-) Acked-by: Scott Wood -Scott From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 21 Aug 2014 01:57:23 +0000 Subject: Re: [PATCH v2 1/2] powerpc/booke: Restrict SPE exception handlers to e200/e500 cores Message-Id: <1408586243.4058.96.camel@snotra.buserror.net> List-Id: References: <1408540144-24436-1-git-send-email-mihai.caraman@freescale.com> In-Reply-To: <1408540144-24436-1-git-send-email-mihai.caraman@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Mihai Caraman Cc: linuxppc-dev@lists.ozlabs.org, Alexander Graf , kvm-ppc@vger.kernel.org On Wed, 2014-08-20 at 16:09 +0300, Mihai Caraman wrote: > SPE exception handlers are now defined for 32-bit e500mc cores even though > SPE unit is not present and CONFIG_SPE is undefined. > > Restrict SPE exception handlers to e200/e500 cores adding CONFIG_SPE_POSSIBLE > and consequently guard __stup_ivors and __setup_cpu functions. > > Signed-off-by: Mihai Caraman > Cc: Scott Wood > Cc: Alexander Graf > --- > v2: > - use CONFIG_PPC_E500MC without CONFIG_E500 > - use elif defined() > > arch/powerpc/kernel/cpu_setup_fsl_booke.S | 12 +++++++++++- > arch/powerpc/kernel/cputable.c | 5 +++++ > arch/powerpc/kernel/head_fsl_booke.S | 18 +++++++++++++----- > arch/powerpc/platforms/Kconfig.cputype | 6 +++++- > 4 files changed, 34 insertions(+), 7 deletions(-) Acked-by: Scott Wood -Scott