From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86F6AC4743D for ; Tue, 8 Jun 2021 15:31:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4EC01610F8 for ; Tue, 8 Jun 2021 15:31:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EC01610F8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PSK4G3lwmdm0o1PjvDwgXl1Bi7ePx1bVde2nfPoIS5s=; b=UQ30ZuvbEj0pJp KcqtztIZxx2jiYBpYtYDZwAGrF22v320Rqouad1hXsffaCEmyIqvbLGjzgG9ak7/GLyX+W+JMEiFe UTFyCNkem4cnvD344SUzkPP8vGnxczq07FL6FKKwDd2GaoTCFj8rNUOjx5JIx602qoSFQyrkRMnEy kz3V6qZyijer3wCQO8R+5r6rdvdSaJWsEX5YpTwK8+dSsIUt5jUykkt7j8U6Gl5V9R7+8y8LkkwmB CZKgoM0r/TZ+4FgWxvqHGH1Qy0wa9jspnbvc/4jh+4K8UsNtkX5AV4RGE93lH0QxHLSJwH7/R1CRC b06iKMOcfKSxnTmkAeag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqdfY-009DZ6-EQ; Tue, 08 Jun 2021 15:29:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqdfS-009DXO-0V for linux-arm-kernel@lists.infradead.org; Tue, 08 Jun 2021 15:29:27 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A4063610F8; Tue, 8 Jun 2021 15:29:25 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lqdfP-006EHQ-JA; Tue, 08 Jun 2021 16:29:23 +0100 Date: Tue, 08 Jun 2021 16:29:14 +0100 Message-ID: <87a6o0z86t.wl-maz@kernel.org> From: Marc Zyngier To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Gleixner , Lorenzo Pieralisi , Vincenzo Frascino , Mark Rutland Subject: Re: [RFC PATCH v2 00/10] irqchip/irq-gic: Optimize masking by leveraging EOImode=1 In-Reply-To: <87tumhg9vm.mognet@arm.com> References: <20210525173255.620606-1-valentin.schneider@arm.com> <87zgwgs9x0.wl-maz@kernel.org> <87tumhg9vm.mognet@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: valentin.schneider@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tglx@linutronix.de, lorenzo.pieralisi@arm.com, vincenzo.frascino@arm.com, mark.rutland@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_082926_113718_593F2E9A X-CRM114-Status: GOOD ( 26.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org [+Mark, since we discussed about this on IRC] Hi Valentin, On Tue, 01 Jun 2021 11:25:01 +0100, Valentin Schneider wrote: > > On 27/05/21 12:17, Marc Zyngier wrote: > > On Tue, 25 May 2021 18:32:45 +0100, > > Valentin Schneider wrote: > >> I've tested this on my Ampere eMAG, which uncovered "fun" interactions with > >> the MSI domains. Did the same trick as the Juno with the pl011. > >> > >> pNMIs cause said eMAG to freeze, but that's true even without my patches. I > >> did try them out under QEMU+KVM and that looked fine, although that means I > >> only got to test EOImode=0. I'll try to dig into this when I get some more > >> cycles. > > > > That's interesting/worrying. As far as I remember, this machine uses > > GIC500, which is a well known quantity. If pNMIs are causing issues, > > that'd probably be a CPU interface problem. Can you elaborate on how > > you tried to test that part? Just using the below benchmark? > > > > Not even that, it would hang somewhere at boot. Julien suggested offline > that it might be a problem with the secondaries' PMR initial value, but I > really never got to do dig into it. I just hit a similar problem on an Altra box, which seems to be related to using PSCI for idle. PSCI has no idea about priority masking, and enters CPU suspend with interrupt masked at the PMR level. Good luck waking up from that. I've pushed a test branch at [1]. It'd be really good if you could have a quick look and let me know if that helps in your case (it certainly does on the box I have access to). Thanks, M. [1] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=arm64/nmi-idle -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel