Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4861661yba; Tue, 30 Apr 2019 05:41:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1nkqP+jxhgFz5R0fFQwh5V0pNGIS5B7FOZhTGoHiAbsldc38MY7qVTgq/lqa+4dzdFmK8 X-Received: by 2002:a63:1555:: with SMTP id 21mr25554108pgv.204.1556628065622; Tue, 30 Apr 2019 05:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556628065; cv=none; d=google.com; s=arc-20160816; b=S+3eJRIs5NG1w3gs3sbcZSTd0NtjcZgOcUPZC92S9wbFYQNor931Z6EvcpCfWK4QDN bk+1BOXQXTefyE9SnTqo5RdGlhW9eovywrYJ2GoPCiyIybEqFb6cDlyW0UEg+ENo0R3L mrEZY+iqFHiZ+V6w0gXc+CsmuY4MM01M+kh2ltqWsOwuAjDZ+BClwSXMMwqsg3Flch83 35P9AjG3bxupHrgMSPNB/PBl/f+tK+7/R9DIOcyw39BVFMVheWe7P8xKcnywXB3XHoZz XPMbjX0i7AF9TK8TSTKNx5xlF1YkQOgN9Z24bUNUKf3+9hBuPmicb7IcCblr+zOk7PiK XIYA== 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=f5YsfLpbvdLn0XXnWjAxlpwajHYoV8o20+zw0Y+DHhE=; b=S9g5+esyVrUAStlb7O+cvYSE4zksrD5p0CmhMACBxOXnX8bD6wgCFgpnJvGMer3yCo 5FvT2fqBappTc0iU+tJyQOZw0oF5YzooBJtEM61PFx6mds8gChK06SKlOuQE8Gi9GseK Ou3Z5a/E3FtQg41g8NQVbuJlNfthT6foxQY1odWnM8EL25Qaj+o73MtnHGkB5qbdsKsD HZ9zHBGQC/v4t/uaJAQYL0c6e/fXiOZJvaWfShdrXEP1IGFsQur5OJyA+EwLXMWyCPZj YCcBtDaKc54E4jbLFrnQa9sjjyTSdHJ8HGKiiHqJPPGC++LcyMzs9g7CFAoHFD+GKDGa c9UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Rzy3c1fu; 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 e26si18644194pgb.368.2019.04.30.05.40.49; Tue, 30 Apr 2019 05:41:05 -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=Rzy3c1fu; 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 S1727036AbfD3Mj2 (ORCPT + 99 others); Tue, 30 Apr 2019 08:39:28 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:53756 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728169AbfD3MjF (ORCPT ); Tue, 30 Apr 2019 08:39:05 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44th0l5Kp1z9vD3C; Tue, 30 Apr 2019 14:39:03 +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=Rzy3c1fu; 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 Ac3cEZdpOyBc; Tue, 30 Apr 2019 14:39:03 +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 44th0l47CZz9vD30; Tue, 30 Apr 2019 14:39:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1556627943; bh=f5YsfLpbvdLn0XXnWjAxlpwajHYoV8o20+zw0Y+DHhE=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=Rzy3c1fuyMeliG701+kZh2/wU2Pld85MshrAaJrocgtud//aGb7FzfaXv5k+hjQu8 klPZmkCawLswYqyiI43gvVv5bCsjnep1L3rt6phZXr/N3r9BDouqVaO5qoMMYinWH2 VCCwHcapqXs5pxVjxLYYJqxw0C1GH5r5X/KRHmcE= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EA6578B8DF; Tue, 30 Apr 2019 14:39:04 +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 546bxg9kouOL; Tue, 30 Apr 2019 14:39:04 +0200 (CEST) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C59DC8B8C2; Tue, 30 Apr 2019 14:39:04 +0200 (CEST) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 8D180666F8; Tue, 30 Apr 2019 12:39:04 +0000 (UTC) Message-Id: <26d4ef723e031925d9252390c7f09aec66f18b54.1556627571.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v3 15/16] 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: Tue, 30 Apr 2019 12:39:04 +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 dc58fec51ed6..e65c3e70c648 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -217,7 +217,6 @@ transfer_to_handler_cont: */ tophys(r12, r1) lwz r12,_MSR(r12) - xor r12,r10,r12 andi. r12,r12,MSR_EE bne 1f @@ -258,9 +257,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) @@ -268,8 +264,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 */ @@ -287,19 +281,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