Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1718465imu; Thu, 10 Jan 2019 01:40:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN5tAzC+O8Ks3IpJLCt8out8HgYwCiqQmbqzMQuhxaJBQrNdAsXsHFihf8ebYuDvMVpBez8y X-Received: by 2002:a62:7042:: with SMTP id l63mr9881721pfc.89.1547113239724; Thu, 10 Jan 2019 01:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547113239; cv=none; d=google.com; s=arc-20160816; b=sk+a2EAv4HMJwbU4FkYVV7EsYwdD7lOovlLMUGXlyVW+JM/4w86iSGfZ/U5VI35oMh fvqwjItov4pkS4OYHjtV5VuH6sCvIW8J3wHkwA5YdVrGh29Xju/p1M9Mf5Dv0RRp3Qey 9dB9izvuKQZlyrYIQm1DizaAXHJHcrO2wu0+nLzMTAqKtPL34UXlMtIs4cJz6Mpkcsg8 NgGf8WkVdyAF3NOXrqGP2JBqV4BQ29nXOSIMUF0h2tI5FqEUbq18d4k9OcHV8p9YPOA8 UhpT0uqUIq63TmWz+hw67CpcR3P1to2p1Q2HotGgvzJphBColg8DBj56Edckx3ctQByV YqeQ== 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=0TiRv655YIr81mM5pPgI0udJ5j46i3jGyTSi/WvOn44=; b=0LeA2+DuSU/SmDkOpRY1U8LPy3/+iI5U0159f27rKr63jZ9DmOUMQR69wCSi6pi1gG Xo/o5GIdc+arr8lI1DpWtXcBjWWrMWxXm1YuFY1kFvCtnC5YF+egNx5GLR7qK8tbWfM+ xodlmuCYg5YKIHtJe83KZ/bOIB77NTIP2YpYbAeZ6FNccA/vLHZRaOcxClJ4mVTViRVP G+15z2uPavyhuyfd9IQqe/p7DvqB7Vk6rnS9Be2XPOmM9BPs6+V7fDy1M0/BDplHeWiP XkSIC08TewRcl4hi7k5npp4vdkgYj0YWrKKCQYJQtKG4sD7uV+t1h8vVujtrNjRPz/nK pr0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GMzmwei4; 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 x1si16122401pfn.111.2019.01.10.01.40.23; Thu, 10 Jan 2019 01:40:39 -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=GMzmwei4; 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 S1727980AbfAJJjK (ORCPT + 99 others); Thu, 10 Jan 2019 04:39:10 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33174 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727964AbfAJJjK (ORCPT ); Thu, 10 Jan 2019 04:39:10 -0500 Received: by mail-wr1-f66.google.com with SMTP id c14so10620864wrr.0 for ; Thu, 10 Jan 2019 01:39:08 -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=0TiRv655YIr81mM5pPgI0udJ5j46i3jGyTSi/WvOn44=; b=GMzmwei4fvM4VhdiW/jcelXImwAva06CBJeuQzBJtazAwGsFZnlqD0EOgJWR5JZ0Rp HDiZuGBa4NcXoxef3N49zYQd+1V8wFcfkJ30xPdwbzxw+qZEi0UezwIksqNUvZhDpwG7 uDdfbYuex1FvLy1ISY8l2yVwWF8CQ5HFnRhUE= 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=0TiRv655YIr81mM5pPgI0udJ5j46i3jGyTSi/WvOn44=; b=k2OieseFlGk0CXulV724LZqcMpXQ1fx+GPBP4+JnMFtT+O44wgBnZVEz8pTIfuoM3s 0p4jvx7bL1343SN9MyL3VMg3HYS/tJ+ZCmbj6II+ajPdN/t+Rq05A6CY8Ts22FE6W8HT WO9K+z14HBNOHl5iTrCul+XqZVe5JkOH/Wme42OTH3oBXI6uhxPF4kjfHynmSa2/Qi98 5L+fxn2nG6p2GUeX2dspXUwFSJALtI9LlMGtLDhQdfEbWeEQwAWBXPKP/RFvGnwvcGXI ycIR8X0cKZPuoTzawr8XCxkNmdf8g+u9e1vNHVYNQLRZcnJyIqAspKd1oWqrlTD07rCp C0Hg== X-Gm-Message-State: AJcUukfN63oFN8J5Q68vgco1azJEaJhT3Ejlb0K6646w8Mbaga3D1sjh e1Ld5Y+crXZONBl0nHnbm9DOBHEoDRg= X-Received: by 2002:adf:ec50:: with SMTP id w16mr8687585wrn.171.1547113146996; Thu, 10 Jan 2019 01:39:06 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id h131sm21418349wmd.17.2019.01.10.01.39.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 01:39:06 -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 Cc: Stephen Boyd , 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> <08d15fa8-7e53-518c-54bb-8050b0e4aabd@linaro.org> <1547003324.6818.156.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+ERn8u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j 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: Date: Thu, 10 Jan 2019 11:39:03 +0200 MIME-Version: 1.0 In-Reply-To: <1547003324.6818.156.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, On 1/9/19 05:08, Henry Chen wrote: > 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. Ok, good. The current patchset supports bandwidth, but there was a discussion about adding support for latency and priority in the future. Thanks for the information! > Do you have a patch that show how consumer driver used interconnect to > update their requirement. Here are some examples: https://lkml.org/lkml/2018/12/7/584 https://lkml.org/lkml/2018/10/11/499 https://lkml.org/lkml/2018/9/20/986 https://lkml.org/lkml/2018/11/22/772 Thanks, Georgi