Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp707757ybb; Wed, 1 Apr 2020 08:12:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJBlZ3esk/85Xej/POq+VmwUJeoqM+tP4nRDAMrtrh1hdCPBfeZO7gBYyVrjNa2Q+1SYl4z X-Received: by 2002:aca:4991:: with SMTP id w139mr3174869oia.145.1585753958780; Wed, 01 Apr 2020 08:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585753958; cv=none; d=google.com; s=arc-20160816; b=v6U9jr1NplJT/kPy117ppOj7rJg32CwBiqaHk3VX49hzpm0xHD5djRAb7YROVPB661 jvE+XHcEmPuqQOS15GJ2Y8qBHQIi9JEtKZvB3s7p08NoPuNXVrqBruoT3nvpX3ssH6k9 zH3YRfMG3sxpbv8TvHTxz0KIPQ8Kuc7X958R3SgpiN2pCEjO7GxaRIY0ZlcidozaA4b3 OTiiZNQOt5nTDFm72PvQ8fPB9foKFDXGR5TAE0r2Ra925aLnXuj8KX94NJoNnhfihXq0 meaieubIxF7LG+eusPMy09/YVhB71uc11QMHe0X3jmFCL4gDxd5WB4GJXqP6nYkuaZhv F5Rw== 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=QsyC5XbpdA/rmlnfYe4iva3k7o6K19W7aGVX/8LE71s=; b=HhA2ecl8c0eMROyp4I2SKb9BReYg+bcJblTuWkNn0STIq0FlobqLMY4pay3NVKKUOX mjE85g28ZkYGQz9c6fMMUTcsoD6g2BZ2FyoPvQPwIXeIZnwGmp5fyl6sEyZhzvvOQAvf VHooMpGkfcgGkgA7lI4dWkwAw8SM41cjAhwJJ/ypDjOUsAO9az12zswGgyJrBi2iQE+L vOWcQX1txzVeJuAfdqtCPrWHsh+a2+XTWvo2OAnh74XDYWbjRkdwMfKwK//DhjflIRzV iTPCseK6Uxkh/Z4/IqOnClbPIe3yaAA2QP96Xp/klaMf2Rm7q8ttCHOn3P34H68tsZUz wcyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="drXfHyn/"; 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 r17si955567ota.32.2020.04.01.08.12.17; Wed, 01 Apr 2020 08:12:38 -0700 (PDT) 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="drXfHyn/"; 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 S1732746AbgDAPJQ (ORCPT + 99 others); Wed, 1 Apr 2020 11:09:16 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50248 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732677AbgDAPJP (ORCPT ); Wed, 1 Apr 2020 11:09:15 -0400 Received: by mail-wm1-f65.google.com with SMTP id t128so75697wma.0 for ; Wed, 01 Apr 2020 08:09:14 -0700 (PDT) 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=QsyC5XbpdA/rmlnfYe4iva3k7o6K19W7aGVX/8LE71s=; b=drXfHyn/Sgn/OQv1If63LxfC2slBajC0r8s8otOEk+FQczecih3n6j44CKfWyCZPc8 rK3gbuRyGSnRn188TuhWL1ESm1LdOcRtYLwwkpi4AVRqxzdsDFr14JIeE0ZQ15cqMBxn 2hVkkUWjIsVivWqAEwQS513sfDOGRlL/Jkr+k7h15OIMMJi5CtVSCw7HddnIp9CHFXqP yxY9ZOXj26HvIa3rm5udKyFVzdihal6q+oJgyuprERWuh3NPKBjxKinCiCp0AlBgsRvw 1ldlE5eF+RwYGcFHTSXCqEH9VD2YHC76OYah5Vq3yannF6Maz9YB613bJdG3n3N312/R TwEQ== 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=QsyC5XbpdA/rmlnfYe4iva3k7o6K19W7aGVX/8LE71s=; b=uUAEX8dz1PSMcm81M5GxmcNIFLhtvGETDDUXMAlfIv825BJSYfLN30WB9VxHdpkz2m nAdaTdqq0Or8YuMCXAzNUFv87VoZ78qh0Gg6wHNXhiFg4BUWPs6Ac6iUtvyAwLM87US/ 5A6/75jXxNS0DbTEOIoIVctvZ6VpomryP8ZSKjBVLCFWvzcA2EhZvSMKGr4MNO/cGrmH th5FlaksiOMEYi3gx9BOzP3nzqQ2QE0qGPRrct2G89dQdev7vo75sk66zCGGiO3WzqvN 7O1H2dU0zda12gHdsnXUxtgHrY0vEyRxv31OzIhba4cjWX/3EpW5oDjEmZwa8B+XuAsV ShVg== X-Gm-Message-State: AGi0PuaJx5uTYQkVB/HIQIqxfz4vo7V70hRyfRpBRyGIwPZeF6R43C03 dOUgIehpqD+vzjuM0clvaEfrdgezZd0= X-Received: by 2002:a05:600c:4145:: with SMTP id h5mr4648989wmm.3.1585753753742; Wed, 01 Apr 2020 08:09:13 -0700 (PDT) Received: from [192.168.0.136] ([87.120.218.65]) by smtp.googlemail.com with ESMTPSA id d1sm3361008wrm.86.2020.04.01.08.09.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2020 08:09:12 -0700 (PDT) Subject: Re: [PATCH V4 00/13] Add driver for dvfsrc, support for active state of scpsys To: Henry Chen Cc: Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd , Ryan Case , Mark Brown , Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , Mike Turquette , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, srv_heupstream@mediatek.com References: <1584092066-24425-1-git-send-email-henryc.chen@mediatek.com> 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 ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNx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omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <2737cc5c-3876-6861-c44f-fc9f552bbdb9@linaro.org> Date: Wed, 1 Apr 2020 18:09:11 +0300 MIME-Version: 1.0 In-Reply-To: <1584092066-24425-1-git-send-email-henryc.chen@mediatek.com> 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 3/13/20 11:34, Henry Chen wrote: > 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 3 frameworks basically: > > 1. interconnect framework: to aggregate the bandwidth > requirements from different clients > > [1] https://patchwork.kernel.org/cover/10766329/ > > Below is the emi bandwidth map of mt8183. There has a hw module "DRAM scheduler" > which used to control the throughput. The DVFSRC will collect forecast data > of dram bandwidth from SW consumers(camera/gpu...), and according the forecast > to change the DRAM frequency > > ICC provider ICC Nodes > ---- ---- > --------- |CPU | |--->|VPU | > ----- | |-----> ---- | ---- > |DRAM |--|DRAM | ---- | ---- > | |--|scheduler|----->|GPU | |--->|DISP| > | |--|(EMI) | ---- | ---- > | |--| | ----- | ---- > ----- | |----->|MMSYS|--|--->|VDEC| > --------- ----- | ---- > /|\ | ---- > |change DRAM freq |--->|VENC| > ---------- | ---- > | DVFSR | | > | | | ---- > ---------- |--->|IMG | > | ---- > | ---- > |--->|CAM | > ---- It would be useful to also add the above diagram into the commit text of patch 09/13. By doing so, it will be saved into the history, as cover letters are discarded. Thanks, Georgi