Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp755510ybz; Wed, 15 Apr 2020 18:15:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKQDyO4OiQFDbTmtWGby/VaolIrNPuXm1tHL6u8OhkR5a7P7LI2lK2Sx6cfQB0dzNSdCSj1 X-Received: by 2002:a50:e107:: with SMTP id h7mr28589632edl.124.1586999718294; Wed, 15 Apr 2020 18:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586999718; cv=none; d=google.com; s=arc-20160816; b=yCtLJeIuaPLLKXIsnwb3VR5+NW1jv+AzMn7SkYzbJO5r36oqdpSQSO2d6iW5LR0HJI 42BSQQcD5wmw+KI/DXlrpv3o3bSGEOWqg49S/D40+IAYJ+15zUkcQK1p5vhlMqJvpyIG +EyS7khbJim7S0yKyuDPwQ/pXqSx6BodOGSavQS+pghgMLZ/t+8eoYGc18UAfo6W4JqG chXJK1qMK3+evuFplYR2a83U+Dy+T9YCMT3WtoP71nNK43hOvCwtSdStleHNxOi+0zny 2aRWZ36Q4wnfjMq0US+IYZ4BloX1iY9TkZhA9JLJehc0x8GLU6SRiGXAJlW25KKIRXus H6Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=/LmrmyzjKZHDWJslWJ/JqVYhQ/+Hm+zUvWtUmezwF9Y=; b=O4oNFR3Lv0ukksSNfsDA1cyvUdtgUdwyEUB2GWU/ItEg/ow7aYJDwKGqveHGoN9UpA XGY4keZMcU3yrzLjV6/8vfKcR9G3XbuLzTlB4xHkXm7OUmSIWW79L0nL90cxM0sgWzAD G7R0XIx3HnpfzS8FPBnEkWCFf9N6Q3rMjQbRrqGSK4dfNonUvofoZVVkqvEJDnsXjaLE Alpk967Mpa13zipLXyz9DQ06y+naTKhKUfxWqw3e+7JRI0RwMdp/HfABS6Yv2Y89Qa5k NjF4iANoWqtbpv0SX1Faig+ikV4J2kmwRN11ZhJQHypgWMT2UmpKoxE7o1bsgnLCSIyD buPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc19si6090326ejb.487.2020.04.15.18.14.55; Wed, 15 Apr 2020 18:15:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733038AbgDOWxV (ORCPT + 99 others); Wed, 15 Apr 2020 18:53:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:36062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732984AbgDOWxJ (ORCPT ); Wed, 15 Apr 2020 18:53:09 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 3587D20784; Wed, 15 Apr 2020 22:53:08 +0000 (UTC) Date: Wed, 15 Apr 2020 18:53:06 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: "Paul E. McKenney" , John Stultz , Josh Triplett , lkml , Bjorn Andersson , Saravana Kannan , Todd Kjos , Stephen Boyd , Thomas Gleixner Subject: Re: On trace_*_rcuidle functions in modules Message-ID: <20200415185306.417c18c3@gandalf.local.home> In-Reply-To: <20200415224214.GP2483@worktop.programming.kicks-ass.net> References: <20200415085348.5511a5fe@gandalf.local.home> <20200415161424.584d07d3@gandalf.local.home> <20200415164116.40564f2c@gandalf.local.home> <20200415174918.154a86d0@gandalf.local.home> <20200415220459.GE17661@paulmck-ThinkPad-P72> <20200415224214.GP2483@worktop.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Apr 2020 00:42:14 +0200 Peter Zijlstra wrote: > On Wed, Apr 15, 2020 at 03:04:59PM -0700, Paul E. McKenney wrote: > > > > My guess is that invoking rcu_irq_enter() and rcu_irq_exit() around every > > potential call into module code out of the PM code is a non-starter, > > but I cannot prove that either way. > > Isn't that exactly what cpu_pm_notify() is doing? That was originally my concern, but I didn't look at cpu_pm_notify(), until I was about to add that to it ;-) Then noticed, it was already there (making my last email rather confusing as I wrote half of it before seeing this, and then continued that email after the fact). -- Steve