Received: by 10.213.65.68 with SMTP id h4csp55542imn; Fri, 16 Mar 2018 17:37:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELvOhKI+qGWsB4vm7CDC9GlzPDNuLdk2M5eOBv1hyCdB2ukWvMK3q2ill8KB0RNZsQskCRHs X-Received: by 10.101.98.85 with SMTP id q21mr2925661pgv.182.1521247063148; Fri, 16 Mar 2018 17:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521247063; cv=none; d=google.com; s=arc-20160816; b=cr7EHYKf4UqVLuOKZPAzmEQPr7EBcMN2de+VSlWdHANWZ97hQgJOeJJ1xlkb7V9xp7 HDRIDBprt+OKCYXCPjKDOLY3Xpt6PCR1yY5khtriPTKXyw7iPbAuw7HoWlSI4E2Hlzqd kMF+sjqud3omVNvMdowLUiiACo6wi6HKGLAf63bxJOoOoS2KREbNkZ4OJxj4xKAo1bWb DbZo6xCt7v5dD8pA5xtS48LimsrstfKHTQ2YZFqwOAg6iJMas7PSHLocQUUTPArcTSwx inq1W7/5MkhDTFl/ioAJ7CtDzK+RabTnK12/mv+6z56Co4ZkI/Sj/3CbxDsiYNG8l1+7 gDpA== 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=JtWONn7KuxKD9QOuI/Xh0urW7RbPPdpv+4eYPqtimq4=; b=txMe+hVCt+8l/x/8XmCvC+F0kIO1Lb1F7wEaCKYXSnDD3Klm/koE4z9ud1oFCvrrqZ 6pSzS++5F7Saont6ioICGi6Kk4w3w4N+GarywSjdfuOAcMWFbfNnsiOmadkIO5K7NSRt y30gahHAzlpltnXYHSI217uDNVSW9tJ+n5VMiM1VIC6KI4+yMQ66JfCGFjb+EnXe+pd3 09RQlNxr1vYeXJJ12/K31U8KIKVCB7CLsvsZYRS2TxVEsx34RXXpBv09Q3RrFp3fHqkj CwnrPeklXHq6aQhAyWDbNzcvlNThDsiOy2DVwnYVlCcmGkbNyeWv3mSmozFeOmxEkeug FIug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JNfA9Yti; 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 l63-v6si7124832plb.7.2018.03.16.17.37.28; Fri, 16 Mar 2018 17:37:43 -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=JNfA9Yti; 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 S1752645AbeCQAgh (ORCPT + 99 others); Fri, 16 Mar 2018 20:36:37 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:44207 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567AbeCQAgf (ORCPT ); Fri, 16 Mar 2018 20:36:35 -0400 Received: by mail-oi0-f46.google.com with SMTP id b8so10042199oib.11 for ; Fri, 16 Mar 2018 17:36:34 -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=JtWONn7KuxKD9QOuI/Xh0urW7RbPPdpv+4eYPqtimq4=; b=JNfA9YtiIQSsDR52Rj2NafoqZraUTvcIcVlaH7JTaN6RHEWD+IsDi94Bn03O7BRzOv fJ/RYCsXxfkZ1bDPciJ5r1kX7U3JcAwJhKmA/bhhdwE848Lqs2v7jq1Pff9x0tWH9cVQ luhr4WE8S1R8H8+fPpm/OhiUDDBJBn+bRwBnQ= 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=JtWONn7KuxKD9QOuI/Xh0urW7RbPPdpv+4eYPqtimq4=; b=FumN+pGdGTo9cmp0Vs9UsivthFpb1381fspduZXgIAAiK9I2AWZuJ/V/HfleYYPlrU ZTK6Y8r/3e32oniGB3bs1h5+MW0E49cQEj3qhw3El/jKKCnENW9rWj8oBe4Z4hP0tOWT m8I+6BC3hzBdKzOmBWd1gE3UO6cg9FlzM7wS3vyXdAEnqDy9kj5h6Nvd4RdqPTBj3XJn LugQRRKxzYr0b4A7l9IQX58oYcxFYQTMT4QQfc+RS8JPp5Q09uzCKXhfEAvlPjiDUeU0 6+v1+3zu5yj71HrcW7od4Y8N1cctCFh5A056YXvX8qC+5dycn8q8Q7OOuqb1TTJ5tG9U sjnw== X-Gm-Message-State: AElRT7GxlA+l1zkLp3+qFaCSrX2Qay72l7kumMY7Grll/CJc2UiZ/MRr YoNVoPZfgg9bHK/gwRWVOwSJynXBoPU= X-Received: by 10.202.230.194 with SMTP id d185mr2407347oih.235.1521246994250; Fri, 16 Mar 2018 17:36:34 -0700 (PDT) Received: from mail-ot0-f174.google.com (mail-ot0-f174.google.com. [74.125.82.174]) by smtp.gmail.com with ESMTPSA id i49sm911685otc.5.2018.03.16.17.36.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 17:36:32 -0700 (PDT) Received: by mail-ot0-f174.google.com with SMTP id 79-v6so12069968oth.11 for ; Fri, 16 Mar 2018 17:36:32 -0700 (PDT) X-Received: by 2002:a9d:b68:: with SMTP id p37-v6mr1107137otd.27.1521246991564; Fri, 16 Mar 2018 17:36:31 -0700 (PDT) MIME-Version: 1.0 References: <20180309232543.24636-1-ilina@codeaurora.org> <20180309232543.24636-6-ilina@codeaurora.org> In-Reply-To: <20180309232543.24636-6-ilina@codeaurora.org> From: Evan Green Date: Sat, 17 Mar 2018 00:35:55 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS 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:27 PM Lina Iyer wrote: > Sleep and wake requests are sent when the application processor > subsystem of the SoC is entering deep sleep states like in suspend. > These requests help lower the system power requirements when the > resources are not in use. > Sleep and wake requests are written to the TCS slots but are not > triggered at the time of writing. The TCS are triggered by the firmware > after the last of the CPUs has executed its WFI. Since these requests > may come in different batches of requests, it is the job of this > controller driver to find and arrange the requests into the available > TCSes. > Signed-off-by: Lina Iyer > --- > drivers/soc/qcom/rpmh-internal.h | 9 ++- > drivers/soc/qcom/rpmh-rsc.c | 120 +++++++++++++++++++++++++++++++++++++++ > 2 files changed, 128 insertions(+), 1 deletion(-) Reviewed-by: Evan Green