From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938706AbcIYGUd (ORCPT ); Sun, 25 Sep 2016 02:20:33 -0400 Received: from host.buserror.net ([209.198.135.123]:59160 "EHLO host.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932325AbcIYGUc (ORCPT ); Sun, 25 Sep 2016 02:20:32 -0400 Date: Sun, 25 Sep 2016 01:20:17 -0500 From: Scott Wood To: David Engraf Cc: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Message-ID: <20160925062017.GA10754@home.buserror.net> References: <1471877203-29327-1-git-send-email-david.engraf@sysgo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471877203-29327-1-git-send-email-david.engraf@sysgo.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 75.72.173.242 X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Subject: Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for e5500/e6500 X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on host.buserror.net) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 22, 2016 at 04:46:43PM +0200, David Engraf wrote: > The PowerPC e5500/e6500 architecture is based on the e500mc core. Enable > CONFIG_E500 and CONFIG_PPC_E500MC when e5500/e6500 is used. > > This will also fix using CONFIG_PPC_QEMU_E500 on PPC64. > > Signed-off-by: David Engraf > --- > arch/powerpc/platforms/Kconfig.cputype | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype > index f32edec..0382da7 100644 > --- a/arch/powerpc/platforms/Kconfig.cputype > +++ b/arch/powerpc/platforms/Kconfig.cputype > @@ -125,11 +125,13 @@ config POWER8_CPU > > config E5500_CPU > bool "Freescale e5500" > - depends on E500 > + select E500 > + select PPC_E500MC > > config E6500_CPU > bool "Freescale e6500" > - depends on E500 > + select E500 > + select PPC_E500MC These config symbols are for setting -mcpu. Kernels built with CONFIG_GENERIC_CPU should also work on e5500/e6500. The problem is that CONFIG_PPC_QEMU_E500 doesn't select E500 (I didn't notice it before because usually CORENET_GENERIC is enabled as well). Note that your patch, by eliminating the dependency on E500, would make it possible to build a book3s kernel with E5500_CPU/E6500_CPU, which doesn't make any sense. -Scott