Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3597140imu; Mon, 28 Jan 2019 07:35:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN5PkYUInI9dzq1aOW4Pa8UZMHfVoM1fEHRNtvmk3yHOoTTG6YN02fIC6utvm4GXNGqxQSKp X-Received: by 2002:a63:f141:: with SMTP id o1mr20488642pgk.134.1548689720397; Mon, 28 Jan 2019 07:35:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548689720; cv=none; d=google.com; s=arc-20160816; b=03u1rNRGhfI7DfRt+PR37EGUkh5v8vttxKMOgKJnnjIqu33+t29SmkZekDN0CWF9zA zyPQE74ZeZHcXpxzlSNVazbE/uJjHyZGj+H7XxLwRVxe5hpBEhkvtDJJ89AbLgttrnHW VqmvpoFNhbAQAzrYD6LO28tMdxEN83+uVGcjllAnRvaacEBW8TDSzfVDRiad50Tiv7fy cT4UzeywJPtoZiji0LL64K878SHBPrD98bztIXt4LhLCfD1tLd+/oKPaB0H8DuUQVKqD cZipIM7v7IdVic9VNqwWRgUFlGQehvIm/TQSA2pvFem5ygkTvGvogT8ZDxy6a+GY3YQD dBbg== 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:from:references:cc:to:subject:dkim-signature; bh=ojsiZaqa9xTbU1uIH35HdiJgN+gf+woNQQLJ2Ygg4gs=; b=loL9ud86b32XzxkgEAMHGk/D908Kp4SpSX3gxk0wM8wsIYauCzylmnani03Hw4rgkw fbNnLSuiZG3sL10kbLq/+4x+jt/nAX//Wk283uqmZRS+rGugN4gzwRrZDfvEtRYQXALI Z/Gg3j6mKH8aELtymBZiKjxky1wWjPAQXX0LML0FuzJGdZ1H+1Pvc44pM0Zz1azOaNBl B+MVrW1UfdbYLbc1cZmH8Aag+bp+lXrlacBZh8o7j9sNbzEs9A4a1yEfDly2kXMfM6fT zVzcO1cy9E0RVKtUY4V2WSzjVw7UAWcvL4MYfNb028Kb3YW7dYyzre/2s7yw/F9h5inM vk8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iUojEVs/"; 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 g5si26443851plt.273.2019.01.28.07.35.04; Mon, 28 Jan 2019 07:35:20 -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="iUojEVs/"; 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 S1726848AbfA1PeQ (ORCPT + 99 others); Mon, 28 Jan 2019 10:34:16 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39543 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbfA1PeP (ORCPT ); Mon, 28 Jan 2019 10:34:15 -0500 Received: by mail-wr1-f66.google.com with SMTP id t27so18531574wra.6 for ; Mon, 28 Jan 2019 07:34:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ojsiZaqa9xTbU1uIH35HdiJgN+gf+woNQQLJ2Ygg4gs=; b=iUojEVs/xOA4v8qrWLdjrKBOAUb1ni5VT4ramcr9ZGOj5gXwlppElHpxRqJyXnqAaa 2GjuPCeihZHJrqhf7fvYkbk9wKzLICneW9Ak+Y4ce0F2hNnNNmGYjtH7kaBpUDacvr45 45weEbiGKqOAKFQGH8vvEeNpyM5jvjmpPhzIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ojsiZaqa9xTbU1uIH35HdiJgN+gf+woNQQLJ2Ygg4gs=; b=NZjlo1VfYCyH1Uv9yXSMzLrNJFlxJTVXhRkboTv33DBQdZfJHym3R+IQvBhYYky8Ja mb3MxnRz91jS2bk6xqjvi7228qL+6Wsr3gO6fSnoIOuXBDOiYv7GEtx4012x+Hj+gwh3 thsV4hQClp9j73zIj+vV0kj4/Zq0hsEIEC+DBR8/9P0942fwpoejk/8VMFeaIfi+B+us izMudHo6YISK8ePvnYHde8YdinU8a13GnvfYdiFy5IPWmi0qsHFmIidPUYpql6ON9P2R NjnXQH+WHmlX84jgtBr6ViPKd+s4PVPQtXkdf3p9mvTHLfprZFpBX8W2mKjhPBV4D3+M WK+Q== X-Gm-Message-State: AJcUukeKSk/bLVSvmQ3nLdzm/1tB3FbB7dXtu3XgWDALdyxhSRjyfZcR Rm05KNmLnjOiMGXjW0zCN6nNF5zWIxs= X-Received: by 2002:a5d:68c3:: with SMTP id p3mr22791922wrw.34.1548689652422; Mon, 28 Jan 2019 07:34:12 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id h10sm68088929wmf.44.2019.01.28.07.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 07:34:11 -0800 (PST) Subject: Re: [ 1/1] scsi: qcom-ufs: Add support for bus voting using ICB framework To: "Asutosh Das (asd)" , subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <4f58c58a-aeb6-6cad-96ac-43f6843715ce@codeaurora.org> From: Georgi Djakov 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 f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprkc0jOHotV/6oJ mj9h95Ouvbq5TDHx+ERn8uytPygDBR67kNHs18LkvrEex/Z1cQARAQABtChHZW9yZ2kgRGph a292IDxnZW9yZ2kuZGpha292QGxpbmFyby5vcmc+iQI+BBMBA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6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <264ad328-a0d0-9e78-f7ae-bdc084bab38f@linaro.org> Date: Mon, 28 Jan 2019 17:34:09 +0200 MIME-Version: 1.0 In-Reply-To: <4f58c58a-aeb6-6cad-96ac-43f6843715ce@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Asutosh, On 1/25/19 12:27, Asutosh Das (asd) wrote: > On 1/24/2019 5:16 PM, Georgi Djakov wrote: [..]>>> 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 >> >> Is the above really required? Are the interconnect bandwidth requests >> required to enable something critical to UFS functionality? >> Would UFS still work without any bandwidth scaling, although for example >> slower? Could you please clarify. > Yes - UFS will still work without any bandwidth scaling - but the > performance would be terrible. Ok, thanks for clarifying! Then the properties should be optional. Maybe we can also mention in the commit text how much the performance would improve with this patch. >> >>> +- 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. >> >> DT bindings should be submitted as a separate patch. Anyway, people >> frown upon putting configuration data in DT. Could we put this data into >> the driver as a static table instead of DT? Also maybe use ab/pb for >> average/peak bandwidth. > The ab/ib value change depending on the target - that's the reasoning > for putting it in dts file. However, I'm open to ideas as to how else to > handle this. As Evan already suggested, it would be best if we can calculate the bandwidth. Can we do that based on the number of lanes, clock rate and ufs standard version? If calculating is really not possible and we have strong arguments for that, we could add a more specific compatible DT string - for example qcom,sdm845-ufshc and use per SoC bandwidth tables. Thanks, Georgi