Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2537079ybx; Fri, 8 Nov 2019 05:48:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxYc9vOOT+b5pyYgttOmRaGAPC7jQ213nL06oVRHAlT/mfMUdhQVrHecqLpM5vOiwKV6bcF X-Received: by 2002:a17:906:53cc:: with SMTP id p12mr8817772ejo.52.1573220889676; Fri, 08 Nov 2019 05:48:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573220889; cv=none; d=google.com; s=arc-20160816; b=aXcy9/ntLxbnIdEwHEUMEve9rU4yyElbvx9hO/xI3/9elyVZVLhSTgk6pKVpkcSmqP X3+Qx7SgI72TkhpvGVEZRUoD/vv8i82WzTi3wSK1/B1/nSes91M7iB8x31LCPbIixhvR w7kNUblpfj8WUfCrguua5hyMKL27UmfatBpv5zaM9Y13pelIFBJEsy+iA3PnSfjy+TsQ 974O9s3q1uWozfoMiLUbUEDgSYZWYi6UN2K8zah6OnxfkkwBWAmz3LYSBbB1wiGLka4A 0wvyygKj+v/a4leMyBqqugICY443me0d+zeXVvoT/czEzTNU1Z/4uxF0wqLMayeIdnkc ym2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr; bh=8WxA90qIL5uYyb7WINy+TSgSANgx6jFapvcMR0tRrlE=; b=fUJ/5FItjmjk0YFH+gVzK/wAZE2EQaPvtechAGAiStIi0kBoELdPIoWy5EWjTPLwp9 W9ubEBfLu5nHTA314GT8VXhhb9/DPxdWeUHtRPZmEMKKpTk/VgknxiuqMTIT6j6Xo2Kx 0vOtqE6jnA1zY4/TWuRtKydZ16VNVhN36PRQcvH4YexqyjgBmYngWO3xLI36YyrnrSZd Kh0imdxkw5BitrsFM/m2CPb6KG5Bfr6EYaY52o6xp5P5X+XBphPoLpFPwUva739sM8kJ uYfjwD1kFkvAdHQojdlEbu7Y4k7bFZrArK/PQ7TOylM0PpxedeOJy9vRpbRGO3omfTE9 En4A== ARC-Authentication-Results: i=1; mx.google.com; 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 n4si3737413ejy.426.2019.11.08.05.47.46; Fri, 08 Nov 2019 05:48:09 -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; 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 S1727700AbfKHNpj (ORCPT + 99 others); Fri, 8 Nov 2019 08:45:39 -0500 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:58971 "EHLO alexa-out-blr-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfKHNpi (ORCPT ); Fri, 8 Nov 2019 08:45:38 -0500 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by alexa-out-blr-02.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Nov 2019 19:09:24 +0530 IronPort-SDR: /dWwmR7yT4WPqU0ZJdl9Bkgn1+ARTLzU8YFofnkUToUpDd8pvnMoBF9kWJQNo+3/WeTDy4Amg0 DAAHDoqTLUtLFymohXXVondDWDmRlKTev7LE7Oqp82lhz6/21IPkj6ImeSlxTwLHMTzcdYGwA5 l3lRJ4Yamw/XJKxlFOqTTtgj2PzSOD/jv95lDs6d2la7nSETWcYFS4usjU1w82UYOofFo1Fbwe oQYM+SUyZSG0Y5AebSpTm1h3FMCcEARLakoVZF/7aLkPnL/PzmZAvHpSUr+Ms8pPzrrt3UJcsY MYHbN0e14eQcLPvHjl4Yq+RZ Received: from c-ppvk-linux.qualcomm.com ([10.206.24.34]) by ironmsg01-blr.qualcomm.com with ESMTP; 08 Nov 2019 19:08:54 +0530 Received: by c-ppvk-linux.qualcomm.com (Postfix, from userid 2304101) id 83C5F4949; Fri, 8 Nov 2019 19:08:53 +0530 (IST) From: Pradeep P V K To: adrian.hunter@intel.com, georgi.djakov@linaro.org, robh+dt@kernel.org, ulf.hansson@linaro.org, asutoshd@codeaurora.org, vbadigan@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, rampraka@codeaurora.org, sboyd@kernel.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, linux-mmc-owner@vger.kernel.org, Pradeep P V K Subject: [RFC-v2 0/2] Add Support for SDHC bus bandwidth voting Date: Fri, 8 Nov 2019 19:08:37 +0530 Message-Id: <1573220319-4287-1-git-send-email-ppvk@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vote for the MSM bus bandwidth required by SDHC driver based on the clock speed and bus width of the card. Otherwise, the system clocks may run at minimum clock speed and thus affecting the performance. 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 SDHC master to BIMC slave. The other is from CPU master to SDHC slave. This tuple consists of the average and peak bandwidth. This change is based on Georgi Djakov [RFC] (https://lkml.org/lkml/2018/10/11/499) --- changed since v1: * Addressed all the Review comments. * Minor code rebasing. Pradeep P V K (2): dt-bindings: mmc: sdhci-msm: Add Bus BW vote supported strings mmc: sdhci-msm: Add support for bus bandwidth voting .../devicetree/bindings/mmc/sdhci-msm.txt | 32 ++ drivers/mmc/host/sdhci-msm.c | 366 ++++++++++++++++++++- 2 files changed, 395 insertions(+), 3 deletions(-) -- 1.9.1