Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3422476imu; Mon, 28 Jan 2019 04:42:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN6UZi4wgAYZeN9NuZumwEPC8i+QnRRYRBgi/gIrh3csiT6wS3AKXGgfSIYDvMTE+yIxh1Qq X-Received: by 2002:a17:902:28aa:: with SMTP id f39mr21854465plb.297.1548679328328; Mon, 28 Jan 2019 04:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548679328; cv=none; d=google.com; s=arc-20160816; b=BKTMZurydTEF3JMRTzDUiUveMkAOkC5HqCP/BdSXXocBwKBGFBIk/+LxX6voh5qwBL dH5LSoiodzzl4IfCA5ST85dT+X6+1R0ApHx9Jd8T9jPjqGAZT0YpdMJFqe3T2meVIDz4 95N0iYfBOitBmZaVKP4XcL2ogma0F7meqM1uOep6Uy8kYJv/LjTyyzkjVQ07/ssUhhrG +YK5JEQpb2zbvdj5+Jo5GDGIk/n56ZW06dH7prXUjZb2wOHFKZAh8PI5jyUJ1mLvT2j2 VIHT9uwCVsCqt4oMcs7MSp+q6Jtg8fWPWJ4B6QHu3oafCQny85CyBvtTgPmh/ApsxVyL tbJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=hiYz5+MzQWcJStJ7u9AHsbbJTwkbNoF6sVnBsGwyvdM=; b=LN+IED28hbR1CCkLy93vOgz2Tf72Ha9t0Y9klpe6b0hOCMBz/JlhrOqa1hPbfYcrBw oJQSOBEQraVVSku0F/O0itbsiS4tv80NvOHNOajHiziQxMihqpd0ST92O1oXgEPXVxWW 2M99+U07y0B5nAO6Hm76Fb3MesbIE/1yD45zObjvSauiITkYP1yDFiE4lieATQFWoGmE 9SOyEXs//q2rJxO85wx5FF5MFfGGvFTmnhP07UgHdfOJ2D+oouXjz+bu/LkZZUqenZ5r on3TI2HWrIh5DqZ0LdzKX8Io1VmT+IPf82OgbGBufWIkqCeotxJyb9KfQf558D8H3kPV Ve0A== ARC-Authentication-Results: i=1; mx.google.com; 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 t65si33208134pfd.246.2019.01.28.04.41.52; Mon, 28 Jan 2019 04:42:08 -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; 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 S1726744AbfA1Mka (ORCPT + 99 others); Mon, 28 Jan 2019 07:40:30 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44866 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbfA1Mka (ORCPT ); Mon, 28 Jan 2019 07:40:30 -0500 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 E59B580D; Mon, 28 Jan 2019 04:40:29 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.39.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A9C53F59C; Mon, 28 Jan 2019 04:40:27 -0800 (PST) Date: Mon, 28 Jan 2019 12:40:30 +0000 Message-ID: <86pnshuf9d.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Julien Thierry Cc: , , , , , , , , Subject: Re: [PATCH v9 25/26] arm64: Skip irqflags tracing for NMI in IRQs disabled context In-Reply-To: <1548084825-8803-26-git-send-email-julien.thierry@arm.com> References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> <1548084825-8803-26-git-send-email-julien.thierry@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Jan 2019 15:33:44 +0000, Julien Thierry wrote: > > When an NMI is raised while interrupts where disabled, the IRQ tracing > already is in the correct state (i.e. hardirqs_off) and should be left > as such when returning to the interrupted context. > > Check whether PMR was masking interrupts when the NMI was raised and > skip IRQ tracing if necessary. > > Signed-off-by: Julien Thierry > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc Zyngier Acked-by: Marc Zyngier M. -- Jazz is not dead, it just smell funny.