From patchwork Mon Apr 29 16:00:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Thierry X-Patchwork-Id: 10922013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F40814B6 for ; Mon, 29 Apr 2019 16:00:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88CE72887E for ; Mon, 29 Apr 2019 16:00:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77E722889C; Mon, 29 Apr 2019 16:00:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 18E352887E for ; Mon, 29 Apr 2019 16:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=0QC+Epn/To5qLrsD8J9W16zAEm3JB3UjNXsBIfVxKTE=; b=UFu TP1HkHlyX+yld8/KjNvrYd7/WWcF4sKiggHMqCmmzi1MfKLyeMWZWf8qi4dBOE8P8DFsgWAMSLcBe DA5mLkDZoQ9/OryV9avP8RiPlletOqHTVtYkmjG87tZJj+MvHQ+NEaSR873Bh7vqxfvsqlMrRNPXm PuMliyapepKbyQW1oCqsPSMwe6JMMijBP3thr54Y/Irkj3HIgsjclDHGuZf2eI2XvDd9ysOebNBsS EI8fpgOan6lsBQXThT/+K+NpNpObudd4waA9xRKQxPUc90a9I8G4V1uFy+L5E8DatgYBH8JpHZ0CO Fp00oONMGGsHPV++iUAulUQepAZHPtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hL8hW-0002fM-Lh; Mon, 29 Apr 2019 16:00:18 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hL8hT-0002eW-AY for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2019 16:00:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CDC2380D; Mon, 29 Apr 2019 09:00:14 -0700 (PDT) Received: from e112298-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C8B283F5C1; Mon, 29 Apr 2019 09:00:12 -0700 (PDT) From: Julien Thierry To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/5] arm64: IRQ priority masking and Pseudo-NMI fixes Date: Mon, 29 Apr 2019 17:00:02 +0100 Message-Id: <1556553607-46531-1-git-send-email-julien.thierry@arm.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190429_090015_372895_C191C8AA X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, Julien Thierry , marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, james.morse@arm.com, yuzenghui@huawei.com, wanghaibin.wang@huawei.com, liwei391@huawei.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, [Changing the title to make it reflex more the status of the series.] Version one[1] of this series attempted to fix the issue reported by Zenghui[2] when using the function_graph tracer with IRQ priority masking. Since then, I realized that priority masking and the use of Pseudo-NMIs was more broken than I thought. * Patch 1 is just some rework * Patch 2 replaces the previous irqflags tracing "simplification" with a proper fix when tracing Pseudo-NMI * Patch 3 fixes the function_graph issue when using priority masking * Patch 4 introduces some debug to hopefully avoid breaking things in the future * Patch 5 is a rebased version of the patch sent by Wei Li[3] fixing an error that can happen during on some platform using the priority masking feature Changes since V1 [1]: - Fix possible race condition between NMI and trace irqflags - Simplify the representation of PSR.I in the PMR value - Include Wei Li's fix - Rebase on v5.1-rc7 [1] https://marc.info/?l=linux-arm-kernel&m=155542458004480&w=2 [2] https://www.spinics.net/lists/arm-kernel/msg716956.html [3] https://www.spinics.net/lists/arm-kernel/msg722171.html Cheers, Julien --> Julien Thierry (4): arm64: Do not enable IRQs for ct_user_exit arm64: Fix interrupt tracing in the presence of NMIs arm64: Fix incorrect irqflag restore for priority masking arm64: irqflags: Introduce explicit debugging for IRQ priorities Wei Li (1): arm64: fix kernel stack overflow in kdump capture kernel arch/arm64/Kconfig | 11 +++++ arch/arm64/include/asm/arch_gicv3.h | 4 +- arch/arm64/include/asm/assembler.h | 9 ++++ arch/arm64/include/asm/daifflags.h | 31 +++++++++++--- arch/arm64/include/asm/irqflags.h | 83 +++++++++++++++++++------------------ arch/arm64/include/asm/kvm_host.h | 4 +- arch/arm64/include/asm/ptrace.h | 10 ++++- arch/arm64/kernel/entry.S | 76 +++++++++++++++++++++++++-------- arch/arm64/kernel/irq.c | 26 ++++++++++++ arch/arm64/kernel/process.c | 2 +- arch/arm64/kernel/smp.c | 6 +-- arch/arm64/kvm/hyp/switch.c | 2 +- drivers/irqchip/irq-gic-v3.c | 6 +++ kernel/irq/irqdesc.c | 8 +++- 14 files changed, 202 insertions(+), 76 deletions(-) --- 1.9.1