Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4415343pxv; Tue, 29 Jun 2021 06:35:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj+Bpp4x41f3SF2Pwvov5zTeLcgqdya/tIi1pqya3VcYoOzRhT+kpa75yQ4OWtwE3Cp+zH X-Received: by 2002:aa7:dcd9:: with SMTP id w25mr39759061edu.372.1624973757775; Tue, 29 Jun 2021 06:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624973757; cv=none; d=google.com; s=arc-20160816; b=JJHwUYCwgAPheJqFQF1eKdlqAnvMGTT51lJMZ4XVeMAEMwhCBvnRwyl2OU6I0N2UbT hy5zg0wFIEBfH2MYt2bg3suNEyvJ7XPHY9hmPGYx+fgeThTnQAZjSyhdccetKUwWwIEW 0JJrfvZAKSgFfdkk/B3YsldaA020w8E2kunM7+ZlZObEm8USnnbYBiGneQWgx5TMv/sD NjScf23EK80DM+6R8xcElKQ6RzqgLgNqkg2FD62MMDUOO05LIpbQlfbtfwDYPoYsloA6 0T0KXez9M90WKo9gysgeiZ6GoYM5YQMCs2Hbp25OrTI/8jEFDJxAuMfzw2byf3KyITuj 398w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S00Vfu+mQsfgurDIfOjhdD0WhDzhUdIoOZgaQONBZr0=; b=aGqqYbgqn6RGq1L40QpOaXigxYE2jjMN2iBxWAnFFpuNcjPB6pxtJhovvSrlAmSeja hqf+5I2NTZjgUKJ/D0iNkggoM3TArU9SarwFttetHHMbEDo58f5CenulIrhVIR+NO3pB 6lsVU0/KiCpI6bl0e3vOx1+1WYqfFmIKsLe6fvqx5RY8JrfkMprc+fER8vPTekWMGiqE R4LmVclNR7hK4ot+pIDJpcnaezr/5VQedMT292NeCK0sBPujRdwrtX0EhG/CgoMKJwg8 2hrIym9VazHN9bxjJsCvLguL7jScY4x4ok/+h2c5HVb5FFQ6Pj9L3mKfGTPIm1SumU8v pWtA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si18824582ejd.638.2021.06.29.06.35.34; Tue, 29 Jun 2021 06:35:57 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233961AbhF2Mxk (ORCPT + 99 others); Tue, 29 Jun 2021 08:53:40 -0400 Received: from foss.arm.com ([217.140.110.172]:50386 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233837AbhF2MxT (ORCPT ); Tue, 29 Jun 2021 08:53:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9C2FD13D5; Tue, 29 Jun 2021 05:50:52 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 917883F718; Tue, 29 Jun 2021 05:50:51 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marc Zyngier , Thomas Gleixner , Lorenzo Pieralisi , Vincenzo Frascino Subject: [PATCH v3 05/13] genirq: Let purely flow-masked ONESHOT irqs through unmask_threaded_irq() Date: Tue, 29 Jun 2021 13:50:02 +0100 Message-Id: <20210629125010.458872-6-valentin.schneider@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210629125010.458872-1-valentin.schneider@arm.com> References: <20210629125010.458872-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); out_unlock: -- 2.25.1