Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp501961pxb; Thu, 5 Nov 2020 05:59:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwevO9lDTvHlY528rFd/VjDbvyPVQY/9wm0kbztLi7YATksCKGPsRn+ySVB6+08LCYvp2Ny X-Received: by 2002:a17:907:b01:: with SMTP id h1mr2370647ejl.10.1604584786209; Thu, 05 Nov 2020 05:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604584786; cv=none; d=google.com; s=arc-20160816; b=h2KH1rdeCKlETmO40WmwmrZ050t5hHZnRI4kVynyNlt2DDfouv+6BA5Msf7MZZ53mp 3trj7FEkXZ9d2WnPz+rsaijoFyf/G6UPgaE7gTlCJUygVz4in1X+ylfj4oSHxDJxHEy8 OwzRmAs6Jc0p2JH5YWs1Gl8yhp7rIZbq51XWSZJ97u0bS/lWFMyeBf8WlQ7Vry9pfy8Z n/FU8A3xmEPoXh6Uzt98fxNoTxaI2jsZUqV8rtUukGJpmFWSS0ZrNVm5KfyYYM1o3yvi fceOuaFSAQzfXmZOrUsmscNybc7uGaP4Oi7dn4MnSC/n/zc0B7cX+HdBiE+79yZURQ2t sgYg== 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:from:references :cc:to:subject:dkim-signature; bh=+oB95VM8Zw9gIAt2FC+TShAF+0gIWo5rt3Q41RXJdtg=; b=oO07EQMZbTMDLKleGI2ftlBEjFXR3kH79iIKdGFSLSfMTsjYh+zYSDQKS0JvSIMByq iX6y8xkzNDYdh4x4X+r19z4HuBN7MAYZHySNryXn5+X/FKCl9R1WvDR6UaCf3BgElQHN 1UglikojAQq5q46kOMifamBhB9TIZvzbrerxTjXdB/oWQbUPSPThVS0K5yvE0t60uDra ETiAzVLtrrB41K3uK7NyEHZWrfN/IkOKaSEpVK5S/qDZpvRtqQs1XkviSMXeDFgGu/rv hJF5J5Imo77/lJoTIu1LUEhs/8ILwhIyUrLOUIT196T+h3S0NhtdJVfGG4smNKghhXdV KNdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="k7qYU/S7"; 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 oz19si1346214ejb.738.2020.11.05.05.59.22; Thu, 05 Nov 2020 05:59:46 -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="k7qYU/S7"; 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 S1730871AbgKEN5b (ORCPT + 99 others); Thu, 5 Nov 2020 08:57:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730676AbgKEN5a (ORCPT ); Thu, 5 Nov 2020 08:57:30 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A9DC0613CF; Thu, 5 Nov 2020 05:57:30 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id v144so2385762lfa.13; Thu, 05 Nov 2020 05:57:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+oB95VM8Zw9gIAt2FC+TShAF+0gIWo5rt3Q41RXJdtg=; b=k7qYU/S7xIQk2jr0RN0b4YX8DQl0u0bLGIF7BIO03i9ysBwBpKDn2MliLppMdD912h r6BgWfzuRYtSE1eLkUMnbUB/BLsLo+YvOQfwlkgKibkMcVVi1isY/5BggTofJ/y1r0Hm YXTNppZyodPQYF16UO3KTj5p7F89cfzPcpONsMTDz0kZoeDG8Fx0XGembDMrW3FuOzXM jio/WB6mh7LmvjaKoQD27SeVDVB1tKJaInHuJOCXUkAdoOyzgiBYOsX/YjAtCKwJlQaR K889lN9RvZfHHalw/0sSwWgdKgiFdf9q8dpTy6GIkWbl3kBPpBC5N6gEirv5uxbLGA/i qy4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+oB95VM8Zw9gIAt2FC+TShAF+0gIWo5rt3Q41RXJdtg=; b=LAkh9c++vmxJSnAXiB1xqhPTXTn4TfINks8xtjJrUNHlePux9cmmeS4SC1vlOwc8l/ ehqkGpMEQX+IQm1iXV93wYKT4g4sTMvY60FrJe8GisSeHEAngbYqqpvV3MtBmp8fZ4J7 rzjoeOT5Dmr9wWWtre/PV2Ua/rOK+hPSvcemCCVAn4pda4AVGHA2BFLQGSEiRjjort9V VBq1zEshzON1llta0pWrh3y7lgWwncfabTlglAHjaqJBjpUgl9on4O27cfQwdL4eTTr2 5pcSalCBNF5vNYUrjiMVoSpFN8+5Yjqe4k3eUl6R+da2N/yt98idovbJguXX7SHXvXuT SkGQ== X-Gm-Message-State: AOAM532INXx3qDpNEcKJGdVzbINt3P4Kv0OXpx6pJnrFHLljH6WpoIjg D++7dtqY1W3HwUcF/z1IO/DUgke/eBg= X-Received: by 2002:ac2:522a:: with SMTP id i10mr1023516lfl.128.1604584648429; Thu, 05 Nov 2020 05:57:28 -0800 (PST) Received: from [192.168.2.145] (109-252-192-83.dynamic.spd-mgts.ru. [109.252.192.83]) by smtp.googlemail.com with ESMTPSA id h10sm158920ljj.116.2020.11.05.05.57.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Nov 2020 05:57:27 -0800 (PST) Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: 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?= , Ulf Hansson , Mauro Carvalho Chehab , Rob Herring , Marek Szyprowski , Peter Geis , Nicolas Chauvet , linux-samsung-soc@vger.kernel.org, devel@driverdev.osuosl.org, linux-usb@vger.kernel.org, linux-pwm@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org References: <20201104234427.26477-1-digetx@gmail.com> <20201105014502.GB17266@qmqm.qmqm.pl> From: Dmitry Osipenko Message-ID: <60e6ea6b-3a02-30a1-f0c9-d33ef7906ed6@gmail.com> Date: Thu, 5 Nov 2020 16:57:26 +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: <20201105014502.GB17266@qmqm.qmqm.pl> 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 05.11.2020 04:45, Michał Mirosław пишет: > On Thu, Nov 05, 2020 at 02:43:57AM +0300, Dmitry Osipenko wrote: >> Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs, which reduces >> power consumption and heating of the Tegra chips. Tegra SoC has multiple >> hardware units which belong to a core power domain of the SoC and share >> the core voltage. The voltage must be selected in accordance to a minimum >> requirement of every core hardware unit. > [...] > > Just looked briefly through the series - it looks like there is a lot of > code duplication in *_init_opp_table() functions. Could this be made > more generic / data-driven? Indeed, it should be possible to add a common helper. I had a quick thought about doing it too, but then decided to defer for the starter since there were some differences among the needs of the drivers. I'll take a closer look for the v2, thanks!