Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1851925pxk; Tue, 1 Sep 2020 09:14:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTkb1W2f7tktTlZ3Kvkm65/kHKUNxDLoWZuWDlU4ISwFOLClOi3p6S4v1FMYurA1jI6w4z X-Received: by 2002:a17:906:a18e:: with SMTP id s14mr2125632ejy.168.1598976883439; Tue, 01 Sep 2020 09:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598976883; cv=none; d=google.com; s=arc-20160816; b=VMIGgTLXAfS/BApQKQOsDSHXTVw7i58jVm37l1UJrkQMRfEYeNCv+8z1a235EeK/mj /eBZ+hr3pKb1u6brWcTh7ZkcT0EXGR4p6Lc8n8Ekun5dJWml7bAMhib/Norwfc987uHN 5Tl4QZ1BUKyPlJqkfDXf5/9E9wSlW5SmUF5yYaOSSS50u5eDl2WL0EAt0gF0dOo4ciwb EQMpoXh5VpO2AvzVirNQgNRUpoGjizwHiXd3Q9HrtT3xTwnkO/jTc4r/P39EIvu0YBTr YU1DG3J0J4uCz9woKukkqlVBHT05aSLMIiFtuTFtmPQjVmBPmee7McefIhdfHNCoD4OY axvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=B0h/lqYyrio8B8ERMUWIRu3CuhTSauW5ABZEE2R9wok=; b=yWsYaOJ4eS6uk9Tf8DfDPx3y90K1nZLkkfHYfmV1ahaso96t3oNvN6bFu6Hwbafgpj JCTHyidxO/wmZpjmZ519EIUhcr1KzcO3Pwuh2PLMj9g324TpUszqXyQ4lWrX3JQUyQUv evWObVx3BGCqX3BTmy6agNyrSlqOV+IWkC+YwhrgIW3CfeI40QVIfJerrf/XvxI8HIbD 6x5AM/1suEbCtPdEH9uNf3ek/dfydXfX1/Ya8JyjRGlJ2phG2rjnsNy+kRhHunvecLVY nnmbRJxGW7+xsFtxFPsNTiBUkozoRGIKc/a44HR/xrU9ZhsauzXM2OV6FGuRfhltseOz CCTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WKc3b7+l; 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 2si758844edw.176.2020.09.01.09.14.19; Tue, 01 Sep 2020 09:14:43 -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; dkim=pass header.i=@kernel.org header.s=default header.b=WKc3b7+l; 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 S1731488AbgIAQNr (ORCPT + 99 others); Tue, 1 Sep 2020 12:13:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731108AbgIAQNo (ORCPT ); Tue, 1 Sep 2020 12:13:44 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (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 76C99204EC; Tue, 1 Sep 2020 16:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598976820; bh=wSYh3X+qxwyoZekqoM20nCWZcWw1dfhsCUJVuXIEPaE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=WKc3b7+l3qEJxpTCJykOhIL5mC4+Tc+4xUuoNh86NmlHnYI62zNec4SSfKIrB0rAl ejM533Ibu1SyDPQ5Dx6TmnAip7Lh6b8EbpmM29rchZrIEuzNWLMiSMXe5Dank5qQjr uH/ubRDB/JaW46oPe7Zn39dD8nr2lIcTL1jF36E8= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 1FB1F35226A5; Tue, 1 Sep 2020 09:13:40 -0700 (PDT) Date: Tue, 1 Sep 2020 09:13:40 -0700 From: "Paul E. McKenney" To: peterz@infradead.org Cc: Lina Iyer , Ulf Hansson , Naresh Kamboju , "Rafael J. Wysocki" , Saravana Kannan , open list , linux-mmc , lkft-triage@lists.linaro.org, rcu@vger.kernel.org, Linux PM , Anders Roxell , Arnd Bergmann , Rajendra Nayak , John Stultz , Stephen Boyd , Lars Povlsen , madhuparnabhowmik10@gmail.com, Viresh Kumar , Vincent Guittot , Thomas Gleixner Subject: Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper Message-ID: <20200901161340.GC29330@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200831194402.GD2855@paulmck-ThinkPad-P72> <20200901104206.GU1362448@hirez.programming.kicks-ass.net> <20200901154417.GD20303@codeaurora.org> <20200901155014.GF2674@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901155014.GF2674@hirez.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 Tue, Sep 01, 2020 at 05:50:14PM +0200, peterz@infradead.org wrote: > On Tue, Sep 01, 2020 at 09:44:17AM -0600, Lina Iyer wrote: > > > > > > > I could add RCU_NONIDLE for the calls to pm_runtime_put_sync_suspend() > > > > > > > and pm_runtime_get_sync() in psci_enter_domain_idle_state(). Perhaps > > > > > > > that's the easiest approach, at least to start with. > > > I think this would be nice. This should also cover the case, where PM domain > > power off notification callbacks call trace function internally. Right? > > That's just more crap for me to clean up later :-( > > trace_*_rcuidle() and RCU_NONIDLE() need to die, not proliferate. Moving the idle-entry boundary further in is good in any number of ways. But experience indicates that no matter how far you move it, there will be something complex further in. Unless you are pushing it all the way into all the arch-specific code down as far as it can possibly go? Thanx, Paul