Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3693872imu; Mon, 7 Jan 2019 07:52:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lMhUdu1824flzDNb+IiUQyUmUkZ6HEhhdd5nmMz6+Q9BuDT5WNWYur0bMibsxFYE/mr7D X-Received: by 2002:a17:902:e28e:: with SMTP id cf14mr62839309plb.311.1546876343180; Mon, 07 Jan 2019 07:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546876343; cv=none; d=google.com; s=arc-20160816; b=fLoUBQJ55pXDN58rMBctDP33lM4RyE/niRyAZg2cnJOmWIr8bMoNym/X/kIQMyq2lQ NCWrg1TggRDLhOiwBhinCgIwY1RGa+UZBqyNivfI7pyAYsNcd+/LeyulKFn8mjFQt0+I pmush7tduhnsCIPJbMdzhg7F84v+alhsCWUELXyUADzwJrNVCkoW3rb9VOV/Ml1Tf6DS 1QuZZVEj+leN9rUAqd0a4LUP4575+vl8fW5G4Dk3RAr5zhQvKynZYju2IXkQfqMNTXO0 2NM1xkt51JgYjoUErynEQvRIqHP/hdluJ1kRi3GLx8z7d6pPNhdPl6d5Q9RQrCxK2k6L 782A== 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=seCRp0l02PKGrqvbcOfV/ylsPPGlvSPv2H6zH69b6vI=; b=pjlbRDQrg8o9ouxcOE9dWqupSRJG6LsmudxQGh1HLlRZjCSeIsFCyil07WAEYUvyj5 iKkq/6h8QM3rOJjT8kOM1j4WupXLfHoRhy/l7ri1AP9uQBZUktQVS79ERnqidCRh4JWr 3s8k7zFJ1LfweprfNySgYee3ZQshwtNf3GZ5Q5qDI1dEje4KLM7Pk1uMkJpKQX2Jfhy9 2pOByI0IDB5cldm93anI2oz2TuCOqE79dCyujLDKYUmA8iJDZUtLOwmYGV7u1BSTjt3B J0ld5MOgra4nyPCjl4u20BcZ/UB9j2WkJAHqlGtYe4hz9eFA9ao4cI/O847m9Z3u/2Sp wEDw== 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 i20si45375376pgm.586.2019.01.07.07.52.05; Mon, 07 Jan 2019 07:52:23 -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 S1726957AbfAGLEy (ORCPT + 99 others); Mon, 7 Jan 2019 06:04:54 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:33326 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726535AbfAGLEx (ORCPT ); Mon, 7 Jan 2019 06:04:53 -0500 X-UUID: 68f841e6e90842c499d7f0efa05144bb-20190107 X-UUID: 68f841e6e90842c499d7f0efa05144bb-20190107 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 35773300; Mon, 07 Jan 2019 19:04:47 +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; Mon, 7 Jan 2019 19:04:46 +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; Mon, 7 Jan 2019 19:04:40 +0800 Message-ID: <1546859080.6818.128.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: Stephen Boyd CC: Matthias Brugger , Rob Herring , Ulf Hansson , Viresh Kumar , Mark Rutland , Fan Chen , Weiyi Lu , James Liao , Kees Cook , , , , , Date: Mon, 7 Jan 2019 19:04:40 +0800 In-Reply-To: <154655603153.15366.7761694381359713995@swboyd.mtv.corp.google.com> References: <1546438198-1677-1-git-send-email-henryc.chen@mediatek.com> <154655603153.15366.7761694381359713995@swboyd.mtv.corp.google.com> 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 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 > > 2. Active state management of power domains[1]: to handle the operating > > voltage opp requirement from different power domains > > Do you have any devices that aren't "OPP-ish" in how they use > frequencies and voltages? What I mean is devices such as i2c, SPI, UART > controllers that don't use the OPP library to set a frequency but want > to affect some voltage of their power domain when clk frequencies > change. The existing code works well for devices that naturally use the > OPP rate changing API, typically multimedia devices that churn through > data like a CPU and don't care about the frequency of their main clk > because it doesn't match physical link bit rates, etc. I haven't seen > any good solution for devices that don't fit well with the OPP API > though so I'm curious if Mediatek needs to solve that problem. As I know, we don't have such device that need change clk and voltage together without used OPP API.We suppose that user driver will call opp library and performance state of power domain is combined into opp table. Thanks. Henry