Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2450771ybl; Mon, 19 Aug 2019 02:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrAzRl2fA6b2ykwk15QX5J8uFRcyetp3F30XpCmnukd54HwQL1C3N31/F35sDFi2sYgLPr X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr20081731plb.93.1566205934588; Mon, 19 Aug 2019 02:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566205934; cv=none; d=google.com; s=arc-20160816; b=lrUfu9j31AUNjromlXY5R/2BR6J20x/lZEKEJzaD2yR/yj3k9G0gKlGtXiHfzwyDZu 6fNgxnWWNjGEB+xE+dKPN0nWWc4FJU5YWI3eMvYqKp9mn436UZsRLAMc/bjlZBd5DFzq uGYl7Z9JbgBNSBfF1UPhZ/FBfNQ/zaZvt89i7dWx7g7ZyCj4Yt3/5jrOkLsYJnlF4ujl wlKNPXIvpRSh5BAkxZWZm1Uon906h2iASNkMySj9N9IMyn+OkTc9sMYeCqgOhXTZxnf5 5EwwkZ4/KiBlw45t+cEqTwHVUE4Uy54IZaPo/b42iKvjhyijy4/vrRINCD7stUOkIn3l 1CJA== 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=NbQHubvtE7M8Mm9C2LyqFuVWNwA8k3gi8WsBVYz2BKg=; b=VaE/uNyVQph1zj5rAm4aAMLvllRBKGmBYyBMO2eZ2L4GWvWW2Cm8HuvGd2PSq809n7 Ru53DuTA15yw6r8IIVhkpQDU6KWQhevsFc0MRHR2ZEpmx2ZMF6SQaQ+G6QQIUbC3WSZ3 KlX1iHYcOXtrhfL78yE4ByLudl/v0KBh/OdC7vSOJ1lPyFKPlydihYzj/pbr4lWYX57q 4feJJXqUyTsD7mh9NCRGi6lXLYS7fA+P1wDzEFoNpFYcqBcyhDb6z3LEsqdMkyFOHARP MKiU4YqLPvqtwdSzzzXAkX88VgATlTfC38vD1YWIk5661IcYonpALiUUsmdzpcn+TJA5 48sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pc8kLgoV; 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 b188si10075683pfb.279.2019.08.19.02.11.59; Mon, 19 Aug 2019 02:12: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=@linaro.org header.s=google header.b=pc8kLgoV; 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 S1727364AbfHSJJe (ORCPT + 99 others); Mon, 19 Aug 2019 05:09:34 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34877 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbfHSJJd (ORCPT ); Mon, 19 Aug 2019 05:09:33 -0400 Received: by mail-pl1-f194.google.com with SMTP id gn20so677229plb.2 for ; Mon, 19 Aug 2019 02:09:32 -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=NbQHubvtE7M8Mm9C2LyqFuVWNwA8k3gi8WsBVYz2BKg=; b=pc8kLgoVhNLslClp12JPBSjxR0z3JujowkefS6jDPR1UHNdaucastVWa59gQ8D8lbt 0MGRCHg9mrrnVUEfo2wUi3Iuo4Wu/u4lTKjXKpkr+Tlfx/BRr9ewsDbvTa439fOCKAWy gTNy7KwC7wgAB85feFTYk/OxyRVTcFs813go5F4A5aBrEQw9RGPiNr2rZIGcrlgWyz5N 6pgP0WkpVzuKxOY1AQNKLZxQAzOGxLLYsNoE6uTn4EPuyi7iNjn+PiZk2iz7xo/9yaMa nFp2BO9hS20XmNof1YVo4GXNSbggWhClhVXVv57TZFoKGOoMpANkEOqkT11+rV6L9FFv LnKg== 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=NbQHubvtE7M8Mm9C2LyqFuVWNwA8k3gi8WsBVYz2BKg=; b=ciIc0g5GfE6vJylLG7DAgVhZQNk85ZwGZQuWwSOTwQi4Uoi6DFIjokPfjc8OSqyaRQ Jc+oum2NhmxjZKwYU97incO2p8gxQLOsmp1CW4OezBBAgbrJIXPi9QBL1o37SwsGeSGQ 0/BfojKjGWPLGhrakC7gRzeqst0qcQG9RnaP9SxMjv/38Co7rKg3t5EG+nqGZObyYLhr TnsH1NjJRjg75EsYcgzfIVLxUHAfuPicH6rkcbDZuckWdx1hA9B45ZM1kHyK7PHr3g7j UKd1yFTMNdQdWnnogtQQMR/crbZfyrMTl08RntGPBa9VzE/qEYVyHOf5FnGWLYLUFvG+ 1jDA== X-Gm-Message-State: APjAAAU4nKO3d6QWFkJOsi5VLwRhsklf0M1Or9uLV8++iEDmKUCy50xO Cp5HYXDOL5JJlwiABUCXg8awtg== X-Received: by 2002:a17:902:a8:: with SMTP id a37mr6159528pla.316.1566205772237; Mon, 19 Aug 2019 02:09:32 -0700 (PDT) Received: from localhost ([122.172.76.219]) by smtp.gmail.com with ESMTPSA id z19sm13413609pgv.35.2019.08.19.02.09.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 02:09:31 -0700 (PDT) Date: Mon, 19 Aug 2019 14:39:28 +0530 From: Viresh Kumar To: Sylwester Nawrocki Cc: Marek Szyprowski , 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: <20190819090928.pke6cov52n4exlbp@vireshk-i7> References: <20190718143044.25066-1-s.nawrocki@samsung.com> <20190723020450.z2pqwetkn2tfhacq@vireshk-i7> <5ef302a4-5bbf-483d-dfdf-cf76f6f69cee@samsung.com> <20190725022343.p7lqalrh5svxvtu2@vireshk-i7> <562dd2e7-2b24-8492-d1c1-2dc4973f07be@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <562dd2e7-2b24-8492-d1c1-2dc4973f07be@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 09-08-19, 17:58, Sylwester Nawrocki wrote: > Thank you for your suggestions. > > For some Exynos SoC variants the algorithm of selecting CPU voltage supply > is a bit more complex than just selecting a column in the frequency/voltage > matrix, i.e. selecting a set of voltage values for whole frequency range. > > Frequency range could be divided into sub-ranges and to each such a sub-range > part of different column could be assigned, depending on data fused in > the CHIPID block registers. > > We could create OPP node for each frequency and specify all needed voltages > as a list of "opp-microvolt-" properties but apart from the fact that > it would have been quite many properties, e.g. 42 (3 tables * 14 columns), > only for some SoC types the dev_pm_opp_set_prop_name() approach could be > used. We would need to be able to set opp-microvolt-* property name > separately for each frequency (OPP). > > Probably most future proof would be a DT binding where we could still > re-create those Exynos-specific ASV tables from DT. For example add named > opp-microvolt-* properties or something similar to hold rows of each ASV > table. But that conflicts with "operating-points-v2" binding, where > multiple OPP voltage values are described by just named properties and > multiple entries correspond to min/target/max. > > opp_table0 { > compatible = "...", "operating-points-v2"; > opp-shared; > opp-2100000000 { > opp-hz = /bits/ 64 <1800000000>; > opp-microvolt = <...>; > opp-microvolt-t1 = <1362500>, <1350000>, ....; > opp-microvolt-t2 = <1362500>, <1360000>, ....; > opp-microvolt-t3 = <1362500>, <1340000>, ....; > }; > ... > opp-200000000 { > opp-hz = /bits/ 64 <200000000>; > opp-microvolt = <...>; > opp-microvolt-t1 = <900000>, <900000>, ....; > opp-microvolt-t2 = <900000>, <900000>, ....; > opp-microvolt-t3 = <900000>, <900000>, ....; > }; > }; > > I might be missing some information now on how those Exynos ASV tables > are used on other SoCs that would need to be supported. > > There will be even more data to include when adding support for the Body > Bias voltage, for each CPU supply voltage we could possibly have > corresponding Body Bias voltage. Will something like this help ? https://lore.kernel.org/lkml/1442623929-4507-3-git-send-email-sboyd@codeaurora.org/ This never got merged but the idea was AVS only. -- viresh