Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp73746imm; Wed, 30 May 2018 18:04:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIDOBjm9UubnZSbXJkjhvcDg2w9N7QUvDbe+Q3E7afNPNXXjPKfkOO2pCSbrLNVbCISimWq X-Received: by 2002:a63:7207:: with SMTP id n7-v6mr3805481pgc.195.1527728654745; Wed, 30 May 2018 18:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527728654; cv=none; d=google.com; s=arc-20160816; b=dJ9B03wljnQ20CNMFuN8H559JKALRQnUepg9bMMuJJfcPwH5jKf2+Ui0BQgvNx6wOI FYYmh/g/u6cVUz8spEcB+rgXwVEkADmc0bbaRdgbMnZkcRtEMet0agw01n8V7GFrKPwn K6q7PJxZisqSd0KrFQ483QzCqfWUe9ArH7ZNnG6rgvVRhKuXYmzno6X5hPzqgdlHGym2 qD5FHogoOSqdJpPlnQxkqUQx1rCBJsU3RKSLXDNjRnub3d8HxoTBM9bgtxbLM1/9jQn+ FGk5m6hBoKR0+PDDX0xT7e1YGke16K+exPTbKyDAeerMmm9tn/xYVtOESUh5eYRhD8el y9cQ== 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=TP5G7jGod0xe8CkCDijlFhnN1iuhsCNfanHwQvwLpqM=; b=Y0/MwH1XzaGA55k1gLCTgBr8yd/VsMF4HyJ7v1R14eLhymscequ/TnyBfhDpFSC+Ml /QoR3sGpsr4LPk21Vk5tk7nGSetqu/Kx7wOdKcaoN4pujf5+pGx6A1Ba7QP1fgWALQ85 KGLRjudV6nQQWFwyyuwr7U4yWb+mA5uZNwyzPQJLLXLRWx3knlO+r72nUMJAuEbSzVkd q99+Weu5P5SSXUrGoN00VomO/Ifr7VvuyBOHrH/9BqVWnsAO0GgY21F2/RDC0aJ0WZFB uwaKHV/ybK3aQzVZ/mam1j/qOMuqqjYrmOage8ZIX61lHLhZvLBl+qwGgoqjEfmQH/LZ Fhzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BjqLMmc6; dkim=pass header.i=@codeaurora.org header.s=default header.b=BjqLMmc6; 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 j20-v6si36769275pfa.57.2018.05.30.18.03.52; Wed, 30 May 2018 18:04: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=@codeaurora.org header.s=default header.b=BjqLMmc6; dkim=pass header.i=@codeaurora.org header.s=default header.b=BjqLMmc6; 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 S932653AbeEaBDW (ORCPT + 99 others); Wed, 30 May 2018 21:03:22 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33578 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932475AbeEaBDT (ORCPT ); Wed, 30 May 2018 21:03:19 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BFB656063F; Thu, 31 May 2018 01:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527728598; bh=60DlLUqK2c4dmt3L1yeNDuQe0xcJTpt9UH9nb2hHCC8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=BjqLMmc6PrIoWWNsgMiJoh+sRw/eiUaRue3+ba7HGDywV4BEJUk46jJetfjxd3kQs C9HYMO51dLkOBddYi+d3ufnAg4DxP5LgO9FoQ34qiRPbE3/gkM0zzBulxkTzB0MnEi SGYYrwsZ6Hfm57gQ5DW2V9nnJDrxuZWcbBQrr0cI= 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 016306063A; Thu, 31 May 2018 01:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527728598; bh=60DlLUqK2c4dmt3L1yeNDuQe0xcJTpt9UH9nb2hHCC8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=BjqLMmc6PrIoWWNsgMiJoh+sRw/eiUaRue3+ba7HGDywV4BEJUk46jJetfjxd3kQs C9HYMO51dLkOBddYi+d3ufnAg4DxP5LgO9FoQ34qiRPbE3/gkM0zzBulxkTzB0MnEi SGYYrwsZ6Hfm57gQ5DW2V9nnJDrxuZWcbBQrr0cI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 016306063A 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 v4 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings To: Doug Anderson Cc: Mark Brown , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd References: <6d03576cf90f06afb1194301cb41fc31704def1d.1527040878.git.collinsd@codeaurora.org> <20180530103720.GH6920@sirena.org.uk> <20180530155044.GR6920@sirena.org.uk> <20180530162007.GU6920@sirena.org.uk> <75088820-f20d-32ac-780a-5e7dacdf20ff@codeaurora.org> From: David Collins Message-ID: Date: Wed, 30 May 2018 18:03:17 -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: 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 Doug, On 05/30/2018 05:34 PM, Doug Anderson wrote: > On Wed, May 30, 2018 at 4:39 PM, David Collins wrote: >> Consider the case of a regulator with physical 10 mA LPM max current. Say >> that modem and application processors each have a load on the regulator >> that draws 9 mA. If they each respect the 10 mA limit, then they'd each >> vote for LPM. The VRM block in RPMh hardware will aggregate these requests >> together using a max function which will result in the regulator being set >> to LPM, even though the total load is 18 mA (which would require high >> power mode (HPM)). To get around this corner case, a LPM max current of 1 >> uA can be used for all LDO supplies that have non-application processor >> consumers. Thus, any non-zero regulator_set_load() current request will >> result in setting the regulator to HPM (which is always safe). > > Is there any plan to change the way this works for future versions of RPMh? As far as I know, no. Adding VRM logic to sum RPMh client load current requests, compare the sums to thresholds, select corresponding modes, and override with explicit modes was determined to be too complex for RPMh. Instead, much simpler max aggregation was implemented along with design guidelines for PMICs to ensure that mode values are ordered from strictly lower to higher power. Take care, David -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project