Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3571611pxk; Mon, 28 Sep 2020 23:51:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9KcOyKoM3FXdNlRyykTJHUG7bC94a/19JuVaH/6o5wpbvo5v1AUN27Jkxaxhbhi1j8WhD X-Received: by 2002:a05:6402:78b:: with SMTP id d11mr1676181edy.341.1601362264175; Mon, 28 Sep 2020 23:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601362264; cv=none; d=google.com; s=arc-20160816; b=AsKQdem4myIYikucLy/PnNRRuG+G0LnI+v6ghlZiQWKMOexLezHnhMHpixAyBvG7j8 jddW1TjfhHngaIyjoB91o2NzDoWuk1TEuWxknxBx0Y8r7AreHgBbVn3HvtdIYqgwGIrh cVzc2JXwwRDptnlY+LICg+kDKZSa/vMsmjPL6V/PIy1XJW1/dVjusbyyQ7XeDcGXxAdP D6yqVYnM18QK7I9gCXomi/D3tYxA+MNFzex2hClrsMxpwSHCvUyhXg1nXA0WsxzqnczH ehMs/4IK0TPgXEzB87DXu6XFiBN6A8h2B6vs2XU0GEHFZmX4aSHbfmxiIWwSGxqF5Eai BSNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:references:in-reply-to :message-id; bh=aU7HioEhnG+uH3/IE2kvkLZVv0BkBTOQNEus3IJ0NvA=; b=bDGLg3fP3ulYw396vTq9K8DizUkLZrKiRa617gQw9w/+ihA7OTs9ecJInbHH7SWU30 Qs4k2REqh/0ojhwInTb2NDwU9M7i/XJ/nEsIWMeV2pJXen0pTShut5C4N7XHVxTx7EAU hwbnjj0GjS1wG6DIBOGZ6+duajoDYsh+5sMFTGtLaHvqi4liBPuMTqD+aBJIlKz0i3HB diz7o4+MKy6PoBgji/3aezWzBl5XTRX379nEU3SzPMpwNk6JZCyg9u3QDalo4gPm/1ur tV/Q0YcmN8AwyG6hW8bQ4Pnix5Y8ZMSNhmf4CJIwC3Z35sJP1Mf4WJyfPsBqX/yoDk4h zLug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si2163662ejc.55.2020.09.28.23.50.41; Mon, 28 Sep 2020 23:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727484AbgI2Gsi (ORCPT + 99 others); Tue, 29 Sep 2020 02:48:38 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:49317 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgI2Gsg (ORCPT ); Tue, 29 Sep 2020 02:48:36 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4C0qjD3TL7z9v2c9; Tue, 29 Sep 2020 08:48:32 +0200 (CEST) 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 FZEOfDn4K9i8; Tue, 29 Sep 2020 08:48:32 +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 4C0qjD2hGlz9v2c7; Tue, 29 Sep 2020 08:48:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6B0588B79F; Tue, 29 Sep 2020 08:48:33 +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 tuCDBAwLVZqz; Tue, 29 Sep 2020 08:48:33 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2A4AD8B76C; Tue, 29 Sep 2020 08:48:33 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 093EE65E8A; Tue, 29 Sep 2020 06:48:33 +0000 (UTC) Message-Id: <55b46bff16705b1ae7bf0a60ccd522b1010ebf75.1601362098.git.christophe.leroy@csgroup.eu> In-Reply-To: <27951fa6c9a8f80724d1bc81a6117ac32343a55d.1601362098.git.christophe.leroy@csgroup.eu> References: <27951fa6c9a8f80724d1bc81a6117ac32343a55d.1601362098.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH v3 2/8] powerpc: Remove CONFIG_PPC601_SYNC_FIX To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 29 Sep 2020 06:48:33 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This config option isn't in any defconfig. The very first versions of Powerpc 601 have a bug which requires additional sync before and/or after some instructions. This was more than 25 years ago and time has come to retire those buggy versions of the 601 from the kernel. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 6 ------ arch/powerpc/platforms/Kconfig | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index b4cc6608131c..0b9dc814b81c 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h @@ -382,15 +382,9 @@ GLUE(.,name): #endif /* various errata or part fixups */ -#ifdef CONFIG_PPC601_SYNC_FIX -#define SYNC sync; isync -#define SYNC_601 sync -#define ISYNC_601 isync -#else #define SYNC #define SYNC_601 #define ISYNC_601 -#endif #if defined(CONFIG_PPC_CELL) || defined(CONFIG_PPC_FSL_BOOK3E) #define MFTB(dest) \ diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig index b439b027a42f..7a5e8f4541e3 100644 --- a/arch/powerpc/platforms/Kconfig +++ b/arch/powerpc/platforms/Kconfig @@ -199,21 +199,6 @@ source "drivers/cpuidle/Kconfig" endmenu -config PPC601_SYNC_FIX - bool "Workarounds for PPC601 bugs" - depends on PPC_BOOK3S_601 && PPC_PMAC - default y - help - Some versions of the PPC601 (the first PowerPC chip) have bugs which - mean that extra synchronization instructions are required near - certain instructions, typically those that make major changes to the - CPU state. These extra instructions reduce performance slightly. - If you say N here, these extra instructions will not be included, - resulting in a kernel which will run faster but may not run at all - on some systems with the PPC601 chip. - - If in doubt, say Y here. - config TAU bool "On-chip CPU temperature sensor support" depends on PPC_BOOK3S_32 -- 2.25.0