Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp478625pxu; Thu, 26 Nov 2020 03:46:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxbZZAqZKevCPpB0VgNkjhA7SXicZpjzmG8J1oXdaDDyXBDW0lh0nE0M1y7LYfuLymBYR4 X-Received: by 2002:a17:906:7190:: with SMTP id h16mr2230743ejk.221.1606391196633; Thu, 26 Nov 2020 03:46:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606391196; cv=none; d=google.com; s=arc-20160816; b=FpduUNaj3MVNwLBzab2TLmtYl1rvA5ZWX/wMEcMCpdI1A7C4AwIFqSs/iWxLnnV3I8 uuu8Sgwd64WUVdxbJePnEd88nh02Gcrtxu81We41Gd6oQgdiBgCpvsClQ0DQRzD56ZlY rnekHj9dqFMR5yCR1yvprTZ3azhsJg6F1BHzKqsRuHhwScxcytbdUWvif3+mfVzp2lJl 52F86lH2o8E18gK/GYGaCBCqLycRg3cVly5uv3Ltcs2JlOyTuZwEGwFwdBlvCqu1uDi4 5rvU4v6/lOmkcchrzKtFOJhiudIMQv+lnSZs/xcCpEaUZqddzBU5wdTVQt+9sLhg3FMJ 4HMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=VKrx5gufXyjy4Nmp0ZKHspcGqjryqi+Bhc7JcUiGBxQ=; b=WK3Tu7mHBt4UJRzF+LONwrepo7o7za2Adn/zgttoMmhrSnR8jQSk0NuNuCC7geuIHi rP3au3roNFEWhI/VyfyYnrgmw5teYS8fhVAnZfM4iNcpoSp23Rhap93HE/5J9ER+0Kv2 shl+fxmKP1YJ3IMWBg/0/uZKBDAgEa5ROkz/NPNHZhnfNaImx57JFRgD0/JDc+sQc0TC be1PcIF+aS2henGt9R8FLrStlFHRn+i0e+iH3ShMaX3UFRv31SzcvZRyxpImdSgbEy4b HH6DIC4OolAftszTNLq1xr9exlYeUo3V2LxjfiosjPeV54aGl5F3H+iKpdH83nAUf3eu b0FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=EFVPbitE; 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 r9si2830697ejr.645.2020.11.26.03.46.12; Thu, 26 Nov 2020 03:46:36 -0800 (PST) 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=EFVPbitE; 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 S2387763AbgKZKSv (ORCPT + 99 others); Thu, 26 Nov 2020 05:18:51 -0500 Received: from z5.mailgun.us ([104.130.96.5]:36268 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387747AbgKZKSv (ORCPT ); Thu, 26 Nov 2020 05:18:51 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1606385930; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=VKrx5gufXyjy4Nmp0ZKHspcGqjryqi+Bhc7JcUiGBxQ=; b=EFVPbitEGBvCn/INStu2Vy7M4XqdBpVlegbkcJ2ZtPtBTwFSODwoAr2wr2GdZMiRDQMw53p4 7qZje5nrGWo5geybmnqt9OektQEnGbTNbQHTDSYAnl1yv06pD6go3rTpY0glG2zYB0RONbyd Mi4OIy5A5fs+yKLzn4xqB9YLpIM= 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-east-1.postgun.com with SMTP id 5fbf8104d64ea0b703fcd941 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 26 Nov 2020 10:18:44 GMT Sender: mkshah=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5BA25C43463; Thu, 26 Nov 2020 10:18:43 +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,SPF_FAIL autolearn=no 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 D0F3CC43460; Thu, 26 Nov 2020 10:18:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D0F3CC43460 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 From: Maulik Shah To: bjorn.andersson@linaro.org, andy.gross@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, tkjos@google.com, dianders@chromium.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah Subject: [PATCH 0/3] Add changes to support 'HW solver' mode in rpmh driver Date: Thu, 26 Nov 2020 15:48:15 +0530 Message-Id: <1606385898-8609-1-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RSC controllers may be in 'HW solver' state, where they could be in autonomous mode executing low power modes for their hardware and as such are not available for sending active votes. This series adds changes to support the same in rpmh driver by disallowing active requests when in solver mode and allowing the drivers to write cached sleep and wake votes immediately. Note: The series can land on its own but to avoid conflicts with other change going in rpmh driver i have based changes on top of [1] which hopefully can land soon. [1] https://patchwork.kernel.org/project/linux-arm-msm/patch/1606379490-4052-1-git-send-email-mkshah@codeaurora.org Lina Iyer (1): drivers: qcom: rpmh: Disallow active requests in solver mode Maulik Shah (2): soc: qcom: rpmh: Add rpmh_write_sleep_and_wake() function soc: qcom: rpmh: Conditionally check lockdep_assert_irqs_disabled() drivers/soc/qcom/rpmh-internal.h | 10 ++++ drivers/soc/qcom/rpmh-rsc.c | 34 ++++++++++++++ drivers/soc/qcom/rpmh.c | 98 ++++++++++++++++++++++++++++++++++++++-- drivers/soc/qcom/trace-rpmh.h | 20 ++++++++ include/soc/qcom/rpmh.h | 10 ++++ 5 files changed, 168 insertions(+), 4 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation