Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2966125pxb; Sun, 8 Nov 2020 21:14:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3rv4RP4KnSmHFKXsryTbjPz189Vwed8p2CwpfHzuJxmfFzO+weZjuV8d8F/uxhNMIuJNu X-Received: by 2002:a50:e443:: with SMTP id e3mr14003703edm.160.1604898843235; Sun, 08 Nov 2020 21:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604898843; cv=none; d=google.com; s=arc-20160816; b=fSvwWoMDf2YqY7QkhW2O04ajjtD4OkRHujg3prQqI3WKXaJhDiEzevKP7iwJzZZh5R OzlI6G8gHpT9TWdkBnkgwkey+CRPrlNo9+3Tn/UI9lXZFAgY307WiSnQZmxf1tSQeftW 7R/QpWqF7zhV0cQ/pL2tXvmGRTFl//BU/SHQEsw/RX/aXlnbjxNF2y7Cqnb8CVV3rN0w Iq+FLT4CbLFwa2i6f+Im5YVfBuLLdamYUwhYlwzYoSwY64mRF348DdbVHu6myQq0Y1rc 3vSuOtgIYLU26kuPIITVNX34wCyeQHiSH5QvCUOcAF8sFatxZZBBvRHba1T8PdXTHdaU SeTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9NivTOlvjK/Ba6sd1R/nO7+Ag7q8swSruWnqhahAopA=; b=TvhN6ij2xFZ0+y8uX2kIiC6GySLm59MuFUMLEzS9XcdEb7Lj+z748h4vVAXkVsAqBp 2EqR+/JHCD1VmQxW0q0b/7hl3oHBsC1zPU9+4sW8vR+g6CFg8FKDvDyp3RO73uitGNmI X56ArbZZuRurrPkRsEmtlULDLYhjlCcaSs9hmAwtNTyOH/KKCZDvK1N39vuQRWaViGh8 lnY8FY3A7naMRoWiO0YBrkTSk485Cu+jOuaWt2ijB7gJfMMSe2kRONJ+zYyZnLX4WhTJ MgRhnoQYbCoLlq4GXxCP1yN19o/CkSLi+HHbDb5sSUDv4RrbqdfzdYDHnufQ+wLutDi+ 6PGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tp5iGDWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id x2si7237626ejy.740.2020.11.08.21.13.39; Sun, 08 Nov 2020 21:14:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tp5iGDWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729485AbgKIFMH (ORCPT + 99 others); Mon, 9 Nov 2020 00:12:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729479AbgKIFMG (ORCPT ); Mon, 9 Nov 2020 00:12:06 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B207C0613D4 for ; Sun, 8 Nov 2020 21:12:05 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id z3so6981375pfb.10 for ; Sun, 08 Nov 2020 21:12:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=9NivTOlvjK/Ba6sd1R/nO7+Ag7q8swSruWnqhahAopA=; b=tp5iGDWUBJG38ehlRwddPMdGWPeEgd/9hxrOkPBXCZ+SO+iKPWOTmiDH+Cwobq6HPT 7vViE0zYr9ka9ct70t9K8SnqDWzqSZUNXqheS/mqDinvCmYbULlqw2fzNKKZZaDq/JNb SWH5tFz0k2jHt20E9oRMK11Ae5ls9HWwjMDNYTyHI5Kbrg2pXvF7zI87YhubQ1EzyJad mYObBw7x8IKnecPqF3HhzwVgvVPOJjAHFuR3lQc5Ja5UpKwpy+OW+jfM2KcYeMFpwo6k xonZDBUdvpRiXtq7I+1C2kznYzCUVp0KodvX7o2vRCAs/T26JnMogAFl+HGWAbBD7yH/ NzTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=9NivTOlvjK/Ba6sd1R/nO7+Ag7q8swSruWnqhahAopA=; b=lkXqYBSwnC4A4g+yTuyFb1WOAFTQNETz9Um+Qh18cCll+q8oBffZx8Soge3OoWfb80 L2nM0PMcf6SXu2MCUjgUPL2sENAhR8B2YAIazOM1JzGpALX4ficFBCbssLeFDoUeZ/Ka MJjmDXpen7IXdpEkGnGwMII2hF8D6oZoWMwMjkQ+3LJfwuohUSFnZXfeCuICxKMvsIJf pT4VBe3NOf0kHulgOHnARunJRThoHl0paIzPbJTI3sALL9HGOYD5zNNmYVWmQOqbFxme 9ibX1zFithJsyY7bEzhGum9014VgsR0hLqQ+70qGNCE0W3Tw2zFTNHy2OShSQea+jooX B5yw== X-Gm-Message-State: AOAM532tIPrnvw7DHLT58N5ZHXmLnqCoLvEq8eHymp6+qha6gylRC2oo D1cPrguSDCkaOSe/9qoD7EnY+w== X-Received: by 2002:a17:90a:8086:: with SMTP id c6mr11331387pjn.147.1604898724873; Sun, 08 Nov 2020 21:12:04 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id v23sm9687090pfn.141.2020.11.08.21.12.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2020 21:12:04 -0800 (PST) Date: Mon, 9 Nov 2020 10:42:02 +0530 From: Viresh Kumar To: Dmitry Osipenko Cc: Ulf Hansson , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Mauro Carvalho Chehab , Rob Herring , Marek Szyprowski , Peter Geis , Nicolas Chauvet , linux-samsung-soc , driverdevel , Linux USB List , linux-pwm@vger.kernel.org, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , DTML , dri-devel , Linux Media Mailing List , linux-tegra Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs Message-ID: <20201109051202.e4lkosy6kk334akq@vireshk-i7> References: <20201104234427.26477-1-digetx@gmail.com> <2716c195-083a-112f-f1e5-2f6b7152a4b5@gmail.com> <20201109044354.ljd5pomhob6b7u5v@vireshk-i7> <713b319e-bb7b-4743-59f0-b9892c3da92d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-11-20, 08:10, Dmitry Osipenko wrote: > 09.11.2020 07:47, Dmitry Osipenko пишет: > > 09.11.2020 07:43, Viresh Kumar пишет: > >> On 08-11-20, 15:19, Dmitry Osipenko wrote: > >>> I took a detailed look at the GENPD and tried to implement it. Here is > >>> what was found: > >>> > >>> 1. GENPD framework doesn't aggregate performance requests from the > >>> attached devices. This means that if deviceA requests performance state > >>> 10 and then deviceB requests state 3, then framework will set domain's > >>> state to 3 instead of 10. > >> > >> It does. Look at _genpd_reeval_performance_state(). > >> > > > > Thanks, I probably had a bug in the quick prototype and then overlooked > > that function. > > > > If a non-hardware device-tree node is okay to have for the domain, then > I can try again. > > What I also haven't mentioned is that GENPD adds some extra complexity > to some drivers (3d, video decoder) because we will need to handle both > new GENPD and legacy Tegra specific pre-genpd era domains. > > I'm also not exactly sure how the topology of domains should look like > because Tegra has a power-controller (PMC) which manages power rail of a > few hardware units. Perhaps it should be > > device -> PMC domain -> CORE domain > > but not exactly sure for now. I am also confused on if it should be a domain or regulator, but that is for Ulf to tell :) -- viresh