Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3304983pxk; Mon, 28 Sep 2020 13:52:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO/8vzSDT7AdwqQJ0vN+hUa9tKQApFt352ZfhAFHlRGDy02iIvEo1RrmkKNYRaFGGJBajp X-Received: by 2002:a17:906:d93b:: with SMTP id rn27mr608390ejb.330.1601326349292; Mon, 28 Sep 2020 13:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601326349; cv=none; d=google.com; s=arc-20160816; b=k/7Z0uYsyewyUSOGCdRtSyXWc3I0tWCcHk0ImaYJyYgT2jhEtxbRSwa71zC2FKnawH bfWC2BdWDAV2YKM8kk+PUnp5qI+EJwkAUprgDeCXeRTfZA4EmpFV2wxRPto2edR7oE07 N4vMgt2icx4pHK+3/i2qeOgRoJMWJGhE1VCvY+uaK+w1jNMRQN86UHJTy7xvWV2ewls7 ij/mJx+FcNJ9SvgVrO6i9tXEcQimROsMTgF0r/INqSCrFxfBMRP9uKFpp3X5/DV7jpLI U1JjMPjao6+2WRLOhYVJgEIvpe4nInUwgw17ZHPWWGCIVQDxLV09BhYThms7jcE6bke2 lJOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qfHHuJyhHYYGK0U8SAtvUd7mSQGe+e2IQIFpamJOBYA=; b=tn8TFmsCF/EMhJX7oPInyB92PmYUUQNxRgP8JlnupV8y9Xzsca/Jqtd4Xc5he/4Dha Va1Y2ZFgmkRqCyEl3WzYUx506ucx+lhrUJSs3+QVyeR9i3lt3CxRbP6DHkvJYbFvQMFM RwXo2Te2dzC0uQWfTw4IA9izVS7MnBCmkoA9fFhIFN2nkAVQk8Fx4VGH2blXZrQQvC76 6zwgLucu4CCImxifljHh4jAhT5qxrdMWRyZ3OyrClXOyMWLWrcT1NWr0/aCv3Zi/xJ0X UQEbcChL5glWcR4jm7VaTUwWj1+PyT8/9tEVExbiIKRc8wmCZLpHlTAkgF6JioFhRwKX 9e7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dnjGDFtD; 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 e14si1378927eds.529.2020.09.28.13.52.06; Mon, 28 Sep 2020 13:52:29 -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=dnjGDFtD; 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 S1727014AbgI1Urx (ORCPT + 99 others); Mon, 28 Sep 2020 16:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgI1Urx (ORCPT ); Mon, 28 Sep 2020 16:47:53 -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 3EC75C0613CE for ; Mon, 28 Sep 2020 13:47:52 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id n61so2313124ota.10 for ; Mon, 28 Sep 2020 13:47:52 -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=qfHHuJyhHYYGK0U8SAtvUd7mSQGe+e2IQIFpamJOBYA=; b=dnjGDFtDbEElPt+bmnS52yBRq2dw6IuySw9sMyYFj/X6VF0s0eULAeUcD1m4ccIn/W WbpZMrr4hJLiiTeakXmMSQ6U4Wdh4e4bSS/igWFe//UVlNpYsg99EQ/sl3+KLeqCt+cP Z7KHIahp5janRPuFnuYdVV2+Fn08tQDbGPGmzvFtw+ju0F0xPVD1DFD9a3vnExrkMc6Q +NRzPu++swARiV6QciIXl2JtpZUBTP0+H8Rs8HlmCxWaPbDWAnWdJtrEif4r4b/5kRcb y2jd8Hv2d9w+1WdP8gD4EuClJBkptO+UQV4hRGwYU30t0DriLpopZHSjVvwILL8nVj8v pfPA== 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=qfHHuJyhHYYGK0U8SAtvUd7mSQGe+e2IQIFpamJOBYA=; b=STUenXnS+R9eKwvC/N62ra7wBY3Vc0Pk5bH25ve6eNuzbpwDrdb5KoN30aBJN0+Pgo Fq/Q/B7vUt0bQY6uxGTMSVzEqGYtiBCDrAy+v8o/EaSY+FuVR1mtgbR8Cd2BXjCHeJtE 1pUiEV1pSxwouJ9nVINCbEWqgZHT46XpqDcZFP3myelo7pM0UQIL0w3W5JMANWDAiS+i T9XvYKsLpTNFGZ6CiYJVfK4zXE6SbWVdwXnvyYGF53vXeBZxbOHkjAZwAlZztPGgtPuE ukG+mdT3+qjJM6q++MsKwUNOHo3WJcxZgNo23fo9oNsq9btK+WFDNEDn+oyhj88oltLp FLxw== X-Gm-Message-State: AOAM533LfEatZ0di3To+Q7v9MCIcN79WCIAbRX5v4EW9bWzlxgr2r0KG 1vjSp2+hJNeLJBmzv2WizsBWkoDcqwMt+Ja7uCsORQ== X-Received: by 2002:a05:6830:196:: with SMTP id q22mr521334ota.221.1601326071554; Mon, 28 Sep 2020 13:47:51 -0700 (PDT) MIME-Version: 1.0 References: <1598354482-15491-1-git-send-email-mkshah@codeaurora.org> <1598354482-15491-2-git-send-email-mkshah@codeaurora.org> In-Reply-To: <1598354482-15491-2-git-send-email-mkshah@codeaurora.org> From: John Stultz Date: Mon, 28 Sep 2020 13:47:40 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh" To: Maulik Shah Cc: Bjorn Andersson , Andy Gross , lkml , linux-arm-msm , Ulf Hansson , Stephen Boyd , Doug Anderson , Rajendra Nayak , Lina Iyer , lsrao@codeaurora.org, Sai Prakash Ranjan , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 4:22 AM Maulik Shah wrote: > > Commit efde2659b0fe ("drivers: qcom: rpmh-rsc: Use rcuidle tracepoints > for rpmh") was written to fix a bug seen in an unmerged series that > implemented a struct generic_pm_domain::power_off() callback calling > rpmh_flush(). See stack trace below. > > Call trace: > dump_backtrace+0x0/0x174 > show_stack+0x20/0x2c > dump_stack+0xc8/0x124 > lockdep_rcu_suspicious+0xe4/0x104 > __tcs_buffer_write+0x230/0x2d0 > rpmh_rsc_write_ctrl_data+0x210/0x270 > rpmh_flush+0x84/0x24c > rpmh_domain_power_off+0x78/0x98 > _genpd_power_off+0x40/0xc0 > genpd_power_off+0x168/0x208 > > Later the final merged solution is to use CPU PM notification to invoke > rpmh_flush() and power_off() callback of genpd is not implemented in the > driver. > > CPU PM notifiers are run with RCU enabled/watching (see cpu_pm_notify() > and how it calls rcu_irq_enter_irqson() before calling the notifiers). > > Remove this change since RCU will not be idle during CPU PM notifications > hence not required to use _rcuidle tracepoint. Using _rcuidle tracepoint > prevented rpmh driver to be loadable module as these are not exported > symbols. > > This reverts commit efde2659b0fe835732047357b2902cca14f054d9. > > Cc: Sai Prakash Ranjan > Cc: John Stultz > Cc: Stephen Rothwell > Reviewed-by: Stephen Boyd > Reviewed-by: Sai Prakash Ranjan > Reviewed-by: Ulf Hansson > Signed-off-by: Maulik Shah Hey Maulik! Thanks so much for sending out this series! I noticed this hasn't made it to -next yet, so would it be good to resubmit it? thanks -john