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=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 28E1FC2BA19 for ; Wed, 15 Apr 2020 22:53:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04D8D20784 for ; Wed, 15 Apr 2020 22:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586991220; bh=yl475YVYDILBuq3bu3pLRld5CucNEC2lEKdSnQlC/Z0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:List-ID: From; b=bnMQ8H0EJijgoor3sdyNrcaP+lW2MftskWr6GgSZoZOL958c4mcV/iIaGTZoz9cMj ZKenuqPEQ12byQq+ld/MAVYM+mnuDZKE71aR5+O4VGsQDBdZ5NPz2MAxSMaNqPSlgO JN75LbNkEN444f8cUiKXO8sl2Gatfxzb7U5zVZPI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733181AbgDOWxi (ORCPT ); Wed, 15 Apr 2020 18:53:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:36232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgDOWx1 (ORCPT ); Wed, 15 Apr 2020 18:53:27 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 EA09E2076D; Wed, 15 Apr 2020 22:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586991207; bh=yl475YVYDILBuq3bu3pLRld5CucNEC2lEKdSnQlC/Z0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=LzBvYbO1eouBLoFT26Mv6YHCIPiavEunbKu2Ti97vTdv1Hi4ym5Gwosh6NWyXjkCf sFXVZ2/TDmcqvoyCkhWHtChpYplbG1Eb/gc+nHAWFHxaNc4+SXlvY1A4HcdjFbQvG4 nbYGWJTLyViZF2s1Djd1HDNNP+X/XfFWMfzjbCIY= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id BE2103522AD1; Wed, 15 Apr 2020 15:53:26 -0700 (PDT) Date: Wed, 15 Apr 2020 15:53:26 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Steven Rostedt , 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: <20200415225326.GF17661@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200415224214.GP2483@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 12:42:14AM +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? Right you are! Problem solved, then? Thanx, Paul