Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp280273imu; Thu, 3 Jan 2019 19:44:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN6k9HBlCCa6/QMEda8arACwQgdGLKb4Pj3LkxcQ+l7j5FxmFg5Oe5DcIaVjm34RVIo0E1/T X-Received: by 2002:a65:6094:: with SMTP id t20mr280527pgu.285.1546573491673; Thu, 03 Jan 2019 19:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546573491; cv=none; d=google.com; s=arc-20160816; b=NP+8BAUrPjlh2iRPUYldsiZj+JXY4jB87J5wlBXI9onuFWjN1kCnO/uhOqVfBDTote Ahv3W3FzGfx7Nb1jZ4DtzoNlwitE28t1UlJy/pbwhn3Lj4gXLopG0O5AxQEWehsRqmaK UXka5QNbGA25log1lmTmQ8j6nQGKQei7OQdzC+ENDWENZs/t4HNqFTtdqaCkrR0xNabZ DKAQLTdi9JVA/2ke+tl4o3bplPWbvxk+FsAKbZ/fOSR8dipz3N4muWx+QOVYR7gpudUz u+OECcTPTpVSXiUQYVB63H0L8oGedROnAL9pnkn5GsU4/XfQ70tGYMoHz243lJFj/Hk5 Yuqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:references:user-agent :from:in-reply-to:to:cc:subject:content-transfer-encoding :mime-version:dkim-signature; bh=eKDkodU+bk+UX1mJmQHY5x4ZWScBEWFcctryf+ygKqc=; b=tNNwMSJ6NTtfday9Y8Lr19fmF+ewKCrgpo3DKI89eKYEDh+ymPuipGIv7RIszi+SQp +oYx6iIS9Km30m5DLj0b/EVk0Gkdf4gvf0d5Ukv4c1m26Ct8SpNILyrCDTHaWutS7TOT HHyFeH5oEIvxtp+wjEOWNVq7+Qd6BtlbZTPOyxejYUZkb04YDuriMZASLovBio4DLd7S 9sTfQd9zKTaC7DVebe/iPC6nZQR9T/bEulPRo14/yweW9CW0MGO/8BmSai9k1wqUrAHX CRswhHh220sArX5yvinHPUk6ipxECRuFwwvzqzm2O/bEYRwqSalfCxv+gsDgj+H2kbnP ZENA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bWHMTnCl; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b131si41101308pga.394.2019.01.03.19.44.36; Thu, 03 Jan 2019 19:44:51 -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=@chromium.org header.s=google header.b=bWHMTnCl; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728698AbfACWxy (ORCPT + 99 others); Thu, 3 Jan 2019 17:53:54 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42562 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbfACWxy (ORCPT ); Thu, 3 Jan 2019 17:53:54 -0500 Received: by mail-pf1-f194.google.com with SMTP id 64so17324022pfr.9 for ; Thu, 03 Jan 2019 14:53:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:subject:cc:to:in-reply-to :from:user-agent:references:message-id:date; bh=eKDkodU+bk+UX1mJmQHY5x4ZWScBEWFcctryf+ygKqc=; b=bWHMTnCl3K9JhTc2KDOM7bFwiA8OQSdp/WIwCi5WmdzADsf2tzrnbVzj4enGsjtDXf PiGgo/tTanO9JYYznwnbQV+KQd8qnnwph5anU/1ZjQM0NR2rvm7ZQl5nS2/eu6fFPHzl xmh32/kMxwlpa9HSj8dxThYpRfR4WzE/y/qEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :cc:to:in-reply-to:from:user-agent:references:message-id:date; bh=eKDkodU+bk+UX1mJmQHY5x4ZWScBEWFcctryf+ygKqc=; b=Vh+1VnzSi+OV30zZcuYkekmjRB6SidvJ+Zo/X2pQjxDC4eMsTz7bbr6mG7Y0Rjbc9l mv9OvPxQboDxD4LIUsEGrQQpO6XAjDBgq0qoYfypb5i3YiVIxR25Oj2llGOqBeCpHTj0 eVRDvwmJU6wz4fKDqcCUBQTLaR6vc2Xi7dAkUqgPb8KCLzTifzM+eUHN7R4fes85wA9P z7Tjtzmx8ZNu+O0xfJQPvOrq7asA6vdJwdUKYeRUVVr53Z/Mvac/4YE4E/zqQrIfy7tW M8NGXAnuXHTiVBVO3wzB3LcZ9JxWlskxLZNERmQjy9mzOPUgh3VmLhEfPgs/iIHvk+61 UUUw== X-Gm-Message-State: AA+aEWY/rApl2Tic+7yJ53IZGtZ8XemvG9P9zHxZSqSjt3mCIyHU2wsZ m7/N/3i4UTSM/dUtuERcocMp7Q== X-Received: by 2002:a62:16d6:: with SMTP id 205mr49790444pfw.256.1546556033327; Thu, 03 Jan 2019 14:53:53 -0800 (PST) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id k129sm72651060pgk.29.2019.01.03.14.53.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Jan 2019 14:53:52 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC RESEND PATCH 0/7] Add driver for dvfsrc and add support for active state of scpsys on mt8183 Cc: 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 To: Henry Chen , Matthias Brugger , Rob Herring , Ulf Hansson , Viresh Kumar In-Reply-To: <1546438198-1677-1-git-send-email-henryc.chen@mediatek.com> From: Stephen Boyd User-Agent: alot/0.8 References: <1546438198-1677-1-git-send-email-henryc.chen@mediatek.com> Message-ID: <154655603153.15366.7761694381359713995@swboyd.mtv.corp.google.com> Date: Thu, 03 Jan 2019 14:53:51 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >=20 > 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: >=20 > 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. > 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.=20