Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4762139imm; Wed, 30 May 2018 11:28:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKuuxXKqChrCDDgb6lHYHMsnIBuvX/WDEG0xoHbLnRc4PSrdo9gjS/SIq5B6tIfN93tdHYU X-Received: by 2002:a17:902:8b82:: with SMTP id ay2-v6mr3798151plb.295.1527704907260; Wed, 30 May 2018 11:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527704907; cv=none; d=google.com; s=arc-20160816; b=rL/+ubttZh1ZF+Pt1aFQoEYco6BniTCDa0H/ux8eA89BqVhCdB7FObyXJE/dUoZcHW IZOZ4vegGZ+4slH/qTtrYsITrR2WTMEUYN2U5+sZ9gTxEbTneTP/PQJ7F1832Vhs3gjh +Eo0yeQaO16GijzLAnYNhwpkVwXPpVhV5JeHJjQ6xV0/4YfkebISjxoQ1lM4znHtbc8R Cgph2qDKOxSoCQFbpScM9uYda6sRo2P/VhEzX47VomGFcqakAHA5qRmbZ55jmDVljEoO Bj7FZwZsbGCYMYQbpfBEiYnJFFqYF5hjF61A4spKE9yd4JowGhOIIzTM6gMB7mEHw8Wi 1bzw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=M5s181N0B9P63hrlwc3ple0bdhtZpO7m9slu6Zk0KYw=; b=hsUoZ7HpGxIsINLhEv/h3cShkBd+4NAkfu8jIpy3/IDfNO66v/GtY9z6peWXIBXLHr Xu8y3s9it02jto2aAsUyrVft/j28n/1pBiA4Q843gV+AG1lAQW/5P/edCEDAQKPBJZV0 pgrVImd83TATbbmfwVBGpYhKrVOETla74PFjVTAB465427gfDLi+gOTa21j6dDv1SZ4p zhCF9gDedw3Ht+XSiaeN0WWoOY+zW5TJAHI8JiqJ5suiXIAiPlz2gWM7vGr/Q4yr66Ut x73IGz/bCPBBF5r9YPHO8cods790bbrugZ2y0ziXIv5PZJMDipmJTOpy4UxoKz4Q49J1 W27A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=TTKZyilG; dkim=pass header.i=@codeaurora.org header.s=default header.b=iLprlxNs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s26-v6si1611148pgo.298.2018.05.30.11.28.13; Wed, 30 May 2018 11:28:27 -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=@codeaurora.org header.s=default header.b=TTKZyilG; dkim=pass header.i=@codeaurora.org header.s=default header.b=iLprlxNs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753740AbeE3S1c (ORCPT + 99 others); Wed, 30 May 2018 14:27:32 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49074 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753526AbeE3S13 (ORCPT ); Wed, 30 May 2018 14:27:29 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0A1F060646; Wed, 30 May 2018 18:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527704849; bh=RauNNbn1lhTzRmPxZy6ePcoQIdGjJsrvCT3pKqzecK4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TTKZyilGBsFOacjAUbJH7w1hUjgk8fCO2sZs5GTjClqeVzAo4OFDo7bRIFW1LV2dj vT8WoQi1Tm/kNJEhczN4nbV8rabTF69nH97JOuO1iEyVy6UpzgS9d6yGXJ0nhJTYlv uqTflpGSBsW53QSRPkmiYAFUfJM8YCU4qoywjxCo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.46.160.165] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: collinsd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5AE106038E; Wed, 30 May 2018 18:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527704848; bh=RauNNbn1lhTzRmPxZy6ePcoQIdGjJsrvCT3pKqzecK4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iLprlxNsPIQFOxapNr3gxSk5pAqPFaQX7E9Nj3X+gZYSzMzLZLD62gjhJtIv3uyew 4Q1yWblcOsj/DAL6/r5EF4MmIJhx8UBHmp6x0BcCf9qPRVwkQjnwhwNqOb2enn2a++ 1TrR2k2wI5fSy5aNys7zQvvw1/w4rqYPe0uCC4yg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5AE106038E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=collinsd@codeaurora.org Subject: Re: [PATCH v2 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners To: Rajendra Nayak , Ulf Hansson Cc: Viresh Kumar , Stephen Boyd , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm , Linux Kernel Mailing List References: <20180525100121.28214-1-rnayak@codeaurora.org> <20180525100121.28214-2-rnayak@codeaurora.org> <0e07d577-9728-e97a-2da0-dd7dd324f058@codeaurora.org> From: David Collins Message-ID: <7432f626-69cd-3535-04bc-de42e0285d41@codeaurora.org> Date: Wed, 30 May 2018 11:27:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <0e07d577-9728-e97a-2da0-dd7dd324f058@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rajendra, On 05/30/2018 03:14 AM, Rajendra Nayak wrote: > On 05/30/2018 02:47 PM, Ulf Hansson wrote: >> On 25 May 2018 at 12:01, Rajendra Nayak wrote: ... >>> + pm_genpd_init(&rpmpds[i]->pd, NULL, true); >> >> Question: Is there no hierarchical topology of the PM domains. No >> genpd subdomains? > > The hierarchy if any is all handled by the remote core (RPM in this case). > For Linux its just a flat view. There is one special case that we'll need to handle somehow. The APPS vlvl request for VDD_MX needs to be greater than or equal to the vlvl request for VDD_CX. Can you please add the necessary code to achieve this? RPMh hardware doesn't handle this hardware requirement due to concerns about modem use case latency. Please note that this is handled in a somewhat hacky manner [1] with the downstream rpmh-regulator driver by specifying VDD_MX as the parent of VDD_CX and VDD_MX_AO as the parent of VDD_CX_AO with a dropout voltage of -1. That way, enabling CX causes MX to be enabled and voltage level requests are propagated from CX to MX (the -1 is ignored because it is rounded up within the sparse vlvl numbering space). Thanks, David [1]: https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/arch/arm64/boot/dts/qcom/sdm845-regulator.dtsi?h=msm-4.9#n135 -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project