Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3816053imu; Mon, 7 Jan 2019 09:57:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QeMKGGAf3/fo64fb13FaEkgzAP4xDOxiUYd/R1lEPOYuswJD3fkK8gAzVNhTyjrs7f9/3 X-Received: by 2002:a17:902:142:: with SMTP id 60mr63833970plb.330.1546883879428; Mon, 07 Jan 2019 09:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546883879; cv=none; d=google.com; s=arc-20160816; b=k6JB3qlXIWn6VSoOFUgTy227q22Ah3HGSXb3/gR7z4Y6G9LkJJfq3tbtcky5MNIBSG ZepAd/cZUHwW9KPmEtv+aK94wEipolwrdZMUCoxjkmHKrUhvuY0HhvUL/vw2VltDbsOh 8lTjBTJgMwkg7AVEgdqwGP1iNfMaiz+S1/7rnvGT1f8SqRl4eFJp8Q8zdZgDp1Xx+/HU m2JBLaKgsQVRMxUaxlLge81azL2vvAdMMBYg3ipwXvGnSH13x881la25AfSHQuHAfKzP XONygL/+a9QPQRvPsMFz4cicCbngy0uf/6nONy0sCjEVKEIyUwr579O92kwx9r4/m8db 2+uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=7YBqIbHQ9ZwxMIqZMZXC2Ay5LiTjmxvVc1ig4yyK1n4=; b=g4gazDmhYASqw2wPdUE0x8+lmkH8lu8nFut0tx1rbVrZ6zBGRYgNlH+SFZbLKIWHTl ILBODIrnDUWzHKhUIn8X3qTgS1h3Cu5aGKNGP+G249ssWJ/osT35f+0C/09OMZZIYPLh o8eshbAZObLNx9Ym82qQ1+D4hb4u9YV8LKkHaNdO382kSbbuIFlmrqyVVBPbJvg411Ir esfuUuAK7EUYiWFSs3+qF965VQmV89tl8BsydzL52JEASJOscDdeAYKsIVCdCSNiA028 ulVD0MbZDx1UoOy88G/yL9eacbDDJ9j8tGYua7oVmqmdEqrAUD7eCXJSGXVj5cdUEpSf Kn7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GIzom4Tq; 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 204si9869896pfu.273.2019.01.07.09.57.44; Mon, 07 Jan 2019 09:57:59 -0800 (PST) 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=GIzom4Tq; 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 S1727854AbfAGQe7 (ORCPT + 99 others); Mon, 7 Jan 2019 11:34:59 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41719 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727318AbfAGQe7 (ORCPT ); Mon, 7 Jan 2019 11:34:59 -0500 Received: by mail-wr1-f65.google.com with SMTP id x10so1063702wrs.8 for ; Mon, 07 Jan 2019 08:34:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7YBqIbHQ9ZwxMIqZMZXC2Ay5LiTjmxvVc1ig4yyK1n4=; b=GIzom4TqCtGaihlJ6zqKvM+p0J40YQLKNSbldkxDZGAP6OUK1ohfOjT/8gwR74tyhr 4Ns9vQzIuuD0l+hTOR9BSCq8FDAIgRqZvJFXD/mTTxm7AVbSIa2McwOX5uEpmPCTZiVc +LRDVkcO1Q/5ly6z243ynw/Q+IQPACjgGccZY= 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:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7YBqIbHQ9ZwxMIqZMZXC2Ay5LiTjmxvVc1ig4yyK1n4=; b=U79yj0OVjWoQdiDMtvZcJml1nXg+MwcZqsrxi3VlLS9UhypTTux5jWZ0FJM/4KeT28 7qf2aZ1BtdnQTGq85bNSHcDMOjjHsBbQZz2Jh6XqX/YNDR+oA5oG5WttrFZQ3vWy/WBT DQKCnWLz1Z+WOcdSDdo5hG8/ecbE1FqVJ8+EPpaD0MhbVV9pdEmEQvchosAiB5O3yqE9 Cfaq8hTFWBWpNzELeLfKeYy4U9kj7d1CLcWixjKm7cGJMTD3SbYic1qlI/+9VBNntJq3 D7+BH7H/nzbgOPMcC2D2SDkLUTgosiu/bzaHNuOVlUCzzzYPFHvOKcTfwxFAHUQkTzs8 X5SQ== X-Gm-Message-State: AJcUukfm2NvLQCjgQ1rJ0iE788KOcvwqOtkgNYFX5hfd2BbH4sjKuyMm gsk5mmoSuQQb96hJcg9WjpXXuefaZWg= X-Received: by 2002:a5d:6487:: with SMTP id r7mr53747673wru.263.1546878896876; Mon, 07 Jan 2019 08:34:56 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id h16sm121482201wrb.62.2019.01.07.08.34.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 08:34:56 -0800 (PST) Subject: Re: [RFC RESEND PATCH 0/7] Add driver for dvfsrc and add support for active state of scpsys on mt8183 To: Henry Chen , Stephen Boyd Cc: Matthias Brugger , Rob Herring , Ulf Hansson , Viresh Kumar , Mark Rutland , Fan Chen , Weiyi Lu , James Liao , Kees Cook , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <1546438198-1677-1-git-send-email-henryc.chen@mediatek.com> <154655603153.15366.7761694381359713995@swboyd.mtv.corp.google.com> <1546859080.6818.128.camel@mtksdaap41> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprkc0jOHotV/6oJ mj9h95Ouvbq5TDHx+ERn8uytPygDBR67kNHs18LkvrEex/Z1cQARAQABtCh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1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <08d15fa8-7e53-518c-54bb-8050b0e4aabd@linaro.org> Date: Mon, 7 Jan 2019 18:34:54 +0200 MIME-Version: 1.0 In-Reply-To: <1546859080.6818.128.camel@mtksdaap41> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Henry, On 1/7/19 13:04, Henry Chen wrote: > On Thu, 2019-01-03 at 14:53 -0800, Stephen Boyd wrote: >> Quoting Henry Chen (2019-01-02 06:09:51) >>> The patchsets add support for MediaTek hardware module named DVFSRC >>> (dynamic voltage and frequency scaling resource collector). The DVFSRC is >>> a HW module which is used to collect all the requests from both software >>> and hardware and turn into the decision of minimum operating voltage and >>> minimum DRAM frequency to fulfill those requests. >>> >>> So, This series is to implement the dvfsrc driver to collect all the >>> requests of operating voltage or DRAM bandwidth from other device drivers >>> likes GPU/Camera through 2 frameworks basically: >>> >>> 1. PM_QOS_MEMORY_BANDWIDTH from PM QOS: to aggregate the bandwidth >>> requirements from different clients >> >> Have you looked at using the interconnect framework for this instead of >> using PM_QOS_MEMORY_BANDWIDTH? Qcom is pushing an interconnect framework >> to do DRAM bandwidth requirement aggregation. > > Sorry, I haven't heard that before. Do you mean is following series > patch? > https://patchwork.kernel.org/project/linux-arm-msm/list/?series=53775 > Yes, this one. The idea is that consumer drivers like GPU, camera, video encoder etc. report their bandwidth needs by using the interconnect API. The framework does the aggregation and configures the hardware. In order to use it you need to implement a platform-specific dvfsrc interconnect provider driver that understands the SoC topology and knows how to configure the hardware. I am not familiar with DVFSRC, but it seems to me that it can fit as interconnect provider. Does this HW module support any QoS priority/latency configuration or is it only bandwidth and voltage? Thanks, Georgi