Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3630079pxk; Tue, 29 Sep 2020 01:55:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM4dRWGKEmgAU0HJ5CMsRqMGgqL1hDg3RqEnugHSRI/ps/U203zovxkTJkjDASRVMXDoPJ X-Received: by 2002:a17:906:16da:: with SMTP id t26mr2778011ejd.172.1601369747452; Tue, 29 Sep 2020 01:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601369747; cv=none; d=google.com; s=arc-20160816; b=KqrHBljamQKplW0aaJuqLyey4STwS7sgle6BdtMSRmtEV1Jq7SKtzxOxZN5x4nAJ/N 2/0ZEzWpr32mfzElyZGqZW5ZOQFPrLQmelj4f3oo14ud6J//uelS/qfOKznzAFpefqNd e7/DlJfQ+VdPYlkgZJvN0BGzqG92Qa35TOhn9z4zzvAOFNlAX6Xa8+7oeJ/INjBS5bvo 4vurXruhwcaBD6MY+6ngyaZKZwe37Or66epFSW9C7fe6ZFxL1WH78vxiV1F9OeC5CcRH qfCK4++ehyggDrz/wdr0fJyQiUp9bdCySAKFj0i8pE8myWQNykMoh00ARwU5RKDeWSo2 3WtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=q9zbxhvQUbyQmN6w33ocjYJENx7exTHDKmcI2LF29Gg=; b=SULb0N8pMP8rGrlNgZ0PEvbPOF3vx7xUP+5qnmtcxpvbmkVie1UgjCC1VjJsAsUciQ iFlBLFY4dqsd/LQz8MPcK9cnH6HOW4/P+VwbsNfpRRIH3Ah8Qh3qtjxIzjii++wH0w85 tEYmSPUBEJ6VQ3CtyteblqGmSmu3EzGmwujODIkpNeSEX7NcXth9GFmKV0cA9xyikVi/ iv165Sawm+eP2w2cq0tLju4Nf/HmIf1qXawjvX3QrR7+lxGAg2j6sHMqMWmJi3ldyo2v M6BjbiK6OjF8uEtEps5cQxfJ7Q07KWeBXhglc9qd9/W8lXSuD9WFSXAvfrJo0Q8+yRVa NWzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=kmMYMO8i; 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 br19si2207899ejb.151.2020.09.29.01.55.23; Tue, 29 Sep 2020 01:55:47 -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=@mg.codeaurora.org header.s=smtp header.b=kmMYMO8i; 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 S1727468AbgI2IyD (ORCPT + 99 others); Tue, 29 Sep 2020 04:54:03 -0400 Received: from z5.mailgun.us ([104.130.96.5]:45076 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgI2IyD (ORCPT ); Tue, 29 Sep 2020 04:54:03 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601369642; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=q9zbxhvQUbyQmN6w33ocjYJENx7exTHDKmcI2LF29Gg=; b=kmMYMO8i8gpzj7RRDqy5uYqZKVao5SrlBAuJbVTHhkjUlQ3jzS9SIn4th6aL20sLQLM6ScXf ZTrqKWAQjtUNecqpJTKa9dBJxWTjG+zpoOkclzAj4A2eN/11TAjlJx+HqujcaVsSjyGGI0sm fugTPC+vhC8ienieQaS7b33xlLQ= X-Mailgun-Sending-Ip: 104.130.96.5 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-n07.prod.us-west-2.postgun.com with SMTP id 5f72f61e9a923ee7a5648dbe (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 29 Sep 2020 08:53:50 GMT Sender: mkshah=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9D347C433CB; Tue, 29 Sep 2020 08:53:50 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.29.129] (unknown [49.36.79.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id 422DDC433CA; Tue, 29 Sep 2020 08:53:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 422DDC433CA 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=fail smtp.mailfrom=mkshah@codeaurora.org Subject: Re: [PATCH v2 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh" To: John Stultz 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 References: <1598354482-15491-1-git-send-email-mkshah@codeaurora.org> <1598354482-15491-2-git-send-email-mkshah@codeaurora.org> From: Maulik Shah Message-ID: <524ef44a-f731-a3e3-1d38-dc778a07f6b9@codeaurora.org> Date: Tue, 29 Sep 2020 14:23:35 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 9/29/2020 2:17 AM, John Stultz wrote: > 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 Sure i will resend the series. Thanks, Maulik -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation