Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp175028imm; Wed, 30 May 2018 20:55:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI84gFXE4EdvWNma608kmz2OlT25/RfmFfFMfBAgw1L7rjanrDjpzM3VwqU/SEgg+NeFoSi X-Received: by 2002:a17:902:bd4c:: with SMTP id b12-v6mr5528112plx.242.1527738913361; Wed, 30 May 2018 20:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527738913; cv=none; d=google.com; s=arc-20160816; b=qkZUHEqph2hooytk1wsHLardin91FjBDpkQncQY8CO+9yuSjO2DtfvfuCG2yFUUQEa UM8+n04XW8gj0PqXfW0f+SbTczStXpmUN/ToDtDic1Jd9ADpQ1UwqJ60FfoZtVO8HNUl I1WcKRtlw7TUcywIpX02JzWj9XvhE6qvQ7kuCn8Qxf3ab4ruCr4oFNKHqKffFSwlpN99 IZc/bnlihAJEVhMqyXR5qers5shgnttUITHGlXXcXuLN2e+EQ0UeInvrPo4ocENI016w 8eApBtxAOJ+r9PFIY5hY7Snj4JTUTRXA/Qv/gjgnxv9BQhGENiG3D+ZzfniQz5dB2Nx4 EHlA== 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=JMx1T0tnIaKPiGgzyCrXJV8ietZAna/DjA9+SduSnIM=; b=rg2V1hl3rXTMr7PjHhNpcJYDw9Vc/4RO1ckc74Js6tbfiPYf9OD50O+m3jgMeXGPsM hSCFczecHRr/mi7CF5h6a+CMJPRjt9CnHWiQFcnYGh9DP8ylcUSl++4sIpSVY+lpCwOe +wlhBb/DtAEiPXBgYbx4GUm7WHL7tuU8ZvdvbXNdi8+A5/n7HorDztyFyMaEHDIw/wCP yZB+b3XB3L+v+hV0AEDAPPaRkN2QyPTsssQTHZxkyGvX8FTvmlZ+0fAJ2ZKpFIkR/y0N JuGauSdnij7Atnc2e7mvUC7Ja1lklpdP9Cu+yz+xP+gAZGZ06+6m13xMNwH+ukuGXBuQ f6Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=W1SGab1p; dkim=pass header.i=@codeaurora.org header.s=default header.b=W1SGab1p; 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 x33-v6si35957947plb.512.2018.05.30.20.54.59; Wed, 30 May 2018 20:55:13 -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=W1SGab1p; dkim=pass header.i=@codeaurora.org header.s=default header.b=W1SGab1p; 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 S932792AbeEaDyG (ORCPT + 99 others); Wed, 30 May 2018 23:54:06 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40014 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932672AbeEaDx7 (ORCPT ); Wed, 30 May 2018 23:53:59 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6BA93605A4; Thu, 31 May 2018 03:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527738838; bh=Wyruj5KuR6QiDeVscTfBmUo867RC8dn8GFS4wbjcxDA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=W1SGab1pVeNYtYBOZJUp2k0Lk0n/6ddZDRg32MbGKLsJMf8YI4kdzG9wao4tKLW1V YYpnBZ3GOB6nisChMotC8+2Uq9XyGw7/qHl9ZwvQEvEP+1DGRIkX3/9vgHQvqvkXbn oYdJASz/dnphpkzI3PBRj63MC+n2HsJ0FqvWd6+o= 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.79.40.88] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B988C603D2; Thu, 31 May 2018 03:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527738838; bh=Wyruj5KuR6QiDeVscTfBmUo867RC8dn8GFS4wbjcxDA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=W1SGab1pVeNYtYBOZJUp2k0Lk0n/6ddZDRg32MbGKLsJMf8YI4kdzG9wao4tKLW1V YYpnBZ3GOB6nisChMotC8+2Uq9XyGw7/qHl9ZwvQEvEP+1DGRIkX3/9vgHQvqvkXbn oYdJASz/dnphpkzI3PBRj63MC+n2HsJ0FqvWd6+o= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B988C603D2 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=rnayak@codeaurora.org Subject: Re: [PATCH v2 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners To: David Collins , 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> <7432f626-69cd-3535-04bc-de42e0285d41@codeaurora.org> From: Rajendra Nayak Message-ID: Date: Thu, 31 May 2018 09:23:53 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <7432f626-69cd-3535-04bc-de42e0285d41@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 Hi David, On 05/30/2018 11:57 PM, David Collins wrote: > 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. Sure, I'll take a look at it. > > 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). I can't see how else to handle this but with a fake parent/child relation, which also means we might need support to propagate performance states for power domains up the parents, which I think was initially supported but later dropped since we thought this wasn't needed for now. We might need to take a re-look at it to support this usecase. thanks, Rajendra -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation