Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1707499ybb; Fri, 29 Mar 2019 09:40:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwONYIgEP1RilgcOp6ZII2MuefpIGxgL//7ngQ6C6qTKiy+lMI34EyZN4zQzLH6hH/svu6y X-Received: by 2002:a63:1b07:: with SMTP id b7mr48279093pgb.250.1553877613735; Fri, 29 Mar 2019 09:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553877613; cv=none; d=google.com; s=arc-20160816; b=OCviBTArZlPAqR3ua+znS8plaGHsRUss4P9qyVcD6IrRG2G9FXmkuvIvsCOSIFZtzK XMPF1n8w3Jys5/CGut3YLCINZorqOEh5+Had60tSQj4u0p40rsjwuK058rymlS05yiDk Z1FKoS1xgpJ/f7ocIqZERJ/BMfs9hL6i/IDRtMVlPVgag4J2IWx5/919+IcJ1+N/k+Q7 3aVQBKUhR1zEXFbawHubl0xHqoG5on1hzi4/WIHj+CPQeCArOADqiib2/PbIpxrkZWy3 +v3nfnZIHbpsYv25gM78/aIbDx1ZtPyYcitgT23qnEOfXm5VFEq0cYUVYXGzO/HZ+l0z xIoA== 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=DsBNl9Sur9OH4PdUs/hysFTLVmz5ylaox1/f92Sqvd8=; b=CcDfMJZABk1TFt0UFMGgNjpxZafbRcy/0+Wpi3UO3uoUqw+0Yd5fBG4uDiwwVVP6+K LyzL58U+GVpN4e36sggJCZbsJJXrQPGkkJth5paGM6PqfhqOzdBzqfi6yw0Ndn6vnyHf RfSMK7S2ufroYhLIRUU1SRZe9QjPhtj3aLQRDtC4i9rVAhHjCWAyKT2dOTvFpOnBtnih wHYv7z4efllNq2ReKDGCMqwYNOchA4mTF+Yh9LflxSDjDVtcDLGSyul95FtxOvbEXtIz G39MVZfTnOBiMjHbL7zOfIVAUYyq3Y75z16Z9cHaAOSNeWn4fjzkovxVElOovk33EwRN I+aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=nyXYIod6; 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 d19si2455906pfm.1.2019.03.29.09.39.58; Fri, 29 Mar 2019 09:40:13 -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=nyXYIod6; 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 S1729941AbfC2Qiy (ORCPT + 99 others); Fri, 29 Mar 2019 12:38:54 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:40082 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729796AbfC2Qij (ORCPT ); Fri, 29 Mar 2019 12:38:39 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44W6qx3vvVz9tyQj; Fri, 29 Mar 2019 17:38:37 +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=nyXYIod6; 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 AglH_oIGkeWC; Fri, 29 Mar 2019 17:38:37 +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 44W6qx2s6Dz9tyQR; Fri, 29 Mar 2019 17:38:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1553877517; bh=DsBNl9Sur9OH4PdUs/hysFTLVmz5ylaox1/f92Sqvd8=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=nyXYIod6pPssD/qU4noHRCfYT525MBEvMU9Wgzk1LG+QUimSD2fx7YqBqYoEXNtHV yGU5P73h5tLN3abw0dYDIMAYfgn3OVyJec8eyZlFp/C/eEa0Sz3l5JjGahChOo9eJR 0UhyU0ZZCB9jBfl2SurWY9pF1vvxWaV9X2hORn4k= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 050768B93D; Fri, 29 Mar 2019 17:38:39 +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 L-087Tu9WM4e; Fri, 29 Mar 2019 17:38:38 +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 E2D498B938; Fri, 29 Mar 2019 17:38:38 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id C3AB16FC56; Fri, 29 Mar 2019 16:38:38 +0000 (UTC) Message-Id: <7b2c2ab6328b33b3cacc47d24f5cb20b6fcbf96b.1553877076.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v2 16/17] powerpc/32: don't do syscall stuff in transfer_to_handler To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nicholas Piggin Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 29 Mar 2019 16:38:38 +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 | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index edd119d3c52b..c648b75f41a3 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -211,7 +211,6 @@ transfer_to_handler_cont: */ tophys(r12, r1) lwz r12,_MSR(r12) - xor r12,r10,r12 andi. r12,r12,MSR_EE bne 1f @@ -252,9 +251,6 @@ reenable_mmu: * the rest is restored from the exception frame. */ - /* Are we enabling or disabling interrupts ? */ - andi. r0,r10,MSR_EE - stwu r1,-32(r1) stw r9,8(r1) stw r11,12(r1) @@ -262,8 +258,6 @@ reenable_mmu: stw r4,20(r1) stw r5,24(r1) - bne- 0f - /* If we are disabling interrupts (normal case), simply log it with * lockdep */ @@ -281,19 +275,6 @@ reenable_mmu: mtctr r11 mtlr r9 bctr /* jump to handler */ - - /* If we are enabling interrupt, this is a syscall. They shouldn't - * happen while interrupts are disabled, so let's do a warning here. - */ -0: trap - EMIT_BUG_ENTRY 0b,__FILE__,__LINE__, BUGFLAG_WARNING - bl trace_hardirqs_on - - /* Now enable for real */ - mfmsr r10 - ori r10,r10,MSR_EE - mtmsr r10 - b 2b #endif /* CONFIG_TRACE_IRQFLAGS */ #if defined (CONFIG_PPC_BOOK3S_32) || defined(CONFIG_E500) -- 2.13.3