Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp254789imu; Tue, 8 Jan 2019 19:10:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN6XZATnH+MlKw4pzPPCikV5f+UBLOOQkx+lIESMYGDmemroZbbQXdJVB8MNm7pVZGEP4Xk9 X-Received: by 2002:a17:902:2b84:: with SMTP id l4mr4348598plb.191.1547003426723; Tue, 08 Jan 2019 19:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547003426; cv=none; d=google.com; s=arc-20160816; b=RcA+6M10KFwB6qmP9qlCTRc6jfof8mqoK7iGa13kC20bPb0e/x6N/G30W96hzlQ1Hb f6TpGI7k03DLcbL+70+Cxxrq8m27tSsqw6LwxoMaFATdD1LJO26iFw3hgU0QLbvKPMwB gyn6szfHSaSYJkZPfHFDyj1tC+U5eMYMXdnZ4nzQe/NcneaDQQQwyb/nZ1o2OdOh1oyo LTMSMNd45kAbjAcof7fmCubXq3XUr9rSeDbheb5YLIcvik/c7Pf0VEQ06mLLKVU9C9hG ZOEEFDmtep6bDhf179QjdsGSP5vRkx9nVejqmTIihk0KjEIsLkJkD903zUNtxh6kEg4S WccQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=q5eShuz47C/tKA1gAJq51FQCHyDvzkYvCJ8wRr6x3Uo=; b=XVpvKBW7fCyqLAfFTAgXY+u+0GJUhLNBml9zGUnJmqlWt3xLeuC326AatPwtH9O1XM sMRTsEfnxSBrXdpCC1rE2forOc6u3xGCIvf9VxB5E4nJIDdFxl03EC9egmXwW9A8k0fa cxuCFvjqJsnie5Btn2E07FqbtsW5fNMXKz/gp6FLj/phxkNvW0zUofIH2mLR3q0hSteN qPCyaClQSjVFH6ih+iQhvVZjduh3T5q54xS4aY8IdMD7LTH9VybqvRHGqW5VEkpec2qU MMm/TWdykX5idjLpAqw8jWyV2IX/W5FEC2bqTz8QN2MUjIH/SmtV0Ga9tB2+p3h5/xeB h9NA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h191si49558247pgc.302.2019.01.08.19.10.11; Tue, 08 Jan 2019 19:10:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728456AbfAIDI4 (ORCPT + 99 others); Tue, 8 Jan 2019 22:08:56 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:57738 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727857AbfAIDI4 (ORCPT ); Tue, 8 Jan 2019 22:08:56 -0500 X-UUID: e915041112bc40c484045dcd45fdf23c-20190109 X-UUID: e915041112bc40c484045dcd45fdf23c-20190109 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 55859722; Wed, 09 Jan 2019 11:08:50 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 9 Jan 2019 11:08:48 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 9 Jan 2019 11:08:48 +0800 Message-ID: <1547003324.6818.156.camel@mtksdaap41> Subject: Re: [RFC RESEND PATCH 0/7] Add driver for dvfsrc and add support for active state of scpsys on mt8183 From: Henry Chen To: Georgi Djakov CC: Stephen Boyd , Matthias Brugger , Rob Herring , Ulf Hansson , Viresh Kumar , Mark Rutland , Fan Chen , Weiyi Lu , James Liao , Kees Cook , , , , , Date: Wed, 9 Jan 2019 11:08:44 +0800 In-Reply-To: <08d15fa8-7e53-518c-54bb-8050b0e4aabd@linaro.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> <08d15fa8-7e53-518c-54bb-8050b0e4aabd@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-01-07 at 18:34 +0200, Georgi Djakov wrote: > 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 Hi Georgi, Yes, the design is only to support bandwidth and voltage. The one of the function is to collect the memory bandwidth requirement from consumer and select the minimum DRAM frequency to fulfill system performance.It just get the total bandwidth then set it to HW, not involves complex SoC topology. So we choose to use PM QOS to model that DVFSRC driver can receive the bandwidth information from consumer driver via PM_QOS_MEMORY_BANDWIDTH. Do you have a patch that show how consumer driver used interconnect to update their requirement. Thanks, Henry