Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1631450imj; Fri, 8 Feb 2019 04:54:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZbmzcbPn+se2nyiqTfjUg1jaXsOrzR1lXJpkkbKJf18t3sct3dCrZYVbDd7VheqpikSEEc X-Received: by 2002:a62:4d81:: with SMTP id a123mr22613862pfb.122.1549630489837; Fri, 08 Feb 2019 04:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549630489; cv=none; d=google.com; s=arc-20160816; b=GTvy5+I0LnibAr12E0p10T0iyy8OhaTtQ0tpbpUsxcC/PaGfqHrQxEJdttpJZ1OPLe cO8JaZHUovQqEdzS58qvwL4kHvIQs3QXOrwByGKf6wkuKNcJxOqR63y4MVKZagL5e9hb aKH62DqwHiapj/jGzV+BosiAC32fC1FGYDOnbHZvlqdWYRWa3+yx7627LH1NTaJxuoZA R9XQvZ6LPVX7bcvErJv/pTIu6SoVN/qnY45Vr9rqPKlscEys59BJgB/5P9uDKerel7qx rj718E7r7c4VPmWhc+KdNkFEQ6icSbw8D3r5PH+0louOBWUyOKrPl+UDr4/3sI/c/zJn M80w== 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=77j0wGUnvUgbpHVhTJyROpdDSW+dwdzLxURZEG3jqb0=; b=tEfjb+q5aZ8eJvnltkV1h53etaxxXch2Vr9cLgEwtw7l4wrrcxjhBo2xa8DmpQDOuQ SWtWFiezMTvHA6qOkKvw032Vq90WbbwbdqVMBT5fdhTkeNLB7yJCz5FrSTtO21V63UOK LDE8fENhUfiNT3RjH9qgW/oxMNNcn4+Rg27BPxZJY0YMQwTXr6YxW7xcpmZNMOTaqaVL MlaUlPbTs30O8coUciKkc91ssVed5UWBMKBk4uzhuumvotx9xFyxHW+Z+chTrAxs1yZq 3jHKMLiJ9yv26R4N5FZ6fvDYQRQ4kIiGnOn/N1GYNSXshdB+LsZbN/HzWEfJuPR52fiM jZYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=b+RNrtoI; 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 x14si2168295pln.27.2019.02.08.04.54.34; Fri, 08 Feb 2019 04:54:49 -0800 (PST) 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=b+RNrtoI; 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 S1727888AbfBHMw5 (ORCPT + 99 others); Fri, 8 Feb 2019 07:52:57 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:3608 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727860AbfBHMwv (ORCPT ); Fri, 8 Feb 2019 07:52:51 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43ww805yzcz9v0dM; Fri, 8 Feb 2019 13:52:48 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=b+RNrtoI; 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 3Hj8E3XDvFOq; Fri, 8 Feb 2019 13:52:48 +0100 (CET) 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 43ww804yZ0z9v0dH; Fri, 8 Feb 2019 13:52:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1549630368; bh=77j0wGUnvUgbpHVhTJyROpdDSW+dwdzLxURZEG3jqb0=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=b+RNrtoIn2FEyqUD2dikw6CcErmTWeO8elSPxhty3NtPQIZYK8WLPwTRn+7nNBdAP xzD9G2tmJ3ZeiXcPr2GMUpBPSBRgdPyqUqnatz4gfQPaVPhTNIHDCihQHn0yJxdhpT gBGDDfwyohivI+xhXtj9Vi/LJXbiUfNmUv8TF0tA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 075C38B8D7; Fri, 8 Feb 2019 13:52:50 +0100 (CET) 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 WyCDRsC37F5J; Fri, 8 Feb 2019 13:52:49 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E2DB08B756; Fri, 8 Feb 2019 13:52:49 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id A6F46653E8; Fri, 8 Feb 2019 12:52:49 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [RFC PATCH v1 16/16] powerpc/32: don't do syscall stuff in transfer_to_handler on non BOOKE To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nicholas Piggin Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 8 Feb 2019 12:52:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As syscalls are now handled via a fast entry path, syscall related actions can be removed from the generic transfer_to_handler path. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 0927d5ff1e79..85f1fc88c237 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -211,7 +211,9 @@ transfer_to_handler_cont: */ tophys(r12, r1) lwz r12,_MSR(r12) +#ifdef CONFIG_BOOKE /* to be removed once BOOKE uses fast syscall entry */ xor r12,r10,r12 +#endif andi. r12,r12,MSR_EE bne 1f @@ -252,8 +254,10 @@ reenable_mmu: * the rest is restored from the exception frame. */ +#ifdef CONFIG_BOOKE /* to be removed once BOOKE uses fast syscall entry */ /* Are we enabling or disabling interrupts ? */ andi. r0,r10,MSR_EE +#endif stwu r1,-32(r1) stw r9,8(r1) @@ -262,7 +266,9 @@ reenable_mmu: stw r4,20(r1) stw r5,24(r1) +#ifdef CONFIG_BOOKE /* to be removed once BOOKE uses fast syscall entry */ bne- 0f +#endif /* If we are disabling interrupts (normal case), simply log it with * lockdep @@ -282,6 +288,7 @@ reenable_mmu: mtlr r9 bctr /* jump to handler */ +#ifdef CONFIG_BOOKE /* to be removed once BOOKE uses fast syscall entry */ /* If we are enabling interrupt, this is a syscall. They shouldn't * happen while interrupts are disabled, so let's do a warning here. */ @@ -294,6 +301,7 @@ reenable_mmu: ori r10,r10,MSR_EE mtmsr r10 b 2b +#endif #endif /* CONFIG_TRACE_IRQFLAGS */ #if defined (CONFIG_PPC_BOOK3S_32) || defined(CONFIG_E500) -- 2.13.3