Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp757264ybz; Wed, 15 Apr 2020 18:17:21 -0700 (PDT) X-Google-Smtp-Source: APiQypLSq/ZcpOCHZRhwjsTZllCefvX5+wN/0G9LBTAnr7VbB9DTFt9WeucCvvJuV/aiJIwgex9C X-Received: by 2002:a50:9a04:: with SMTP id o4mr1459499edb.289.1586999841473; Wed, 15 Apr 2020 18:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586999841; cv=none; d=google.com; s=arc-20160816; b=Lw03ZqAOqoyVHuoIHph3b6YHHBCuNYq1aP5ZJ17kBP4PdtyRkdiV5f91U+c/ZkEtWt 8rZNjqDEP1RaAlsq1kj5937y8lyNE7vBk/3vhoFPqFqp+nZ8mMyGYTkeN8H6tBXOeuQe qt8apEflGXxjCiClM9c2QwrlNre2Z8IYZ1xDKUIAVOmDPYHk6Zl1vkBCZsECS75d04dm Wc6MUpBheaiWfDNTRNw1YOVC1st2Kv/NkiH22NfKuZy1mpCEBIU5JcaZeBKY32cWUU0M m8CO3NHAsqjltqpVbcnysBK9BrP6WIPuZpFFBKOW6DUkV8zJAZ33NBQPThJc8JQwgYSV kThA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qos28LA3on13Mb6DCgYfi/34B7cwVyoTIvoHbG1lrjU=; b=dqxoL5tBfVyxypijj+UHoXwRmyTeW7HGm+JN6WkdC/Kyg4Yy+Nbw2/e7KoxGZP8ebp F9YwG3XxgDio+X/Mvh1HpVMRdMLUmrT3J3W2Ac4OX1Y+WUNHxvTp6t6NCeAdFjkIvVVI Sw7TkWUS830uDxSKkdwcFKSCfWrE0ZL4GX8hknrtX6Jv9HXxWg6wWWN+3FHxVtpx+HkC YVZTBF79SA6Sb/JPefpvJ3kTW0RKYNbjWvezQD0m/DWTnPrcqx/8d5QgBF7oLyy6nj4G ciszN6WAqWYwhcjJXta0xBRPVWczySe0QXKKsB7is1pCWlU7sVqMMqYSUEOLH+aKqBPR 46pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ocH153bK; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx5si7484099ejb.74.2020.04.15.18.16.58; Wed, 15 Apr 2020 18:17:21 -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=@linaro.org header.s=google header.b=ocH153bK; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391217AbgDPAGo (ORCPT + 99 others); Wed, 15 Apr 2020 20:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729647AbgDPAGi (ORCPT ); Wed, 15 Apr 2020 20:06:38 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0F3C061A0C for ; Wed, 15 Apr 2020 17:06:36 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id b13so1644823oti.3 for ; Wed, 15 Apr 2020 17:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qos28LA3on13Mb6DCgYfi/34B7cwVyoTIvoHbG1lrjU=; b=ocH153bKjZVEyX2nyrgcctLt6dl13sLTtiTH82ZvA8xrlqqL9ynNr0pLMx3RXnewnE p23k+yuVm9QOYn36WZTuD+zirhHVi9EZIwmScB+yf9LftFA3ZFzEDP/idZgxxBWbiEJF e1M11TNp1i2IgLZIdbeXtLz6Kv6qhqbk1LsQ8CzSTQmwzZJAvk1Ad1+VwyUf1PjY1Kem gdu7brc6bYddxJWyA8LmgUz9OxW8JobDzQwjtczcLMOJ8speNyv8IydTwpMACHSGLEdL r875OQZE/Pgni75dmTJnIHsGVYgH6XRJlisX/Sx+UgK2dHmlCeYe/nKV33gOb4a9wuKD tpuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qos28LA3on13Mb6DCgYfi/34B7cwVyoTIvoHbG1lrjU=; b=Bi3mcakkXCJ603ZUy3I7ejTfdOOB44Efb4PW1LsD+e3iSeYDLs4c1MAB1Br4fk3BUl 1lUUQvkUNrIScHiMF9av1a4eCFh3Mwoyo4Zy93Iid+xn2ar8jo7U2RGGfnHMTY9DJHGe EDnmzyJbtILO0cQJ6k/edhyj0SkVGUeNAXE/4m8aIBucCst/cb0YxOTTt0z7Y/ecRVW/ Lf1cgReS6ojuf2iEUiJ7wq93nibMJKxIM/DXeVh+P6G8+yb3o4Oamt91w0f9GYZyRoKr ni5aWR25LRdT52gp6+gS9SqFuY6yQScUBd+ZJnKhiRvVvkAFvm5fcP+DcQc7SFoP24sJ EjKw== X-Gm-Message-State: AGi0PubSx+1WEl6hUsitX8Er1/fpuM8l/FUX1FTDXiAF5ckk/RNlCg3b hjOulXEyhtTvv8o8dYRO/xnpjyAVw3zpFvBQwi8LDQ== X-Received: by 2002:a9d:3988:: with SMTP id y8mr14712321otb.352.1586995596022; Wed, 15 Apr 2020 17:06:36 -0700 (PDT) MIME-Version: 1.0 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> <20200415185121.381a4bc3@gandalf.local.home> In-Reply-To: <20200415185121.381a4bc3@gandalf.local.home> From: John Stultz Date: Wed, 15 Apr 2020 17:06:24 -0700 Message-ID: Subject: Re: On trace_*_rcuidle functions in modules To: Steven Rostedt Cc: "Paul E. McKenney" , Josh Triplett , lkml , Bjorn Andersson , Saravana Kannan , Todd Kjos , Stephen Boyd , Peter Zijlstra , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 3:51 PM Steven Rostedt wrote: > I was about to suggest a patch, but that has already been written... > > 313c8c16ee62b ("PM / CPU: replace raw_notifier with atomic_notifier") > > Which surrounds the notifier callbacks with rcu_irq_enter_irqson() > > Which means that if John moves the code to use the notifier, then he could > also remove the _rcuidle(), because RCU will be watching. So you're saying the recent change to move to using trace_*_rcuidle() was unnecessary? Or is there a different notifier then cpu_pm_register_notifier() that the driver should be using (that one seems to be using atomic_notifier_chain_register())? thanks -john