Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10419027ybi; Wed, 24 Jul 2019 22:53:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHnrPOhnnHy369tpXbiIVz2UgYOEXbxVSIAkUU1WXqrnG6wqr//BSVdJVHaPNv9ZuL0ZNE X-Received: by 2002:a63:550d:: with SMTP id j13mr21715002pgb.173.1564033997526; Wed, 24 Jul 2019 22:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033997; cv=none; d=google.com; s=arc-20160816; b=ZKuVJ5u8+ypYj8Th1p84vWyeXeF/uYcD+IMsNTp9ABlqB6pG1BEd5oLgvBxbzNjoAb Rc1GkF008jeC7VZ23WEQQq1LM2z7SKXzMoyn2q0oqxVMdxpajvd5NZMBAuCd2bdmRvUt oYPCTzJaFAoJbFdbhqSsiI6k+KuSgpGyUbzyC9ZSVBvxVyxpvBLdBi9d5KkaRONdgdR+ 0M4e6EI+CABoWEOWtPrE5XATtlf8RdhU/FQ9B/hpse8snuZhrH5yAMuVh4cqKAyg9yDH avIXor6Q7XgLsdt2dwaYHig97osIFrTuX3LEwnCbB6j0QVQVf+kNWvMUWfVCbNNmYejt ygDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f2gYhr2xF9eqfzuK1I6ByZW/6E+IIFIf49moUqSig44=; b=fkrMe4ByvzJy+aV+iXQp5s0Ry64vplWb4ufFoAMppjZVmtdjxoznMnMJXRzEZmgCku dQX4/NCBiV3hOJBupr7tK355e55O9uEW1nRUFbye9462jzhDHZhnbN1Wwjja+KsOGcd+ QdIEQP419WLjNHQWZim+z4XX5ly+IoME28Kx5NTlmI8EXkfOSnO6QbSX7Jb2xM4GKyRf iZYAav78+tBk/SC5EVylIT+K1kcflo7OpBRThb6lDz0+z0jlsKvpciahze0qQBFzvG4U WLFFqvniKarTxFMjv+TbposkvS4ecaDYAw6sy4BWR8qwiq2YavjAat9vE7aokrHwZrlS MLsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UWpYFZCq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u20si15686765pgg.565.2019.07.24.22.53.02; Wed, 24 Jul 2019 22:53:17 -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=@linaro.org header.s=google header.b=UWpYFZCq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389048AbfGYCXt (ORCPT + 99 others); Wed, 24 Jul 2019 22:23:49 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35874 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389026AbfGYCXs (ORCPT ); Wed, 24 Jul 2019 22:23:48 -0400 Received: by mail-pf1-f196.google.com with SMTP id r7so21891252pfl.3 for ; Wed, 24 Jul 2019 19:23:48 -0700 (PDT) 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:in-reply-to:user-agent; bh=f2gYhr2xF9eqfzuK1I6ByZW/6E+IIFIf49moUqSig44=; b=UWpYFZCqApaDNfrjdA5KtekES5UJ5GTU1kmcTFDFb2FLfRCDcNFDgvronSImr9dgD9 0mFTlZI7X35xO1vEdd3Gki5LIf98gKG5QhKxb/Y4+VDIDhfB1gwWeVXBqiLEyWL2EkgW NT11Oz6vHpCvPOjC1YKTKmUoFKun/2NxPqpp1JkpL65nRxlStWUN4lRLXspUzJnsSUs7 f0W+td0YgaR8ANRf2sKNe+yfU85x4p815cUUDhoDA7GMXy2XLaBS0z1jQB9wcs/VHaCv 7pV5B+RTx3CuZ/R9xi/w3tBHDvXglw6aX/anI5anp/fOKcEQncy2ECQwLBNYPNc9rUd9 Z5QA== 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:in-reply-to:user-agent; bh=f2gYhr2xF9eqfzuK1I6ByZW/6E+IIFIf49moUqSig44=; b=QTHntieSIjKyOX6CG9Kxp6iry+E3vWJkY6WJZT0ULy/pk790br2pZELUcmdmhmtGd6 zwUEca4YeI6AWQbx+i3bQgG91a9gfIhnL9mLN5KzeA1dLgXvk+dJG0Y8Y2wZ+8iS8eXw bgeYaCYdI4a2A48nbaBgktsySw+Q5qi4LpGqF/vnZUhEhdB13svX0H2EHchLbgdng79I NUn1G3V7q/5Eu6E9UxM9Bl/2B/9srde2dEUZ0xfwEXLt1crJscLQ+9/9LGSLpI8O9e9s 8XRUfhJG6zd9M9HzsPVADk2yeVGKZzixv6b0ldm8ZZS8Dwzoryks+OR6kiGLprZr/rdY JwLQ== X-Gm-Message-State: APjAAAXhl9/ffPklI1iUFIjoU0OeT6dQja28/03NVwHrp2tG47avQcSP mzN0PcgtRYYFiME5s8v/bVrJ6Q== X-Received: by 2002:a62:750c:: with SMTP id q12mr14690753pfc.59.1564021427936; Wed, 24 Jul 2019 19:23:47 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id k25sm37963077pgt.53.2019.07.24.19.23.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 19:23:46 -0700 (PDT) Date: Thu, 25 Jul 2019 07:53:43 +0530 From: Viresh Kumar To: Marek Szyprowski Cc: Sylwester Nawrocki , krzk@kernel.org, robh+dt@kernel.org, vireshk@kernel.org, devicetree@vger.kernel.org, kgene@kernel.org, pankaj.dubey@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, b.zolnierkie@samsung.com Subject: Re: [PATCH v2 0/9] Exynos Adaptive Supply Voltage support Message-ID: <20190725022343.p7lqalrh5svxvtu2@vireshk-i7> References: <20190718143044.25066-1-s.nawrocki@samsung.com> <20190723020450.z2pqwetkn2tfhacq@vireshk-i7> <5ef302a4-5bbf-483d-dfdf-cf76f6f69cee@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ef302a4-5bbf-483d-dfdf-cf76f6f69cee@samsung.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-07-19, 15:10, Marek Szyprowski wrote: > Hi Viresh, > > On 2019-07-23 04:04, Viresh Kumar wrote: > > On 18-07-19, 16:30, Sylwester Nawrocki wrote: > >> This is second iteration of patch series adding ASV (Adaptive Supply > >> Voltage) support for Exynos SoCs. The first one can be found at: > >> https://lore.kernel.org/lkml/20190404171735.12815-1-s.nawrocki@samsung.com > >> > >> The main changes comparing to the first (RFC) version are: > >> - moving ASV data tables from DT to the driver, > >> - converting the chipid and the ASV drivers to use regmap, > >> - converting the ASV driver to proper platform driver. > >> > >> I tried the opp-supported-hw bitmask approach as in the Qualcomm CPUFreq > >> DT bindings but it resulted in too many OPPs and DT nodes, around 200 > >> per CPU cluster. So the ASV OPP tables are now in the ASV driver, as in > >> downstream kernels. > > Hmm. Can you explain why do you have so many OPPs? How many > > frequencies do you actually support per cluster and what all varies > > per frequency based on hw ? How many hw version do u have ? > > For big cores there are 20 frequencies (2100MHz .. 200MHz). Each SoC > might belong to one of the 3 production 'sets' and each set contains 14 > so called 'asv groups', which assign the certain voltage values for each > of those 20 frequencies (the lower asv group means lower voltage needed > for given frequency). There is another property which might be useful in this case: "opp-microvolt-" and then you can use API dev_pm_opp_set_prop_name() to choose which voltage value to apply to all OPPs. opp-supported-hw property is more useful for the cases where only a subset of frequencies will be supported for different versions of the SoC. And what you need is a different voltage value for all frequencies based on some h/w version. -- viresh