Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4331623ybl; Mon, 26 Aug 2019 08:53:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvuLwqblx+UjjTwTBqA9YcF/5+UqmCYM7wTZEl0aOy8w5uhtRPhFDYKIp854h6iEF8pCp8 X-Received: by 2002:aa7:9393:: with SMTP id t19mr20118263pfe.12.1566834803822; Mon, 26 Aug 2019 08:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566834803; cv=none; d=google.com; s=arc-20160816; b=vuN0ksB8TYTicdJSsqdTF7QgsvkCyGJOYq1Y54e36aFoNcHHd21oLozTZWc/pqRzGz DnL9c+IuPBanwRaEou34B4yiK0tt8ORkPkvrfJOXg4+ol5XQPuHb96yaoBO1HOn9n7Ow +8TjSP435iOHq8SGYUAP/VDaRm5C6+CvZlBi+GakjwfogGhr7N0qpIO9MVgZTIgENcRL lOapnvDsBsb4ej+j403GFLnXmUeNy3OhFs4gwDSPIQP7vj7DtU8SvZVjx/FSpT8a/bvd nJBPjHKaLGixaS7d6NwA62vfVBTOdgqtkUvknqJMrAWe/i2LVyIx8gEHB6x1LAZE2ImA UNRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=kt+CYoK4PGukDXYgVhxhNn93WidNLx35FNjgmxgzUro=; b=cTyK68cuBE60/bLl1AJq5ga6MO90HlPaBN2yklcX9jCUgxfz5dJp8aj1ah70/4W4m5 qnJyTAc6OuuBxrNUeUogiluCA+7nWb4Am83Zahyr4rwMw9NRtGLbalYQo809WPQguUDV 94A+KDm7lE6gHVmvjE9DhJB78JiAPnVggLknkllwj0pPjsGNDRFSiq6HArn8TXZampFq aEYIzGFAJZm6WNTrXjR3om93QL5qA78fPc0mTpDo5GIDXhfFhbnaXuI4WRpBHanqcm96 Wu3v/DNCju3jNYfnr/fmJXId5/F5p8j9DiJFNaD8o4RK18832HxiTwQ5eklbp0NpyeoU VWag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=F4HiHO09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23si9527795pgb.496.2019.08.26.08.53.08; Mon, 26 Aug 2019 08:53:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=F4HiHO09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731646AbfHZPwQ (ORCPT + 99 others); Mon, 26 Aug 2019 11:52:16 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:53027 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730091AbfHZPwP (ORCPT ); Mon, 26 Aug 2019 11:52:15 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46HGj53dmjz9v7Dm; Mon, 26 Aug 2019 17:52:09 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=F4HiHO09; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id Onjx9NsiuY8B; Mon, 26 Aug 2019 17:52:09 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 46HGj52Yyjz9v7Dl; Mon, 26 Aug 2019 17:52:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1566834729; bh=kt+CYoK4PGukDXYgVhxhNn93WidNLx35FNjgmxgzUro=; h=From:Subject:To:Cc:Date:From; b=F4HiHO09Hnl+Qa4+MNUIU8WW2D3FYQ5UR1EIwTfDHA7RJwVZ+Zt66BFQREA8cXdok kLP14vGG9vrZURNvwM+G3OLgJiOx4REgrSTHs/qx3IcI4DnwkJz0H38yVUNOB7rUYs wKf+kalw4m13bk+0CgrJ7Zt4+Raf1l+68Rs/cmfQ= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A87F08B7EF; Mon, 26 Aug 2019 17:52:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Sh8BbHsLWtL2; Mon, 26 Aug 2019 17:52:14 +0200 (CEST) Received: from pc16032vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.103]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 307838B7E1; Mon, 26 Aug 2019 17:52:14 +0200 (CEST) Received: by pc16032vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 03822696D5; Mon, 26 Aug 2019 15:52:13 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH 1/6] powerpc/32s: add an option to exclusively select powerpc 601 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 26 Aug 2019 15:52:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Powerpc 601 is rather old powerpc which as some important limitations compared to other book3s/32 powerpcs: - No Timebase. - Common BATs for instruction and data. - No execution protection in segment registers. - No RI bit in MSR - ... It is starting to be difficult and cumbersome to maintain kernels that are compatible both with 601 and other 6xx cores. Create a compiletime option to exclusively select either powerpc 601 or other 6xx. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 56a7c814160d..68c5cc075bfc 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -6,6 +6,9 @@ config PPC64 This option selects whether a 32-bit or a 64-bit kernel will be built. +config PPC_BOOK3S_32 + bool + menu "Processor support" choice prompt "Processor Type" @@ -21,13 +24,20 @@ choice If unsure, select 52xx/6xx/7xx/74xx/82xx/83xx/86xx. -config PPC_BOOK3S_32 - bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx" +config PPC_BOOK3S_6xx + bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx except 601" + select PPC_BOOK3S_32 select PPC_FPU select PPC_HAVE_PMU_SUPPORT select PPC_HAVE_KUEP select PPC_HAVE_KUAP +config PPC_BOOK3S_601 + bool "PowerPC 601" + select PPC_BOOK3S_32 + select PPC_FPU + select PPC_HAVE_KUAP + config PPC_85xx bool "Freescale 85xx" select E500 -- 2.13.3