Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4512805ybi; Mon, 3 Jun 2019 12:14:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRmf1nFEkT0LI+DspejN3tCkDOufkMXfO7LKynT3HmUItG9eXRWN7y3F2v2ksyAX5Ci/SH X-Received: by 2002:a65:530d:: with SMTP id m13mr30958245pgq.68.1559589296913; Mon, 03 Jun 2019 12:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559589296; cv=none; d=google.com; s=arc-20160816; b=IimRxIdGRFuvn+QIB1ZHeymxGa/p1h5RhjERtPwB1yjBlbn7MnKOzC35mtJ31iYz+Z 2A8qnOv0F/hN1KWKxG/m48tjn6y+q6qDkQBIEzdRCj2em++iX3xbXdKZIct0d5lvtNOw IKA/U7/qVEZ3Uccxcw1LxeVomPspsdrRIRHpU1nV0dotVY+B5uhYBq/w+1yoRkGLjiX6 Uak9VtM44ekVxzQrvciAyJqoVOgE6korOK5MAqOcJlSYyOveFC5kLX41oQsmG9QRwpTP GgaWOrIunjk4+fjACGboTreeCYkoZgG0lUSEsQU1MjgdaOXRwLyG91m3tBgLwBPF9RwJ K2Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mAoddn+++8qwVdvo0LP4Flz+Y0mAR71WsumbGA5/ntU=; b=swDXWMlD86gRlWvv9vAvN+Fie0/lmrOl5bwsNj6VoVDiZ1rAATVUHR32eXFGjhVlwV 0XNgWszimxSSAm0Pnw6gaA30Ww1eThjNj4NqP/P//S9Q8cJ39+C468vgpBe38gq9BOjO BK37wh9QfKRJbL1GM/MXAkdmEcZkUJfV9TapDGRMfAGj2zVh0NtLjrTMDNRzTSGgTLKr EjRtoNuI41P1GrT9uYFYAhqFv+mLtr+ozmtnrAkFPk2bFSuixla2GhMVNY86UWg+HIUH mjuALT0aOX858o4oaVUIciqSAQIuK83WxYXiNkIOX/kVvP3/jp6Tydr89iu5xiNQ7i36 JfEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wUFV0A+X; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si19805066pld.265.2019.06.03.12.14.39; Mon, 03 Jun 2019 12:14:56 -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=@google.com header.s=20161025 header.b=wUFV0A+X; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbfFCTNH (ORCPT + 99 others); Mon, 3 Jun 2019 15:13:07 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46923 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfFCTNH (ORCPT ); Mon, 3 Jun 2019 15:13:07 -0400 Received: by mail-ot1-f68.google.com with SMTP id z23so2198429ote.13 for ; Mon, 03 Jun 2019 12:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=mAoddn+++8qwVdvo0LP4Flz+Y0mAR71WsumbGA5/ntU=; b=wUFV0A+XrqyYbdkgHK2CxppQeWvJUI4OC2TQpYTXBHH0DILNt6bkaBhKCwhB5AMwIG 0LOIAe+9QJKpYEjKS94senTDbXCrId9d/+f/ZBIfAfPM+uzNRYXp73FwgI8keJiQH6Wx cNe1QAI+DNUL/c6FAldEpXYakT33XUg0x5qP0g1jDJfet10XDHsrdMDInEk52n+QnmBA EzuhaWMFTEIxQS84WmV0CUdoSAaZUMhAm5V8jXOjbmWjyKqFHkZizOEpvqx/kZBlpS24 DRbZGfmxdVyKJaGeuHg6Bj5VC642CNXwqO3WOByUzpW7WkyWju0chAM6nifBRzHX6/Mc 2x0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=mAoddn+++8qwVdvo0LP4Flz+Y0mAR71WsumbGA5/ntU=; b=p16ORc/teOK5ee/gQ9kvDIQJRmA6ZJjrghKT7Nf1dlFKcb+UaAGAbY6iS6AT0SgHwR dVU20T4YQqrnctVY9l44tdQNSYHtlilhUbzShmYTbV/TeOuIaWzMkQeuxEUsDm75j1XP 72LaGycs9r2tJCxl2aHghuKE4IPI494QZnU/CtpA6JteQeyPJJoW3YMQIMLgE4NWcVOj qa+NLjmFWgHmqMEyQAGs67Bp1etVG3Nm114hyaIiBWjsGMnNEtLeSlm0hfPSzzzRnB39 G3gukMbk8xJfntR/80bPImSvPVqUSl3fllFs6FfpkHyfX8yOHeyWH8Ab0mxzX54Q5UGx r8iQ== X-Gm-Message-State: APjAAAXYrjTodVi3gpi+b7rLqdfECnxjDf0keQ5U0D9AA/MyXMFlPcIN ytvMth6OpCXYXdJRWIY+HJieXZDn0i7M8eIrWJVE5g== X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr2427193otr.231.1559589186170; Mon, 03 Jun 2019 12:13:06 -0700 (PDT) MIME-Version: 1.0 References: <20190423132823.7915-1-georgi.djakov@linaro.org> <20190601021228.210574-1-saravanak@google.com> <20190603155634.GA10741@jcrouse1-lnx.qualcomm.com> In-Reply-To: <20190603155634.GA10741@jcrouse1-lnx.qualcomm.com> From: Saravana Kannan Date: Mon, 3 Jun 2019 12:12:30 -0700 Message-ID: Subject: Re: [PATCH v2 0/5] Introduce OPP bandwidth bindings To: Saravana Kannan , georgi.djakov@linaro.org, amit.kucheria@linaro.org, Bjorn Andersson , daidavid1@codeaurora.org, devicetree@vger.kernel.org, evgreen@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Mark Rutland , nm@ti.com, rjw@rjwysocki.net, Rob Herring , sboyd@kernel.org, seansw@qti.qualcomm.com, sibis@codeaurora.org, Vincent Guittot , vireshk@kernel.org, Android Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 3, 2019 at 8:56 AM Jordan Crouse wrote: > > On Fri, May 31, 2019 at 07:12:28PM -0700, Saravana Kannan wrote: > > I'll have to Nack this series because it's making a couple of wrong assumptions > > about bandwidth voting. > > > > Firstly, it's mixing up OPP to bandwidth mapping (Eg: CPU freq to CPU<->DDR > > bandwidth mapping) with the bandwidth levels that are actually supported by an > > interconnect path (Eg: CPU<->DDR bandwidth levels). For example, CPU0 might > > decide to vote for a max of 10 GB/s because it's a little CPU and never needs > > anything higher than 10 GB/s even at CPU0's max frequency. But that has no > > bearing on bandwidth level available between CPU<->DDR. > > I'm going to just quote this part of the email to avoid forcing people to > scroll too much. > > I agree that there is an enormous universe of new and innovative things that can > be done for bandwidth voting. I would love to have smart governors and expansive > connections between different components that are all aware of each other. I > don't think that anybody is discounting that these things are possible. > > But as it stands today, as a leaf driver developer my primary concern is that I > need to vote something for the GPU->DDR path. Right now I'm voting the maximum > because that is the bare minimum we need to get working GPU. > > Then the next incremental baby step is to allow us to select a minimum > vote based on a GPU frequency level to allow for some sort of very coarse power > savings. It isn't perfect, but better than cranking everything to 11. I completely agree. I'm not saying you shouldn't do bandwidth voting based on device frequency. In some cases, it's actually the right thing to do too. > This is > why we need the OPP bandwidth bindings to allow us to make the association and > tune down the vote. Again, I'm perfectly fine with this too. > I fully agree that this isn't the optimal solution but > it is the only knob we have right now. > And after that we should go nuts. I'll gladly put the OPP bindings in the > rear-view mirror and turn over all bandwidth to a governor or two or three. This is the problem part in the series. Once a property is exposed in DT, we can't just take it back. A new kernel needs to continue supporting old compiled DT binaries. So if we know we'll have to change a DT property in the future to be "more correct", then we should just do that one instead of "for now" bindings. And I even proposed what the new bindings should look like and why we should do it that way. I'll try to get some patches out for that in the near future. But doesn't have to be just from me. I'm just pointing out why the current bindings aren't good/scalable. > I'll be happy to have nothing to do with it again. But until then we need > a solution for the leaf drivers that lets us provide some modicum of power > control. Agreed. -Saravana