Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2206362imu; Thu, 24 Jan 2019 08:54:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN5cqNm2GwBpf2hHajaHSbXluQ/P/zusG0OQv+UYFRGD05/o+l4K+RhhvQOb/T0Leu6PdxhF X-Received: by 2002:a17:902:8484:: with SMTP id c4mr7121170plo.59.1548348857557; Thu, 24 Jan 2019 08:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548348857; cv=none; d=google.com; s=arc-20160816; b=pq4vQnhp4TdvltNoV4QUAbgcjyGQU6GeONk1lMWydveHkO4U+VWqEZHcCLkOAhoR7v slZdtFu3qCrdfXDg4SNVoT1hyiDWopwE8ySROxJOEbBp7nbz0odEJOk4uuWLaCmLZGpO RMs3c5oKIfvrcRXbhI5mhi7VwN8D+R1A5Rul1rzI3yUXVb2RhTfCSBOxdsc5aKTUdTtg lpMT34BF4dzOAX180EfnfE6hH4kdskaR8LBnQZvdXT4kXXTDCXNnyi+xC0vEOva/YLrI xuYemu/RZ1YutGq5zY+fV7RlP4HU5kU8VuJFYgI1MONEKDaK8zParS/b412I+kp78koY Sc+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OhnX21LR5IFTaJhnCOdLXb9BeznZ1d+nd23qWL+puCA=; b=vpLHkkt385+uYtEFDDuWDJNWSEU/IWKQwwY8oIHBepPLwEryHLfVpDk/9UdRZYUX0x 7oxISBOyCbOTZgv7B5+lvTL7WfSLsmohdIA79ZOgfm8jR+QxNYD8DKSVadsM3ae6d3iT mEdf/BIF+Auai+srzIWSkb+C4c3Xrw6SBpu+PK4pWy4cwWvPuDVM9P6q6GJDLa2XXror sgYLKTvxE7u8SJpMMhlCxVuvHP4f+GJmmh9eFy4U+RXpNg0EZ+zw6eQ6nXjWAnZAhYYi Yjh7QnviwxA/A4H9JgooT6bbnjv5YtPptGiBLtWU3kg7loipHr0SOifrZ2S9dB1rTaNH gwsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SjUmPh5l; 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 q17si1470713pfc.198.2019.01.24.08.54.01; Thu, 24 Jan 2019 08:54:17 -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=SjUmPh5l; 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 S1728737AbfAXQwr (ORCPT + 99 others); Thu, 24 Jan 2019 11:52:47 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43274 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728320AbfAXQwq (ORCPT ); Thu, 24 Jan 2019 11:52:46 -0500 Received: by mail-lj1-f195.google.com with SMTP id q2-v6so5842752lji.10 for ; Thu, 24 Jan 2019 08:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OhnX21LR5IFTaJhnCOdLXb9BeznZ1d+nd23qWL+puCA=; b=SjUmPh5lu6dFy0OBzDdqMCoI2UNH6D+UHTohtiK7v8G1kR3Ie+WtPS6nuGXaacsGUc btz8IjI66s0y/PYVLjs13ZKhVr/nvB44ud/lxwuvPGu5491aWX+Dc3TjaOZ+4uLBOfGB Z+/74I4ZaTYAzjbG1LRafIQ7ZSg4awkDb09ho= 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:cc; bh=OhnX21LR5IFTaJhnCOdLXb9BeznZ1d+nd23qWL+puCA=; b=ZTeD0G6eGreGPU6yTXjDPQl4JFQ0Io0RF1WPHpSBMVBda414/7K+P+PYzjzkAOO+2m bEckXA4G7DPkt/wOciRv9//ghWZl+GiUCW+qRgNeGIvJTib1dAET9/uhSNvhiQi71Nzm VTDIXGKXoN+gcyREvZNcDUp3Dopro+wjgULP69riKKtdhiYItfafDtsa14JYS3PELSMl ONRv2dwTkfiH/I+B5fHuVju/RO8Lu1+BezDD557dAvciR26DKll5u4iAaiiM7eDakexn 1HtaZMDIVAnxbnqIJHrj3B64cbD2ONQvQMUDhQ9f8As7Bm5uG7BzrRPN4SNXmw0SQGhc UTAQ== X-Gm-Message-State: AJcUukfELQOiCx5h8PYW5gftVOxy+ieFsLPbDsqhSkW9D/z7ZozeYonN 7X98qjgvx4SlId4VoQSAQeSbnwO8LgY= X-Received: by 2002:a2e:21a9:: with SMTP id h41-v6mr6234990lji.103.1548348764377; Thu, 24 Jan 2019 08:52:44 -0800 (PST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id y24-v6sm1054611ljd.20.2019.01.24.08.52.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 08:52:42 -0800 (PST) Received: by mail-lf1-f42.google.com with SMTP id b20so4808714lfa.12 for ; Thu, 24 Jan 2019 08:52:41 -0800 (PST) X-Received: by 2002:a19:7dc2:: with SMTP id y185mr6098975lfc.27.1548348760722; Thu, 24 Jan 2019 08:52:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Evan Green Date: Thu, 24 Jan 2019 08:52:03 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [ 1/1] scsi: qcom-ufs: Add support for bus voting using ICB framework To: Asutosh Das Cc: subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, Rajendra Nayak , Vinayak Holikatti , jejb@linux.vnet.ibm.com, "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-arm-msm , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list 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 Wed, Jan 23, 2019 at 11:02 PM Asutosh Das wrote: > > Adapt to the new ICB framework for bus bandwidth voting. > > This requires the source/destination port ids. > Also this requires a tuple of values. > > The tuple is for two different paths - from UFS master > to BIMC slave. The other is from CPU master to UFS slave. > This tuple consists of the average and peak bandwidth. > > Signed-off-by: Asutosh Das > --- > .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 12 ++ > drivers/scsi/ufs/ufs-qcom.c | 234 ++++++++++++++++----- > drivers/scsi/ufs/ufs-qcom.h | 20 ++ > 3 files changed, 218 insertions(+), 48 deletions(-) > > diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > index a99ed55..94249ef 100644 > --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > +++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > @@ -45,6 +45,18 @@ Optional properties: > Note: If above properties are not defined it can be assumed that the supply > regulators or clocks are always on. > > +* Following bus parameters are required: > +interconnects > +interconnect-names > +- Please refer to Documentation/devicetree/bindings/interconnect/ > + for more details on the above. > +qcom,msm-bus,name - string describing the bus path > +qcom,msm-bus,num-cases - number of configurations in which ufs can operate in > +qcom,msm-bus,num-paths - number of paths to vote for > +qcom,msm-bus,vectors-KBps - Takes a tuple , (2 tuples for 2 num-paths) > + The number of these entries *must* be same as > + num-cases. I think we can do away with all of the qcom* ones, right? This should be achievable with just interconnects and interconnect-names. Also, is this patch based on a downstream tree? I don't recognize a lot of the context. We'll need a patch that's based on an upstream tree. I'll wait to review the rest of the patch until rev 2, since it's hard to reason about the patch with all the downstream stuff in there. -Evan