Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp399887pxt; Thu, 12 Aug 2021 00:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx68d0BjfUD7EMv7MIKEIPz9hehTBgcCb6BqgpZimF1ZB2BAB9VjihVrdzbdJPDxx1S0mR X-Received: by 2002:a17:907:7b81:: with SMTP id ne1mr2519988ejc.192.1628754325124; Thu, 12 Aug 2021 00:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628754325; cv=none; d=google.com; s=arc-20160816; b=fd2TKVorVMW/3XHUr4MFBr/hfWv9GTACG97E5ohfGHlGqShBKqmPz1hRvARkMXBSaS +/2N0qR9kF2zLbP54vk0YujbxDbnaDP+SCunGRP0bYa1ado+5l0nxo5GA/dPVsYOuqlT pfXc+X8OVS+1u7iPTBXxmD3AJgbFGytVNwcGehfl8K3VB2dz2ie2E2XcyVOlABb6mxFU L3sO9H1nVyo5ZzbFbAs/b9JZsgc5gHnmcBRt2IJX2Ya+dlsYrZspsUgNhXzKb9HhmZAa Cp+uhS4uDC5DHAxaCz8QqvjuyCV7dHUrzRCjwrxVavda7vFRSmam5+dShCogwGjyaqMW Gzkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=mYPIz7y6WFdZLiRsBETnam114JZuIor4Q+fo1Dd8nHI=; b=uG1iDXMKHOz03ge9bKi1VqpcvFWbYFB5WXFInzl4Gg9y2o1n7aye+2o33QJIe8fq87 YDsvNK0qFlIbL1mjo3NvhAkudgKczP7BEwX3eKoIWLHwjxAr2qLRImhi+wBS3e0soQ3Q 3s38ktE0cUJCVxvr0lQcm63MKaryVleoAY6daJ2gkdO9AFx83efwabPi/x4be4WRJDK5 69WNEZAbiVLuZZp7Oat79VyiXjGkq8Gz3wa/oat0SMfWmFG3CVrH9yRzK3cLiUY38TiD wsQoj2Qgf6q2Z9eet7iDWIDs9DS1oTMXi1M+zq0W266HeA8cUvPAEL1ooDJa0DUkXmpa Mvcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si1905549edb.251.2021.08.12.00.45.02; Thu, 12 Aug 2021 00:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234805AbhHLH1Q (ORCPT + 99 others); Thu, 12 Aug 2021 03:27:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:55674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234802AbhHLH1P (ORCPT ); Thu, 12 Aug 2021 03:27:15 -0400 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 31D2F6103A; Thu, 12 Aug 2021 07:26:51 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] 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 1mE573-004UWS-27; Thu, 12 Aug 2021 08:26:49 +0100 Date: Thu, 12 Aug 2021 08:26:48 +0100 Message-ID: <87bl639l8n.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 Subject: Re: [PATCH v3 05/13] genirq: Let purely flow-masked ONESHOT irqs through unmask_threaded_irq() In-Reply-To: <20210629125010.458872-6-valentin.schneider@arm.com> References: <20210629125010.458872-1-valentin.schneider@arm.com> <20210629125010.458872-6-valentin.schneider@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") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jun 2021 13:50:02 +0100, Valentin Schneider wrote: > > A subsequent patch will let IRQs end up in irq_finalize_oneshot() without > IRQD_IRQ_MASKED, but with IRQD_IRQ_FLOW_MASKED set instead. Let such IRQs > receive their final ->irq_eoi(). > > Signed-off-by: Valentin Schneider > --- > kernel/irq/manage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index ef30b4762947..e6d6d32ddcbc 100644 > --- a/kernel/irq/manage.c > +++ b/kernel/irq/manage.c > @@ -1107,7 +1107,7 @@ static void irq_finalize_oneshot(struct irq_desc *desc, > desc->threads_oneshot &= ~action->thread_mask; > > if (!desc->threads_oneshot && !irqd_irq_disabled(&desc->irq_data) && > - irqd_irq_masked(&desc->irq_data)) > + (irqd_irq_masked(&desc->irq_data) | irqd_irq_flow_masked(&desc->irq_data))) > unmask_threaded_irq(desc); The bitwise OR looks pretty odd. It is probably fine given that both side of the expression are bool, but still. I can fix this locally. Thanks, M. -- Without deviation from the norm, progress is not possible.