Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1320000pxu; Sat, 5 Dec 2020 11:26:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5hIe+mBmrYrN7UKysaUeAuFhACulpSI5ufE/HMvA6VQtgQJHffh3C76AcEflEB2PpWBrK X-Received: by 2002:a17:906:604e:: with SMTP id p14mr12608061ejj.543.1607196405363; Sat, 05 Dec 2020 11:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607196405; cv=none; d=google.com; s=arc-20160816; b=KyyufUR0f/vCPRFDyfhMGIFDNEopWys3DLW/qkJZp16cuKtboQuNryZ6yW/xjoPOV1 vQqVfSq+9A4JZxUOJKdLuLJFBdVyQRb7IF8wKKSEDZHVQEY+oz34gJ4QCT1Xdy3pd0zu uB2zz95RE6uYKQu5Xnzl3FXLZCxQ8dVyoC+UIGzWj9LnBaXTwNDF5MKWST5a/5uryYRM mDYLnxeQtBPTS4gvciw3hv609NmZsjO8D/of3ZHRi2YBTLkFoWAW5HPQLDKdKW8NtSlK u3DP/1VPenVFioYv44g57xM1jDVA0DkKpkSJV3i6v9UqUr81orTMD6TTW7KWz+Wid7uQ J9Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references; bh=BgNRoyPQJ9tfzobm5qMUODZ5+twJJmWU6oQYXYXZX38=; b=S1QCwlMJ12vhAKXIYN6cjwyYbknUFCiEoS0nF5888dR2p5PDDtIe1tp5hQpXu5wv/D aV0KXOl7TGPYXipns5HNdRIq6eQ2Wu2/R26sQhiuCI6H6rWf7cpgjHTEnBTd73QUTWmr J3/9xEP2qUanq33GKUnQLthY5tjWsjvnz/OYIlRy/vqf2pYKzITBd27a6JEz51+PyLxx /TVpVy7MzeMFVNBoeEbx5OLCeVLa7s1VbndhNsQQ5fgdUWHi1xpZD4/5JcJzK66y4H0O FO0jPnZFN0ULaIZfwO1ThxK+sNuJEvbkLOPXGK2wuCKA9HRQJ5vhpLaAgto0weZj371n 9/mA== 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 k5si3770009edl.83.2020.12.05.11.26.22; Sat, 05 Dec 2020 11:26:45 -0800 (PST) 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 S1726851AbgLETZF (ORCPT + 99 others); Sat, 5 Dec 2020 14:25:05 -0500 Received: from foss.arm.com ([217.140.110.172]:44870 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgLETZE (ORCPT ); Sat, 5 Dec 2020 14:25:04 -0500 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 1B46830E; Sat, 5 Dec 2020 11:24:19 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BED653F575; Sat, 5 Dec 2020 11:24:17 -0800 (PST) References: <20201124141449.572446-1-maz@kernel.org> <20201124141449.572446-3-maz@kernel.org> <20201203130320.GQ3021@hirez.programming.kicks-ass.net> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Peter Zijlstra Cc: Marc Zyngier , LAK , linux-kernel , Will Deacon , Catalin Marinas , Thomas Gleixner , Mark Rutland , Russell King , Android Kernel Team Subject: Re: [PATCH v2 2/6] genirq: Allow an interrupt to be marked as 'raw' In-reply-to: Date: Sat, 05 Dec 2020 19:24:15 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/12/20 15:52, Valentin Schneider wrote: > On 03/12/20 13:03, Peter Zijlstra wrote: [...] >> The scheduler IPI really doesn't need RCU either ;-) [...] > But as with any other interrupt, we could then go through: > > preempt_schedule_irq() ~> pick_next_task_fair() -> newidle_balance() > > which does enter a read-side section, so RCU would need to be > watching. Looking at kernel/entry/common.c:irqentry_exit_cond_resched(), it > seems we do check for this via rcu_irq_exit_check_preempt(). > > I however cannot grok why irqentry_exit() *doesn't* call into > preempt_schedule_irq() if RCU wasn't watching on IRQ entry RCU wasn't watching on IRQ entry: -> we should be on the idle task -> no unvoluntary preemption for the idle task, scheduling always happens at the tail of the idle loop -> ignore what I've been saying, current patch is fine