Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3237799ybb; Tue, 31 Mar 2020 00:51:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuLuNKU9F/bVylAsGvk5uI7arKUqbjG0RQZTqd5bQ1utiF3i/oBpOzYVxzS9Dwwt8sxp3r7 X-Received: by 2002:a9d:344:: with SMTP id 62mr2454817otv.102.1585641119685; Tue, 31 Mar 2020 00:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585641119; cv=none; d=google.com; s=arc-20160816; b=pFgHT1rZVfpNpJakmd/Cu2PJRqmmIr7ABRo3qoKQKqXq9CwTai+VwEDZu4mMIGMLsm +ktMipBt0ow+dqh1NKsudcytECAmr7MXlrTZRQtTuMbhtAf7KND0YCbAgwCuWsglO8x/ 9iIT6gLYFdrKjIIzOjdOXaWoZpBVkd4llETbr5ZQrT4R8eOsjQrjIad8Uonp9WGrsb1A Dmxa68tGnXelGkA/a6H8Scrvl1nEYJkwHOV3g+dMtCU+TBstAxzYAREx996IRHh3E1G+ JtLdSV9Aqlj7aCSC53iMj1Dxt7o30PkV8ljB1rz8nLs7Er+mg3W5DmelRO25KUFYAGTa pG+g== 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:references :in-reply-to:message-id:dkim-signature; bh=5nryEhu9ZdC3QcAPQtb5kgYfw9XZ6OdDGR/6oi4BLng=; b=M4zftkaQbKficDI3fxzu0BQY2onHsvVtv6cgvfqzgiMRQafZbx4iZIjL7UzRfOrlwH BvOPmMb690eUcgEfRvL/T1qx40MvXatCl9yu9pv92Om33T9jft6xdZsTD2f3+1T9c74k TWI5fF1zkGTD7huy5PhwJgZPG/YvjkqL3ap4sSPwP8mkzPP4CHmDJ9svktokyxGIAKke r/TwbVJiTqtSVYKXqD5mC4lsCPJ9wPH+iPvCo2IJyyk496tMkj4zX1YkRlupPJEwO1uC xZ97KJR/K9uTzljBBD9kOfqmtrmxgJDm6rF3+H2bXpfkvgAWa27pskHfdqdcWSEk9kxm yfow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=JYGl4T9y; 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 q15si7185585otm.212.2020.03.31.00.51.46; Tue, 31 Mar 2020 00:51:59 -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=JYGl4T9y; 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 S1730249AbgCaHuJ (ORCPT + 99 others); Tue, 31 Mar 2020 03:50:09 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:56917 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730217AbgCaHuA (ORCPT ); Tue, 31 Mar 2020 03:50:00 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48s1h51t8Bz9v2Xl; Tue, 31 Mar 2020 09:49:57 +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=JYGl4T9y; 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 uT1uJBHRObGd; Tue, 31 Mar 2020 09:49:57 +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 48s1h475Sfz9v2Xj; Tue, 31 Mar 2020 09:49:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585640997; bh=5nryEhu9ZdC3QcAPQtb5kgYfw9XZ6OdDGR/6oi4BLng=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=JYGl4T9y15JMEOgfYjs7AbpT9SKocZ7E4g6LBXPl2A7xtv9byg9A6n2dmMoPF17Ll tfwawkePQpk3E0GTdlRSfb1P4yAz6kjgINW4Gf4FFHLC9LtSyOae7sPz5dj6xgHkSS MaOqDVyYX1KSwT/gYUTQDI9lZpwXblv39Rxcad90= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EDD8F8B78A; Tue, 31 Mar 2020 09:49:57 +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 T_zcAE1ThYPh; Tue, 31 Mar 2020 09:49:57 +0200 (CEST) Received: from pc16570vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 26C6B8B752; Tue, 31 Mar 2020 09:49:57 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 0085165676; Tue, 31 Mar 2020 07:49:56 +0000 (UTC) Message-Id: In-Reply-To: <698e9a42a06eb856eef4501c3c0a182c034a5d8c.1585640941.git.christophe.leroy@c-s.fr> References: <698e9a42a06eb856eef4501c3c0a182c034a5d8c.1585640941.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH v2 11/11] powerpc/32: Replace RFI by rfi To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , michal.simek@xilinx.com, arnd@arndb.de Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 31 Mar 2020 07:49:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RFI was a macro waving the rfi instruction for the 40x. Now that 40x is gone, rfi can be used directly. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 18 +++++++++--------- arch/powerpc/kernel/head_32.S | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index cae0bdc013e5..4920448f6ad9 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -203,7 +203,7 @@ transfer_to_handler_cont: mtspr SPRN_SRR1,r10 mtlr r9 SYNC - RFI /* jump to handler, enable MMU */ + rfi /* jump to handler, enable MMU */ #ifdef CONFIG_TRACE_IRQFLAGS 1: /* MSR is changing, re-enable MMU so we can notify lockdep. We need to @@ -216,7 +216,7 @@ transfer_to_handler_cont: mtspr SPRN_SRR0,r12 mtspr SPRN_SRR1,r0 SYNC - RFI + rfi reenable_mmu: /* @@ -290,7 +290,7 @@ stack_ovf: mtspr SPRN_SRR0,r9 mtspr SPRN_SRR1,r10 SYNC - RFI + rfi #endif #ifdef CONFIG_TRACE_IRQFLAGS @@ -439,7 +439,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) mtspr SPRN_SRR0,r7 mtspr SPRN_SRR1,r8 SYNC - RFI + rfi #ifdef CONFIG_44x 2: li r7,0 iccci r0,r0 @@ -570,7 +570,7 @@ ret_from_kernel_syscall: mtspr SPRN_SRR0, r9 mtspr SPRN_SRR1, r10 SYNC - RFI + rfi /* * The fork/clone functions need to copy the full register set into @@ -773,7 +773,7 @@ fast_exception_return: REST_GPR(12, r11) lwz r11,GPR11(r11) SYNC - RFI + rfi #ifndef CONFIG_BOOKE /* check if the exception happened in a restartable section */ @@ -1008,7 +1008,7 @@ exc_exit_restart: .globl exc_exit_restart_end exc_exit_restart_end: SYNC - RFI + rfi #else /* !CONFIG_BOOKE */ /* @@ -1313,7 +1313,7 @@ _GLOBAL(enter_rtas) stw r7, THREAD + RTAS_SP(r2) mtspr SPRN_SRR0,r8 mtspr SPRN_SRR1,r9 - RFI + rfi 1: tophys_novmstack r9, r1 #ifdef CONFIG_VMAP_STACK li r0, MSR_KERNEL & ~MSR_IR /* can take DTLB miss */ @@ -1328,7 +1328,7 @@ _GLOBAL(enter_rtas) stw r0, THREAD + RTAS_SP(r7) mtspr SPRN_SRR0,r8 mtspr SPRN_SRR1,r9 - RFI /* return to caller */ + rfi /* return to caller */ .globl machine_check_in_rtas machine_check_in_rtas: diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index daaa153950c2..13866115a18a 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S @@ -220,7 +220,7 @@ turn_on_mmu: ori r0,r0,start_here@l mtspr SPRN_SRR0,r0 SYNC - RFI /* enables MMU */ + rfi /* enables MMU */ /* * We need __secondary_hold as a place to hold the other cpus on @@ -784,14 +784,14 @@ fast_hash_page_return: lwz r11, THR11(r10) mfspr r10, SPRN_SPRG_SCRATCH0 SYNC - RFI + rfi 1: /* ISI */ mtcr r11 mfspr r11, SPRN_SPRG_SCRATCH1 mfspr r10, SPRN_SPRG_SCRATCH0 SYNC - RFI + rfi stack_overflow: vmap_stack_overflow_exception @@ -930,7 +930,7 @@ __secondary_start: mtspr SPRN_SRR0,r3 mtspr SPRN_SRR1,r4 SYNC - RFI + rfi #endif /* CONFIG_SMP */ #ifdef CONFIG_KVM_BOOK3S_HANDLER @@ -1074,7 +1074,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE) mtspr SPRN_SRR0,r4 mtspr SPRN_SRR1,r3 SYNC - RFI + rfi /* Load up the kernel context */ 2: bl load_up_mmu @@ -1099,7 +1099,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE) mtspr SPRN_SRR0,r3 mtspr SPRN_SRR1,r4 SYNC - RFI + rfi /* * void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next); @@ -1217,7 +1217,7 @@ _ENTRY(update_bats) mtspr SPRN_SRR0, r4 mtspr SPRN_SRR1, r3 SYNC - RFI + rfi 1: bl clear_bats lis r3, BATS@ha addi r3, r3, BATS@l @@ -1237,7 +1237,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS) mtspr SPRN_SRR0, r7 mtspr SPRN_SRR1, r6 SYNC - RFI + rfi flush_tlbs: lis r10, 0x40 @@ -1258,7 +1258,7 @@ mmu_off: mtspr SPRN_SRR0,r4 mtspr SPRN_SRR1,r3 sync - RFI + rfi /* * On 601, we use 3 BATs to map up to 24M of RAM at _PAGE_OFFSET -- 2.25.0