Received: by 10.192.165.148 with SMTP id m20csp537149imm; Fri, 4 May 2018 14:41:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZopRmslJgi5o2Vk7FJylZcwfCH1b/gkTk8RMGnD3xtZeI5hM5s+K+l4fyrNOF6p4m7Mx0wt X-Received: by 2002:a63:6706:: with SMTP id b6-v6mr23466681pgc.214.1525470091378; Fri, 04 May 2018 14:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525470091; cv=none; d=google.com; s=arc-20160816; b=QCBjHKXPJFJsONUqpjMj2HqEi6Ax8c3GqSpWk+oacpYb6a3pJCU3WSmWd6NeJmRWwA 2nLN2SLABRHHLFXW+reFhVXHvI26rAKb2q8HNbv1bFyw3lw2a8a8Yus5SCc/lGaLWlJt mH2FIPl9GyXA8n5Bb0SBo5AJk2z58bvw3t4q5wQynmGMEW55kT8DIvpJkNBpp9I6IF/y GulZxbYTBIYTW8uQKXBPhIe9/e+JkMvIgWH7dWpwNtzNzHq/78thlWkJq9qAnyk47ZJQ J3d4Pq/Z+QnPDzEHOG0wkbV5rpF02wgxvVd+5HNQKbfFZcBLwnys0MRxlKBF60jg74Gi 27qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=3lm9sxOAqoBjMOIYd4isAX9Tmgt8wgwrwfE1ZTQEcBs=; b=WFHra/UvPgVWHiGrWHst6BLz7BzZuQgKctPIWKe2NASPXKl3oa9f9XwbPO47vvv+Po HVDJILEaagyDak7flwvINdftlSB7iMvDKdtGD8RL4IdghFjyv1g0DaftdFqY31ZABxsl i4vYZpskn0QpGHVJMsGnQkZ2RX8213eOaeoarAJmh6VGhqBws1fNG3rMOjsB1InXHDEd kAFfJr3jATlZTJ+Kttz83mzZeCst3GsDwJE8TJ/74QduG1d9RS39YaXPw6HySIbMpWz6 vHJD6isg57rUFEuEi9PhONM0LR2wErSZkKp1+0bXfuj4dEudqpk8XFAjNOKjPSQzCgUS t/tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LV7HrwRu; 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 a13-v6si17808149plt.142.2018.05.04.14.41.17; Fri, 04 May 2018 14:41:31 -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=LV7HrwRu; 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 S1751832AbeEDVjy (ORCPT + 99 others); Fri, 4 May 2018 17:39:54 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42875 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbeEDVjw (ORCPT ); Fri, 4 May 2018 17:39:52 -0400 Received: by mail-pf0-f195.google.com with SMTP id p14so7023519pfh.9 for ; Fri, 04 May 2018 14:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3lm9sxOAqoBjMOIYd4isAX9Tmgt8wgwrwfE1ZTQEcBs=; b=LV7HrwRuL29WwaLosHGq3zl2n8SoGswpQzQCbLuiq+9kakpUQ9Avz3mR7+lIWQLG8F zE3jA65Pbmsm4HbPYeD4DuX9pYkcAtqSnWB0AJuTP6A3O6V2XmGrdYpAd/ERJmKmOrqV THKXEAtRS88rUt1wSRfRfisuJbMfty3NYi51M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3lm9sxOAqoBjMOIYd4isAX9Tmgt8wgwrwfE1ZTQEcBs=; b=ZG3iHNRivASRaIOETB2aTIQQ+wxd78OujbFyV8FXyIxhwxpuHJhG7ADWjzPytjy1c/ 3wXiCOunMdi1Ia9/FpFKwdt2aFlPax5TvJiu+RbJqZhTHLVbTN2LLwVauXuT87ttLwdG sKLg/E4ho5mTmAoDo0JLrXuNCsLr6dUcP3bpH8GFQXrZOuV+jV/RsNE+msiEU+gK5l5r 791KT8I8AmlmhspNBLcflojoMokj+B8gGinUB2wBjEbdxmm2KykJX2ZYPFY36AsimEbX c5MPN2wFYVnbDDYwqRm2eh5uXsCbCKq4dxatVuykmaT28orLoEptkFl6DfUv0YY3YER9 l8AQ== X-Gm-Message-State: ALQs6tALoe0ujibunjTUVlHEAwHGtBMGVu3RrGKKRf39FJT+eJg4aOna iPasEOAKmmc39ZjpbjoZtwm6dg== X-Received: by 2002:a63:9557:: with SMTP id t23-v6mr23107624pgn.77.1525469992004; Fri, 04 May 2018 14:39:52 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id c3sm28308518pfn.62.2018.05.04.14.39.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 May 2018 14:39:51 -0700 (PDT) Date: Fri, 4 May 2018 14:39:50 -0700 From: Matthias Kaehlcke To: Lina Iyer Cc: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, sboyd@kernel.org, evgreen@chromium.org, dianders@chromium.org Subject: Re: [PATCH v7 07/10] drivers: qcom: rpmh: cache sleep/wake state requests Message-ID: <20180504213950.GD19594@google.com> References: <20180502193749.31004-1-ilina@codeaurora.org> <20180502193749.31004-8-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180502193749.31004-8-ilina@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 02, 2018 at 01:37:46PM -0600, Lina Iyer wrote: > Active state requests are sent immediately to the RSC controller, while > sleep and wake state requests are cached in this driver to avoid taxing > the RSC controller repeatedly. The cached values will be sent to the > controller when the rpmh_flush() is called. > > Generally, flushing is a system PM activity and may be called from the > system PM drivers when the system is entering suspend or deeper sleep > modes during cpuidle. > > Also allow invalidating the cached requests, so they may be re-populated > again. > > Signed-off-by: Lina Iyer > Reviewed-by: Evan Green Reviewed-by: Matthias Kaehlcke