Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2965388pxb; Sun, 8 Nov 2020 21:12:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqRxVeCGaJ6+Ln+rthU6KfCUGT2LZlZinZuwsc+JmMP1hXpiwKihoY84C/hQGjpKvab8Fk X-Received: by 2002:a50:8a9c:: with SMTP id j28mr13196984edj.254.1604898735016; Sun, 08 Nov 2020 21:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604898735; cv=none; d=google.com; s=arc-20160816; b=nQX0zNLtgXnUknuYPRkwIuqFiNMD33ecYG9IiVXkUnk0xiTTxrORuq87g5ueNpayvA VIxIVfPQkIHchn8dp1aUTf6aUcayz1/DytqAFV41ATQgAvwdvmwX8G/e00jFB7vuIHuN D/J8f5OuNYOaBgNzP9pJt4zgetLmxg/GasPPtb6YiDqn/+wrzRioYNSp+aDNJWYPFLic 9a0hYrZXtYzs+KR9rsVXjsH7EdT/qGuWrTF6BaNxYMpIW7KzlMRdAFXjCIbLAuo7cDdH GP5J1FY3etJi2XkolrlrsY772NqbVVV4fmQZA0zC7Zpi0h47CQq6P60EoNtZaV5DJ+dA vw/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=F8bnoTfMLfQuAGNjcxWowIscN/dz6R46GaHzllMg8J0=; b=kDyI8xfgEp75DXWWujlECPmxN4IsAxqxvvG+4BLkHIOxT6H3dl8PGGhO7VgShgF7SE WSqAGrpizFQgvY7cvn5Fb/pLlrTSJuf4xZa5qnx3DPxMLwHidYvxCEw1Q+0wYfNJFjea YGyEzMJw3PCoxtrWbP1SxJNc7ssJ+A50xBHh5DL6kTYcot/vX/RKdJNX9IpNud6y9cu5 qJh79nXNcOxnv1AihetDLU4fMEJT4G27swGuTvvd+oIuatPtYVuEs2/mvGdDnzJXz6ta Hzy0H75GvGz43lxocNeOWzK3sbjYvjIVRkbyJS7KmTSzpMBWcmLmqKIIjd/2Fo/a0jGt HqPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QYMCKqr7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si6091419ejo.361.2020.11.08.21.11.52; Sun, 08 Nov 2020 21:12:14 -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=@gmail.com header.s=20161025 header.b=QYMCKqr7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729466AbgKIFKW (ORCPT + 99 others); Mon, 9 Nov 2020 00:10:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729436AbgKIFKU (ORCPT ); Mon, 9 Nov 2020 00:10:20 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A62CC0613CF; Sun, 8 Nov 2020 21:10:19 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id o24so2039314ljj.6; Sun, 08 Nov 2020 21:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=F8bnoTfMLfQuAGNjcxWowIscN/dz6R46GaHzllMg8J0=; b=QYMCKqr7RGvgYQCWbQWS7P62qghK9GYhJHOPC6o3qWYxnmx01eOxLC3P9oE915gwvt Fh3WypXWmqFr5JDzFvcPizJHaUlaojEYEUSbCYiCwkjs4V93aOmdN+Fgb69PJ6NqE2Gw PU1tJC6S9ZO6C2E/cEJiZ7Ugx4M8B/quGev7CODiOs60KgtrPSL8dsbQi1bSJBrgItSj sS++FruzLvRC0nDuMK2bw7Tv77TCae5RwbeUbWYjmokvQPKApEWrKpR+CACc3lpJArf0 NYbmiYM7C+3HAkDJKFrl7LPc7SxMra13YtbJE8XKMrd/eT1ThSFtS/0QhWfQ+88xkHzq O9zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F8bnoTfMLfQuAGNjcxWowIscN/dz6R46GaHzllMg8J0=; b=m/sgWz/85zYduSGwnru5nzGXWA1xTwhxwmzdy7/G75yfV95shvs9/0+lKYzRI3A+ig xWeRqHHXg1F5q00D2GAFh++uK5rKiEyLizxOyXn2wuTHNQMQ2j3RUbve8pgMi4Wy6ZCZ xe8peNRpN7wOQMMG3U486pxU3YzHOe634nSTQb5aPHQ5GiKqqudT8KLYmAhqIl8Xo9zY hNYh6W6Lr/+t4niXtUbKGtV7FbwhJLVa7t8V/cz24RwdrngXlaXuG1eJIAz9vLT2xkWC Le1ZZ0+Rm0N83AOQKbScaXLpYLmTML16SiI1oQIhhr+nzpuuahEoaLN+AAX7z7g1EmSc xILg== X-Gm-Message-State: AOAM532S0XibXizrdjk2T9o320Gn3O4v86gDKtK5Op3bhwB2x2nCtjez YUQiEW8QBJ7vfCT9p7/cwkseaWcnrnc= X-Received: by 2002:a2e:6a0f:: with SMTP id f15mr272519ljc.375.1604898617889; Sun, 08 Nov 2020 21:10:17 -0800 (PST) Received: from [192.168.2.145] (109-252-193-159.dynamic.spd-mgts.ru. [109.252.193.159]) by smtp.googlemail.com with ESMTPSA id r9sm1547587ljd.23.2020.11.08.21.10.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Nov 2020 21:10:17 -0800 (PST) Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs From: Dmitry Osipenko To: Viresh Kumar Cc: Ulf Hansson , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , =?UTF-8?Q?Uwe_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 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> Message-ID: Date: Mon, 9 Nov 2020 08:10:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <713b319e-bb7b-4743-59f0-b9892c3da92d@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.