Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp298086imu; Fri, 25 Jan 2019 02:30:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7RJe4dOG5h4CgS7cNsPzumTqXQbEQpZe76z/IWzlA3u0+pWIXRsBsWCGGnLwSUkP61ndTY X-Received: by 2002:a17:902:2887:: with SMTP id f7mr10197758plb.176.1548412221390; Fri, 25 Jan 2019 02:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548412221; cv=none; d=google.com; s=arc-20160816; b=ofeJTFRuCDQlqrknqSBKeOuG8iWoSIgWqoNl2ji8Hq5RXTqALl+YikRQJpGHJmUW1B V7dgxF0Mpq9FXly/MzMF21F6Vzlu3VBB08TFkQUAymbxgArtwcHiLndPTx01N0c+wU3X +X3NlTS0ekAvyXXuc/WLSdGS2M3skUqt4LOvyTf3HaCJHV6E9TsCEu8vPmi1YnjLa+iX l0VULeu6f/NlXgCrmwLNVpWgJYLimxWzQcO7UXfKFu8RcwQNzWwfzJBjgU3KEQZ5sTiW iVOvtjpO4om0h4BzoV+dr1FEtGLxB95MWzdgcsGYtIwhANvDwPWZ7stD1aq5sfj3uyP3 hVAQ== 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:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=QxZcMX6GShTPVxM4ZIkaQgCwQjizuDUIYAPBkkgpBak=; b=yCkhMjp5+Bbz4PYkTrMozE0+0oSOyt9E4KGLMc7Zq/4EkBbmpCOvHp7Fhgxv2R9Yg0 7A4ftMe19dI3hBxI4MoQygIUKcSqM4/hs7FifQyuYnG+tZd+gInl/6MLctfwrfyA0SQa DPJaTWV93CD75KAVe45ZAowAJ8OJcex9UfcKZcFMbpyFJURkdk4c3HGni48qkiEiK6KP 9Xzn4K+21cg4MXF2EmhMsndaT+Lz03TtruiPxgYt8iHs+sjmf/+ZVv4jZa8uqvW7mJmv PhpMcb1zeYT2d8c4qxIEdV43wQ6KSdbc9t719MZjBJkzIhdzvbi0ga082kX5TYFWHdyz n0Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bkPZGs9f; dkim=pass header.i=@codeaurora.org header.s=default header.b=nlE0escy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si24188484pgj.558.2019.01.25.02.30.05; Fri, 25 Jan 2019 02:30:21 -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=@codeaurora.org header.s=default header.b=bkPZGs9f; dkim=pass header.i=@codeaurora.org header.s=default header.b=nlE0escy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbfAYK3t (ORCPT + 99 others); Fri, 25 Jan 2019 05:29:49 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:54046 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbfAYK3t (ORCPT ); Fri, 25 Jan 2019 05:29:49 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0C3F060A0B; Fri, 25 Jan 2019 10:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548412187; bh=PQaYrUFZAHKz1vrVDA57hYhHvabSkoqounE2/SZTlRM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=bkPZGs9fpiFSTnSybnY0/PRY1HyALORntmglTFAKVD2HMpc0FHEJ/0xOqEI0TkC40 l2hcTgpyuyTZkImXTf9ohK0KBaooAh8bMrmb6Im100Kl8vnQiLp5uVo1aHQ6sb72xo /6fiB5UhtXvIikfsJcbA3uG764WfD/kK2yasSLcU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.206.24.30] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asutoshd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4002C608D2; Fri, 25 Jan 2019 10:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548412183; bh=PQaYrUFZAHKz1vrVDA57hYhHvabSkoqounE2/SZTlRM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=nlE0escyiwfZCN8ZhowS2RGwUm/3z9UaZNjAb0MVWAR9yKzDYRs8D4YvJPneV/9g7 4mjww2Lrko1pW710UzDq7TN0gU563AVCB97Bgos+MlC5uGr7RxID6i+qj+NLGPlSFi EOBNQypZKi53bHlUkI3Z9eVKCCl3ju9kgZQOEJh8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4002C608D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=asutoshd@codeaurora.org Subject: Re: [ 1/1] scsi: qcom-ufs: Add support for bus voting using ICB framework To: Evan Green 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 References: From: "Asutosh Das (asd)" Message-ID: <926d2232-67f2-bd3a-ab79-87bbca3a1add@codeaurora.org> Date: Fri, 25 Jan 2019 15:59:37 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 On 1/24/2019 10:22 PM, Evan Green wrote: > 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. Let me give that a bit more thought - though I'm not sure how that'd work. > > 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. This was developed on the internal Chrome AU and ported to ufs-next. Let me check internally on this anyway. > > 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 > Hi Evan - thanks for the comments. -asd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project