Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4549446yba; Tue, 9 Apr 2019 23:07:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmyyCnHCwO2+zqiM/NevSYBI0yOOw8A8oqAxmh1TdAJqZxDCDRWcuo9wVMmJ1U4YX4TMZ9 X-Received: by 2002:a62:b612:: with SMTP id j18mr42075986pff.124.1554876452096; Tue, 09 Apr 2019 23:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554876452; cv=none; d=google.com; s=arc-20160816; b=dCHR3wuRCnApIdUyv1YcXsyHGwXyW92gzNG6EYpKtgNI0Uh80AiGeZNDyoBreDTZM6 R/n0Qqb/II0Nhl1upSDAli2iKCB8MQmTBX7DTUzZxL5++5AgK2AuwWuH79Sus9p1K9+t p1MJVpBC3c11pU32Hlz4u5086NKDLsOMNV4gGBgVFzJsbULIk1G/3hQPbVsE8w2cNgxG T0isV+YMZgeegQnkeJ5IzKqoYshR84wjKz9Bl6kAASWFJ8x5CmhDssnvpIZ7g7APbvWN 6BJfezpW3Qup79MUbdPtrjkTamzQc9kPhPc3h9FI7I7pvDG72NUeR6nGNKZNfUjwpVjx IqpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qiT1nli0EEPkRjkLmrVuD5/q5F8HGDNYQaGn1cIJnZg=; b=JVZjDP5uIYGT3v0H5TZI3VyESw5CvTKEYIWesZ0l3sLthKKumsks2kjmNm98DIfZqU Prbk7Gm8gln3thiG0iY3uMAOUryg0IaAN+aOFBhgoPSZ8288OwFvsrl7spMwMWwGujUN pdT8KTlSRDqCoalNUECteEgMevpfsFEtA31HWwXJthNcT5DAj+QG4WKCwKTdJRJDy9xi YcoqrWAxODdT2FWmpaLpzE2ghs9bw8kykdhu06GwEGPvghZl4CpvF+2C5YW0rvtIFqdj Cgy+GOwv2Z9qGbFiRhIkUUj6/EKYrXIalg/XHwLKFm0r4NCV5pWDu0551agIE3hoNtX9 iKFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y9RNT0R8; 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 i93si31995459plb.189.2019.04.09.23.07.15; Tue, 09 Apr 2019 23:07:32 -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=Y9RNT0R8; 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 S1727266AbfDJF3V (ORCPT + 99 others); Wed, 10 Apr 2019 01:29:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44341 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbfDJF3V (ORCPT ); Wed, 10 Apr 2019 01:29:21 -0400 Received: by mail-pg1-f194.google.com with SMTP id i2so796994pgj.11 for ; Tue, 09 Apr 2019 22:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qiT1nli0EEPkRjkLmrVuD5/q5F8HGDNYQaGn1cIJnZg=; b=Y9RNT0R8q4+7K13nGwE1i0K19CeWbTb+0k2tJy+UbmKv6MCGIYGEZCpLko/qb5NNpc E0LMqKXAktnbWwp7lmrewnNDAQ7JhItnY5ZIK9n+8bIlSqQpA0A5a7+Bg+sDaPXZzh03 JVQwMA+PgOHDdtIdHxXLTwiqL/i2B83xf48dXy5tZnxAumjkgUJkBYdODShsvgSHIkma ZI0bGu0g6lZ+DWucdDXwiOKeaQDnOYk9ssMKUBj4S8/eiQoZFXsMGKTA+1RwnGgn/gMh Vln4tSM+xtrXYZQfd/nZUCiHS/WMfM+U/Gzn9wwi1AkqmACrq0tSUx2RtJSNVhff/uFw HWPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qiT1nli0EEPkRjkLmrVuD5/q5F8HGDNYQaGn1cIJnZg=; b=VmgnkFEOYnIOJTE5VkuHaaQBQfBxZoqfdjMGEeXyUPMPng3y9IeEQhoZ1PjQco91/K 45CEMKWU6jxTKrkqO8B19Pc6qr58sAEvEGb7+9Pbvm9syizGzbq90EHAq1erytXKKqXf FQN1YNgB5w2W6pU0Yxm9k68aeHh/zxffg7qGT6SPD3tMdTxdjBLvJEpEgb3wmpRflhKK 6JrN04Y76zaS7fXC1XQTHHG0WJbyYwnEnFN1k5BYATbQlNvu8Ri/yJ2TDJsFHUiq47os dQHDKAiUS/gSAfCPwNJAZY4ZjbLedZibd9oHck/eMrAt3Kt/5VM5HkcCebv4gtNG57iU n1Uw== X-Gm-Message-State: APjAAAV9jZ/5gPj1TwjaGBEqU2KBQ42q8SlB5fIX3NPbsFnmuyrQGw3n mxt5RG6zw6eSHJM8vWwAM9jtrw== X-Received: by 2002:a62:1b03:: with SMTP id b3mr41802992pfb.150.1554874159726; Tue, 09 Apr 2019 22:29:19 -0700 (PDT) Received: from localhost ([122.166.139.136]) by smtp.gmail.com with ESMTPSA id g73sm62433138pfd.185.2019.04.09.22.29.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 22:29:18 -0700 (PDT) Date: Wed, 10 Apr 2019 10:59:15 +0530 From: Viresh Kumar To: Leonard Crestez Cc: Alexandre Bailon , "linux-pm@vger.kernel.org" , "georgi.djakov@linaro.org" , Aisheng Dong , "mturquette@baylibre.com" , "ptitiano@baylibre.com" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Zening Wang , "khilman@baylibre.com" , "ccaione@baylibre.com" , Jacky Bai , dl-linux-imx , Ranjani Vaidyanathan , Ulf Hansson Subject: Re: [RFC PATCH 0/3] Add support of busfreq Message-ID: <20190410052915.jrb67qmpwnmy4ird@vireshk-i7> References: <20190313193408.23740-1-abailon@baylibre.com> <56e96a3a-4901-c79c-e91d-6b6a0690e5b7@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-03-19, 17:17, Leonard Crestez wrote: > On 3/15/19 11:31 AM, Alexandre Bailon wrote: > >>> This series is sent as RFC mostly because the current support of i.MX SoC won't > >>> benefit of busfreq framework, because the clocks' driver don't support > >>> interconnect / dram frequency scaling. > >>> As exemple, this series implements busfreq for i.MX8MM whose upstreaming > >>> is in progress. Because this relies on ATF to do the frequency scaling, it won't > >>> be hard make it work. > > >> How can I test this patch series? > >> Any additional patches you can share with us? > >> Or what else we need to do to test it? We can help with it. > > > Many other patches will be required to test the series. > > There are a couple of patches that updates i.MX device drivers to > > request for bandwidth (does similar thing as bus_freq_request and > > bus_freq_release). > > The interconnect framework asks for bandwidth in bytes/second but in NXP > tree most requests are of the form "request_bus_freq(BUS_FREQ_HIGH);". > In many cases (ethernet) it doesn't seem you can calculate a specific > bandwidth usefully. > > Instead of asking for "infinite bandwidth zero latency" to force > everything to "high" it would be nicer to "request an opp". > > Power-domain bindings mentioned that consumer-devices can specify a > "required-opps" property but I've found zero users in tree. Maybe some > helpers could be written to parse that property and automatically > request ICC opp on device suspend/resume via device-links? Documentation/devicetree/bindings/power/qcom,rpmpd.txt is using it currently in mainline. > I know that stuff was written for genpd but it looks like a very good > fit to me. Yes, the very first user is genpd but we have designed it with an open mind and so it shouldn't be difficult to make use of it at other places. There is some WIP which you can look at : - Introduce OPP bandwidth bindings lore.kernel.org/lkml/20190313090010.20534-1-georgi.djakov@linaro.org - DVFS in the OPP core https://lore.kernel.org/lkml/20190320094918.20234-1-rnayak@codeaurora.org -- viresh