Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp350327pxa; Wed, 19 Aug 2020 03:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpiVOnyC0vp6ez7FxbjPa1rhnl26PfkT5W/b7ShxXVGzWK5DrOCAidvzNnLMfFfI9wYZ0C X-Received: by 2002:a17:906:57cc:: with SMTP id u12mr26087491ejr.422.1597831781268; Wed, 19 Aug 2020 03:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597831781; cv=none; d=google.com; s=arc-20160816; b=KuYsXXFFxBq5Gmcy5o6qjeMHCC/zNFC9LDeneo67aDDOV/V4p0A/51ofWa/TfANJG9 c2j819VdF1G1mK6fpK0doBxnlKOxHPeE26QMRhW5qk8PXg18HTKuuK48TEM3bi27jbOR CNae77qbCtLIQE0mDj6f1JZfu0eRhiDAJnwi3gERYH+nyzKE3Fd5x6NXuW4/qgzjqiu4 xqVN1bJt1lWOwN7oPYpiLI4uKUsdlFDdAFT1LH2QCFx3P5jpxALStFJNZNW8YUNrD2Bm xL4VTdmJSnOkUlFfaxEGxIEv4WdOIWgjkxVdB4mKNfpI9pQvNSEYIwoZ1yikwAxR8HTJ qnAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=62a6fpIGjEYW5C+HhwDJTu6m6o0orHTEC1RoLTgLTbg=; b=VthLOwsmY2Q13SePeT9ANQ0Z8tZF8XfyAwC5irpRxkDDaMSw9ERISYEryevh8EL60s w052b2IprdfrhjOaCXVw5QMSrPWeW3UbMq+J4rxhh/QbDLbWBVqZVe2nuS+OBikZgXIj LH2lKREJCnFppI2X1EDmK2aPbFXg8mM9HoB3/GgKEGilILb8zrP4qcitYgwV2Gncd8V4 HlPmTgswD3QUqQ9K+mVYQEebcJ+0VFFlZ61DA6dlonX2oDhPSgirr2xNF6GpibcBT7NZ z8gzhhFVnT8Dlb/ogH/K7B1TzmEPxhaqy771fPxHKSUel4VVWnaJ7aGe6Qiz39NcEwsm W1zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=typuU3XN; 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 n17si10153514edt.242.2020.08.19.03.09.16; Wed, 19 Aug 2020 03:09:41 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=typuU3XN; 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 S1726923AbgHSKIm (ORCPT + 99 others); Wed, 19 Aug 2020 06:08:42 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:61733 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgHSKIk (ORCPT ); Wed, 19 Aug 2020 06:08:40 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597831720; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=62a6fpIGjEYW5C+HhwDJTu6m6o0orHTEC1RoLTgLTbg=; b=typuU3XNG2tx5bdMw8fu99hzhBjSV9xPyK8q0Yt6G3Axn80o6LoWs+cv/Jv8oAEI52pbZxE7 uydjlbb8q/2+6CLFWZPOW13Q/WZH1h58l3K1wrrF7dXf1zv97MG49MLPAR1p/MBGowq0M6uK lPdH5b2KGcPcc6sT365BbI7I9r8= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f3cfa2703528d40241c2689 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 19 Aug 2020 10:08:39 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 73539C43391; Wed, 19 Aug 2020 10:08:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mkshah-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id B6162C433CA; Wed, 19 Aug 2020 10:08:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B6162C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: bjorn.andersson@linaro.org, agross@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ulf.hansson@linaro.org, swboyd@chromium.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah , Sai Prakash Ranjan , John Stultz , Stephen Rothwell Subject: [PATCH 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh" Date: Wed, 19 Aug 2020 15:37:49 +0530 Message-Id: <1597831670-17401-2-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597831670-17401-1-git-send-email-mkshah@codeaurora.org> References: <1597831670-17401-1-git-send-email-mkshah@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This change was done based on an test results of unmerged series of adding RSC power domain and using .power_off callback of genpd to invoke rpmh_flush(). 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. 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 Signed-off-by: Maulik Shah --- drivers/soc/qcom/rpmh-rsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c index ae66757..fabe390d 100644 --- a/drivers/soc/qcom/rpmh-rsc.c +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -495,7 +495,7 @@ static void __tcs_buffer_write(struct rsc_drv *drv, int tcs_id, int cmd_id, write_tcs_cmd(drv, RSC_DRV_CMD_MSGID, tcs_id, j, msgid); write_tcs_cmd(drv, RSC_DRV_CMD_ADDR, tcs_id, j, cmd->addr); write_tcs_cmd(drv, RSC_DRV_CMD_DATA, tcs_id, j, cmd->data); - trace_rpmh_send_msg_rcuidle(drv, tcs_id, j, msgid, cmd); + trace_rpmh_send_msg(drv, tcs_id, j, msgid, cmd); } write_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id, cmd_complete); -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation