Received: by 10.213.65.68 with SMTP id h4csp56022imn; Fri, 16 Mar 2018 17:39:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELuGhF21IErL2xhpJFL3DBosHYjr+8WP0sJqx8MXshcuTkBRwMUpn6zD41VqqNpufjSnObDF X-Received: by 10.98.152.22 with SMTP id q22mr3259526pfd.178.1521247151289; Fri, 16 Mar 2018 17:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521247151; cv=none; d=google.com; s=arc-20160816; b=xd2QAQxh7Crd/3Zp9evD2Gg+6nelD6XaotgCwWGDq84FtH+jp/BATDVtW4Hb9/LZGS H8v5+D+y5IyYCLbHw/Zh24IrcNQDpnww5QqyBliA8/W4nWekyopPswmQU5lFYp3Mn1YJ QuPX0IZyOMsqGXgXA0NBs4G+Kq1/+rFlL/irNfSM+McUS36OBhy6xFf2VgFde0iMgX84 PVktXdQ8VPShwhe3rNEAZy8GeG4hmazDPl2dvLTUYR4rpoqdXkqKrDJtdJ0idVggUFMA 35o3PSqrrvnNS7gYvGuDRRkKr+BaW/iKmoZ8o115Eb2zSG1nrhpUTtv9VR5owXj6Ksi8 3Q8A== 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 :arc-authentication-results; bh=BBnIi05XmUsi9AHNV19ch4UZTLBxwUIV6QwpPXkIy4c=; b=AGq04SCXnMq7ugD/z6kmUdcgCcwCCSsqgx5FkONdAXUzd5W/Xy23O7OCkElfbvbIoi B4AitIBEyZ8XrXm2Ny0v5q0hYo3+Ma1QeIKL6P/rMTJnnEdaiQs2AY1LMz984hLoVNi/ 8zbdaiXhIZlgsokmH/6yhKqytFfEnxVBBhxRzC7UzlfJCyPeXY7FsOCE1OPqp8oiNPez 1ZIvYpEl8WEQTjKhqn9Mgazusi9GatlIswUFmC1D3fORduBUp6h4Dzqn8681EIZwLpBe rwwWZcwyjQGzmyP9RFlu/mPAjbowdj2BUgNyyfFktmbDFFAL1LQ8apWtbozjvllKF0Ku YLfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JMyOYtzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si5753065pgv.672.2018.03.16.17.38.57; Fri, 16 Mar 2018 17:39:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JMyOYtzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752861AbeCQAhd (ORCPT + 99 others); Fri, 16 Mar 2018 20:37:33 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:42844 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096AbeCQAhb (ORCPT ); Fri, 16 Mar 2018 20:37:31 -0400 Received: by mail-ot0-f196.google.com with SMTP id l5-v6so12106842otf.9 for ; Fri, 16 Mar 2018 17:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BBnIi05XmUsi9AHNV19ch4UZTLBxwUIV6QwpPXkIy4c=; b=JMyOYtzjpvBIZlrcRQLon9iQAQPXR/vLFMAT9p4rritYkGpsRmzqpLv0IgsXVFc3bf N9LhloVIGc1Bq3UBUcVmMSx9c5XsjyL8gpJTzA6VcdvS0I1TUwjq3sirtXr4COl29ZMC DMRc+sHS0HeVadVe1vsgrRX5KfngRFMLovI14= 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=BBnIi05XmUsi9AHNV19ch4UZTLBxwUIV6QwpPXkIy4c=; b=X8AdfNiDKC0WwmO68qR1LENUgVvyw5fw5us85390BFjnHJUYNh+FbZ+ndHFwBwRleg lZoSO8DE9Hazg/9sgD6wiLbmn/zhWh3qu3SHilMr/eGllZaZKzuRGB/ILK7nPUuML7pf nqtacNnSQ1YhrTRqTjA2XgaPK4VXWcfyrq+Y3dk/t9EGvvPRspxjWOoNvs2jVRq3+dje JeSVp6Yb3+cnhNkiEcmKI509pp9fLQeOhbP3w9smn5n4qL+drh4GzbCKVmTFYFfOkjb7 66gJgToPohffMR3mG3JYnI62g7h4kq5fH19GmwWMebJk8/gzb7BEgxMVstemxJtWM9ta S/Jg== X-Gm-Message-State: AElRT7GipMyBWEi+0j6QrHx+YXaw7i3HJnh4QIcffHrxOty8+loK5jBd m5NGFFrsK8l5w6+o3ZiDpT0PigyR4es= X-Received: by 2002:a9d:467:: with SMTP id 94-v6mr2704824otc.253.1521247050321; Fri, 16 Mar 2018 17:37:30 -0700 (PDT) Received: from mail-ot0-f176.google.com (mail-ot0-f176.google.com. [74.125.82.176]) by smtp.gmail.com with ESMTPSA id h17sm5187427otc.55.2018.03.16.17.37.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 17:37:29 -0700 (PDT) Received: by mail-ot0-f176.google.com with SMTP id i28-v6so7412069otf.8 for ; Fri, 16 Mar 2018 17:37:29 -0700 (PDT) X-Received: by 2002:a9d:5ccb:: with SMTP id r11-v6mr2660045oti.221.1521247048374; Fri, 16 Mar 2018 17:37:28 -0700 (PDT) MIME-Version: 1.0 References: <20180309232543.24636-1-ilina@codeaurora.org> <20180309232543.24636-10-ilina@codeaurora.org> In-Reply-To: <20180309232543.24636-10-ilina@codeaurora.org> From: Evan Green Date: Sat, 17 Mar 2018 00:36:52 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 09/10] drivers: qcom: rpmh: add support for batch RPMH request To: Lina Iyer Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Rajendra Nayak , Bjorn Andersson , linux-kernel@vger.kernel.org, sboyd@kernel.org 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 Fri, Mar 9, 2018 at 3:26 PM Lina Iyer wrote: > Platform drivers need make a lot of resource state requests at the same > time, say, at the start or end of an usecase. It can be quite > inefficient to send each request separately. Instead they can give the > RPMH library a batch of requests to be sent and wait on the whole > transaction to be complete. > rpmh_write_batch() is a blocking call that can be used to send multiple > RPMH command sets. Each RPMH command set is set asynchronously and the > API blocks until all the command sets are complete and receive their > tx_done callbacks. > Signed-off-by: Lina Iyer > --- > Changes in v4: > - reorganize rpmh_write_batch() > - introduce wait_count here, instead of patch#4 > --- > drivers/soc/qcom/rpmh.c | 156 +++++++++++++++++++++++++++++++++++++++++++++++- > include/soc/qcom/rpmh.h | 8 +++ > 2 files changed, 162 insertions(+), 2 deletions(-) Reviewed-by: Evan Green