Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1206595ybg; Fri, 18 Oct 2019 13:48:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyron0yCw8/XBXmpgOLW1/4vMgWq+mK84VLbMqBRMGGu1I2HwxIZIO+uYY9862JXp1Us/ob X-Received: by 2002:a17:906:19d9:: with SMTP id h25mr10465926ejd.297.1571431694962; Fri, 18 Oct 2019 13:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571431694; cv=none; d=google.com; s=arc-20160816; b=X8zvdI61tP1B9+QdgVVvf0sknAlDkD0F8eppRqeC/0OzLEQ87eIuM5SKkyeiGLUpf9 mI6ut1IscjLc/n8nCjU1TcJ7T9w9rSWvJzjorH5I0R3G6/smgsF8aUFDBZwdV423roYh cKgtj81Web2re/DjGmFcvUt7IgEOrNYqzNqo4cblHqO1uTwyG3Yyd8YMDUDXiUvU+ppC LYyCYsy7Pr1mRTFpAyu6eHzKlQCZgQMTrucYqsKbbeyVm8crSWJ58j3mFjFqzoit9uzJ G1jDgfPrMga1r8lpnoaRMp6tsCh+TS1tiu+nVZBRRWmgomHkB9N1y1Q7ujW7VpgDKWtt f3vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=L9pt9Z55SHz6CG8upac+m8pqudIdzOY9Z9V3JtoTFX8=; b=o9/EbYMoSrno1FYslIrKS3hPzIQXRdsvBycFCnbyssfpufaDmfThspKD9+YFWXl5kc DgYgW2/EDqjVkM7SBAmWKLwEj8dh6Ae8koeiGAsMagHVKTXvkvMKePa0UMIgnUSJvYPD tjSE+Md/Psk/k9fmLCNbPXgxuBBJ2M12Sa0DyBilNN8VDmzR3vX/G2z03gwTMFVd/o7t pVQ25WEXKESdwbiKTd5N7TKcV0bfgV5Yb3V2EPtTqZZjDys8eZ56iEupTf+JM1rxvGf/ 0cVWN86YIeGpkH8d8bPEb0dlwILuh2q2MLoMnI4SnO5XdUyzXLNfA0If5r7BnfL4kzkR 7kCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CWD0eZJm; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si4129549ejp.435.2019.10.18.13.47.51; Fri, 18 Oct 2019 13:48:14 -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=@linaro.org header.s=google header.b=CWD0eZJm; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440433AbfJQQLV (ORCPT + 99 others); Thu, 17 Oct 2019 12:11:21 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37294 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405983AbfJQQLV (ORCPT ); Thu, 17 Oct 2019 12:11:21 -0400 Received: by mail-qt1-f194.google.com with SMTP id n17so4390084qtr.4 for ; Thu, 17 Oct 2019 09:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=L9pt9Z55SHz6CG8upac+m8pqudIdzOY9Z9V3JtoTFX8=; b=CWD0eZJmqBiH2XE8MyKfBza0dcM0g01SotBgRXr/jbjJ/BOwr06jeARYbxsc/fJ4k/ TReD3Pbkg3ynJIY2bI/So7Q7DG5+/WASBbvlAiMhoGHBHrXWD4m4AFPXTkOF6Hvofd4m OH3eI2jzaBfJx3R8k4uds85G6pKmgdUVzAr5zwjcxExp3qjxJkfqYcKLR5Zq5Ohyy3aE g0fXnM0cjyILXWCs0x0XCoRZ+5yJHf7IIx1+mZoGhm8YQvXiKKt82frSAiBaATeT8D4M sBi4OR+8isHHgHJQfzVq64qsVtKCfCfrKm8iD5Sawsj96w1w0kaklB3kcanvbcmHX11w IbNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=L9pt9Z55SHz6CG8upac+m8pqudIdzOY9Z9V3JtoTFX8=; b=r0wakd5uxMs+oxDa6wOKROItKCn5VqEpAuqtNZeHiBM4ARj8+vssEIpdjUV//4cAFe wfewpqnzDo2WLRPvepGS+AqLKmn4sZgxAPnKqRLQKBw/ElK09q0melTFOs9W3TGgT3FV OGGdAkbakfMJ0yDK6DGqtYXqr6vY/+BGa25OJDZcrjdQd5EyRGb8jpAU4YCBQbyKfYDK uqLkiGkgfGqmVLrctZjh1E3E6wDeU9yP7ymtkiVZ0FKS+ipA8PD5Us+yNVKVbA5tgIc/ c7vXgEVFLt4t6rZzct7VoQEjcWofe2XoX0EYvr1s3yN1zfZiXq6yjLxlA/5a0wCffndh w3Qg== X-Gm-Message-State: APjAAAXoFuOxVvU2LbziEWzJnQaNTMP54ig3eoxecuN5VuJGjuov47tT vmd7J/zmY3X5zyInMVcLxp9M4jxO8WpqdA== X-Received: by 2002:a05:6214:2c:: with SMTP id b12mr4686466qvr.10.1571328679237; Thu, 17 Oct 2019 09:11:19 -0700 (PDT) Received: from [192.168.1.169] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id g3sm1219423qkb.117.2019.10.17.09.11.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 09:11:18 -0700 (PDT) Subject: Re: [PATCH v3 1/7] PM/Domains: Add support for retrieving genpd performance states information To: Ulf Hansson References: <1571254641-13626-1-git-send-email-thara.gopinath@linaro.org> <1571254641-13626-2-git-send-email-thara.gopinath@linaro.org> Cc: Eduardo Valentin , Zhang Rui , Daniel Lezcano , Bjorn Andersson , Andy Gross , amit.kucheria@verdurent.com, Mark Rutland , "Rafael J. Wysocki" , Linux PM , DTML , linux-arm-msm , Linux Kernel Mailing List From: Thara Gopinath Message-ID: <5DA892A5.5070007@linaro.org> Date: Thu, 17 Oct 2019 12:11:17 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/2019 04:49 AM, Ulf Hansson wrote: > On Wed, 16 Oct 2019 at 21:37, Thara Gopinath wrote: >> >> Add two new APIs in the genpd framework, >> dev_pm_genpd_get_performance_state to return the current performance >> state of a power domain and dev_pm_genpd_performance_state_count to >> return the total number of performance states supported by a >> power domain. Since the genpd framework does not maintain >> a count of number of performance states supported by a power domain, >> introduce a new callback(.get_performance_state_count) that can be used >> to retrieve this information from power domain drivers. >> >> These APIs are added to aid the implementation of a power domain as >> a warming device. Linux kernel cooling device framework(into which >> warming device can be plugged in) requires during initialization to be >> provided with the maximum number of states that can be supported. When >> a power domain acts as a warming device, the max state is the max number >> of perfomrance states supported by the power domain. The cooling >> device framework implements API to retrieve the current state of the >> cooling device. This in turn translates to the current performance >> state of the power domain. >> >> Signed-off-by: Thara Gopinath > > Reviewed-by: Ulf Hansson > Thanks Ulf! Do you think this patch be merged separate from the series. Then I can drop it from the series. -- Warm Regards Thara