Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2102196imu; Thu, 10 Jan 2019 08:18:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6tIFYd8mdzHBkgxmvpUIhAG1yBY6ng6xdmgkwb+/sH2XluFLN7Z863OdP/sh54AVshX2X7 X-Received: by 2002:a17:902:820f:: with SMTP id x15mr10481132pln.224.1547137111819; Thu, 10 Jan 2019 08:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547137111; cv=none; d=google.com; s=arc-20160816; b=y+iAKmJk0f1N0ygNcmQmqWfw2eLQ9Ke5qPEELmMZ4y/zLeSM0DqJLJCBzCZigSO3US AUp/hubFFrbpQVYN9c2C10Znpn1AR8HiglzevgJX/yJdC/PvJh1wrYI16NkTM5lD3J7S o0GSKlEGXMzYGAyFgH2Oh431D+E9o2sTEajqYIrj2VvV7XSPLd2V7VcaKVy9Bkf2szOG 8QZ5Ir36bMPvKMMPrSnnGU3n4swfk1DRyxv63QP9rWcahyDemYc54mIM3IrO3xzpAps3 +sWdAwL3zQFprah5thum1IWT92p6ZFhdDceaBtmct+5JCt77Mc4YsLqj9FcZI0Wq/+yQ 5vJw== 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:references:cc:to:from:subject:dkim-signature; bh=/DJ4xzURs+oXeO7mYae7kTiEpfNzOK0nTghLvbn8nAQ=; b=IXVRpb4kYgXjKGzPRktN+PZuoLlWIyvwjY4+ZXlFxp0lFe1++YhAhoFpIUffMc108P /+Oy0znDWgdR52+QcBChdGTjig2WASesHG/c4pTJENAAFNqIgEYfyw0ladX0kqMacO3a OmT23sK8JZ48HVS8Q30rmw6vFQQR/GrF5A0a6MhyGhx9hGeExpHtOEYFtGNedysbRt7Q 7J8mT+rNVvSOAfBgzrp0ibd/3MPY2oGxwn0tuejCn0/ZtAunNaVKCFa+31rv8oLWZ1VU yju4s4aIrefoW3kWZGOEC0H7xkTZytKbgRwBANJFEEn4dJidriWjeXU+nf4WEWfONXmY fcug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECZD20Js; 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 e37si2439829plb.172.2019.01.10.08.18.16; Thu, 10 Jan 2019 08:18:31 -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=ECZD20Js; 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 S1728496AbfAJOTW (ORCPT + 99 others); Thu, 10 Jan 2019 09:19:22 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35276 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbfAJOTW (ORCPT ); Thu, 10 Jan 2019 09:19:22 -0500 Received: by mail-wm1-f66.google.com with SMTP id t200so12319453wmt.0 for ; Thu, 10 Jan 2019 06:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:from:to:cc:references:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/DJ4xzURs+oXeO7mYae7kTiEpfNzOK0nTghLvbn8nAQ=; b=ECZD20JsdmYy5x8r5pjDz9WsHgD/evKFCchiVnyUWNoux9NLLjF5MDIDhRYX15vfp0 BRBfZZKLuSCva20szdtrbd3OQh3KANBykbytxQqKD7jnPgmErP7dyPFWerVQKeTkFic3 gzwX88KbIpWNmBPOykOrjo/VEumroogkjKWjk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/DJ4xzURs+oXeO7mYae7kTiEpfNzOK0nTghLvbn8nAQ=; b=cd258/HBCRQ80Lv2gZnMdT29VRXDs49sbxtMTxfxr4dM8pd83R+VAXqZjmiUp9F15C f0Z30aoV3iR6zqEqHFpBu0y4qhuJm/2Ij4orBIdf6KBXT2zsW3fHMEy/jChN/QS17rM/ r1kAQ6LU52TxQDhwwNhGGNtVhovQLgUaI+cXrxwikRTE9JukQVZqtqqfAGM34WaKhjjK ZL4jNfEBItGPSp10wMZ2SEg0gnIYEgkYDN1xOIUfVe3CfmNkHEzYn+boB6WRUe4u2TSi pli5gHaQGB6Nbb0UQ9Xgi7l8AJ3mca60XdIgm2z3Te9y9GjLqZjeMIBxGQ5UEjTt5i66 90dg== X-Gm-Message-State: AJcUuke2m/nTKe1niX6OfcLqYSqQM3seiHwiI4kF6b1jVUnnki7mRf0r 1ZkrKM1RNShyEUjuA1v5aqiwkA== X-Received: by 2002:a1c:af08:: with SMTP id y8mr9421063wme.94.1547129959298; Thu, 10 Jan 2019 06:19:19 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id o8sm52974566wrx.15.2019.01.10.06.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 06:19:18 -0800 (PST) Subject: Re: [PATCH v10 0/8] Introduce on-chip interconnect API From: Georgi Djakov To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Arnd Bergmann , Olof Johansson , evgreen@chromium.org, Linux PM , "Rafael J. Wysocki" , Rob Herring , Michael Turquette , Kevin Hilman , Vincent Guittot , Saravana Kannan , bjorn.andersson@linaro.org, Amit Kucheria , seansw@qti.qualcomm.com, daidavid1@codeaurora.org, Mark Rutland , Lorenzo Pieralisi , abailon@baylibre.com, maxime.ripard@bootlin.com, Thierry Reding , ksitaraman@nvidia.com, sanjayc@nvidia.com, "devicetree@vger.kernel.org" , Linux Kernel Mailing List , Linux ARM , linux-arm-msm , linux-tegra@vger.kernel.org, Doug Anderson , Andy Gross References: <20181127180349.29997-1-georgi.djakov@linaro.org> <20181206145547.GA7884@kroah.com> <6923d6ed-e357-b083-1830-8396d788efe5@linaro.org> <9a3aae02-c7e0-97e3-2330-af4fccee6c14@linaro.org> <20181211065808.GB5161@kroah.com> <199be960-032a-d72d-4293-820e23a15b7a@linaro.org> 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 f67WiEZgvN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BKFtVyIqXBO xOf0vQEokkUGRKWBE0uA3zFVRfLiT6NUjDQ0vdphTnsdA7h01MliZLQ2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: Date: Thu, 10 Jan 2019 16:19:14 +0200 MIME-Version: 1.0 In-Reply-To: <199be960-032a-d72d-4293-820e23a15b7a@linaro.org> 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 Greg, On 12/17/18 13:17, Georgi Djakov wrote: > Hi Greg, > > On 12/11/18 08:58, Greg Kroah-Hartman wrote: >> On Mon, Dec 10, 2018 at 04:50:00PM +0200, Georgi Djakov wrote: >>> On 12/10/18 13:00, Rafael J. Wysocki wrote: >>>> On Mon, Dec 10, 2018 at 11:18 AM Georgi Djakov wrote: >>>>> >>>>> Hi Rafael, >>>>> >>>>> On 12/10/18 11:04, Rafael J. Wysocki wrote: >>>>>> On Thu, Dec 6, 2018 at 3:55 PM Greg KH wrote: >>>>>>> >>>>>>> On Wed, Dec 05, 2018 at 12:41:35PM -0800, Evan Green wrote: >>>>>>>> On Tue, Nov 27, 2018 at 10:03 AM Georgi Djakov wrote: >>>>>>>>> >>>>>>>>> Modern SoCs have multiple processors and various dedicated cores (video, gpu, >>>>>>>>> graphics, modem). These cores are talking to each other and can generate a >>>>>>>>> lot of data flowing through the on-chip interconnects. These interconnect >>>>>>>>> buses could form different topologies such as crossbar, point to point buses, >>>>>>>>> hierarchical buses or use the network-on-chip concept. >>>>>>>>> >>>>>>>>> These buses have been sized usually to handle use cases with high data >>>>>>>>> throughput but it is not necessary all the time and consume a lot of power. >>>>>>>>> Furthermore, the priority between masters can vary depending on the running >>>>>>>>> use case like video playback or CPU intensive tasks. >>>>>>>>> >>>>>>>>> Having an API to control the requirement of the system in terms of bandwidth >>>>>>>>> and QoS, so we can adapt the interconnect configuration to match those by >>>>>>>>> scaling the frequencies, setting link priority and tuning QoS parameters. >>>>>>>>> This configuration can be a static, one-time operation done at boot for some >>>>>>>>> platforms or a dynamic set of operations that happen at run-time. >>>>>>>>> >>>>>>>>> This patchset introduce a new API to get the requirement and configure the >>>>>>>>> interconnect buses across the entire chipset to fit with the current demand. >>>>>>>>> The API is NOT for changing the performance of the endpoint devices, but only >>>>>>>>> the interconnect path in between them. >>>>>>>> >>>>>>>> For what it's worth, we are ready to land this in Chrome OS. I think >>>>>>>> this series has been very well discussed and reviewed, hasn't changed >>>>>>>> much in the last few spins, and is in good enough shape to use as a >>>>>>>> base for future patches. Georgi's also done a great job reaching out >>>>>>>> to other SoC vendors, and there appears to be enough consensus that >>>>>>>> this framework will be usable by more than just Qualcomm. There are >>>>>>>> also several drivers out on the list trying to add patches to use this >>>>>>>> framework, with more to come, so it made sense (to us) to get this >>>>>>>> base framework nailed down. In my experiments this is an important >>>>>>>> piece of the overall power management story, especially on systems >>>>>>>> that are mostly idle. >>>>>>>> >>>>>>>> I'll continue to track changes to this series and we will ultimately >>>>>>>> reconcile with whatever happens upstream, but I thought it was worth >>>>>>>> sending this note to express our "thumbs up" towards this framework. >>>>>>> >>>>>>> Looks like a v11 will be forthcoming, so I'll wait for that one to apply >>>>>>> it to the tree if all looks good. >>>>>> >>>>>> I'm honestly not sure if it is ready yet. >>>>>> >>>>>> New versions are coming on and on, which may make such an impression, >>>>>> but we had some discussion on it at the LPC and some serious questions >>>>>> were asked during it, for instance regarding the DT binding introduced >>>>>> here. I'm not sure how this particular issue has been addressed here, >>>>>> for example. >>>>> >>>>> There have been no changes in bindings since v4 (other than squashing >>>>> consumer and provider bindings into a single patch and fixing typos). >>>>> >>>>> The last DT comment was on v9 [1] where Rob wanted confirmation from >>>>> other SoC vendors that this works for them too. And now we have that >>>>> confirmation and there are patches posted on the list [2]. >>>> >>>> OK >>>> >>>>> The second thing (also discussed at LPC) was about possible cases where >>>>> some consumer drivers can't calculate how much bandwidth they actually >>>>> need and how to address that. The proposal was to extend the OPP >>>>> bindings with one more property, but this is not part of this patchset. >>>>> It is a future step that needs more discussion on the mailing list. If a >>>>> driver really needs some bandwidth data now, it should be put into the >>>>> driver and not in DT. After we have enough consumers, we can discuss >>>>> again if it makes sense to extract something into DT or not. >>>> >>>> That's fine by me. >>>> >>>> Admittedly, I have some reservations regarding the extent to which >>>> this approach will turn out to be useful in practice, but I guess as >>>> long as there is enough traction, the best way to find out it to try >>>> and see. :-) >>>> >>>> From now on I will assume that this series is going to be applied by Greg. >>> >>> That was the initial idea, but the problem is that there is a recent >>> change in the cmd_db API (needed by the sdm845 provider driver), which >>> is going through arm-soc/qcom/drivers. So either Greg pulls also the >>> qcom-drivers-for-4.21 tag from Andy or the whole series goes via Olof >>> and Arnd. Maybe there are other options. I don't have any preference and >>> don't want to put extra burden on any maintainers, so i am ok with what >>> they prefer. >> >> Let me take the time later this week to review the code, which I haven't >> done in a while... >> > > When you get a chance to review, please keep in mind that the latest > version is v12 (from 08.Dec). The same is also available in linux-next > with no reported issues. The dependencies for this patchset have been already merged in v5.0-rc1, so i was wondering if this can still go into -rc2? Various patches that use this API are already posted and having it sooner will make dealing with dependencies and merge paths a bit easier during the next merge window. Or i can just rebase and resend everything targeting v5.1. Thanks, Georgi