Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1196844ybe; Fri, 6 Sep 2019 13:28:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1fCPFYzpdYHYTCE2fBG6ftTntRI0KMXfH06TeUERDfPF7k9Sg2AzVFFG0ITAusX5Jf4jX X-Received: by 2002:a65:6795:: with SMTP id e21mr9529502pgr.428.1567801720200; Fri, 06 Sep 2019 13:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567801720; cv=none; d=google.com; s=arc-20160816; b=RalQnkSMdpardSgpzso0LA4BeGxqC+yFFIexZWJh7JIxfxp3QN9UPCAgPqF+/tCUXD i4DHTu1El1wpBHVR0u+QFV5oikdSXWhdsm/sIrh01Lu+LRrOFZfkahI6weP5PGKQeP8L kps5JScKPKx2Wm53IQddkIsVvhGE5XqiysSlGk0oP0TW03Vjsy8POodIsO4AtJKAJQaa hlerxbn8NwPG178oawlCUYUhkb3qSECbJbc9xwmZhR/3UHspSSZQ0nT7DwHqcQODTcS3 c1OvdIdgI9kfO3nzHRRpvJWVvOI3OM7qjdgo2p2D05vYXCbLdnPBB/a7W122Lzw6y1aT Y/0A== 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; bh=pVhJcJPoNMFh3YeOU9OyTi7x89eSMwR6a9vW6xSQKIU=; b=zINqs1erXxl3LvAooniiSEJBeyLMhmc9QkcuSYgPFv/eiEjKRfsNLNdA86h8egOlMm wH746RI3Jz89I8V1YXJjXl7O6wBxkgRB9zPwplu56WGOvW2sEvEw7w2U48G6F4cdZXN7 XhG+CF9RoTkxnhEK9DHd986GSLsLlsk7N4HApE18gvpLm9BD0dkLud0q/dAUd2ZrMsmy hhgKQkPSpDqNTGMrhMRzPhLlL4e/rrh9L3UCMB4piXFzrMDxM7bHtRE81FqYoVY96uvg OkBNsewyUyNz/Si2S1d1ZqUbWe6narZOpmDYVgK2xDcRkdFOd35/8nqZhh9bo6iq6+pU OovA== 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 w10si5279348pgr.212.2019.09.06.13.27.54; Fri, 06 Sep 2019 13:28:40 -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; 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 S2404806AbfIFMyD (ORCPT + 99 others); Fri, 6 Sep 2019 08:54:03 -0400 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:32287 "EHLO alexa-out-blr.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732774AbfIFMyC (ORCPT ); Fri, 6 Sep 2019 08:54:02 -0400 X-Greylist: delayed 368 seconds by postgrey-1.27 at vger.kernel.org; Fri, 06 Sep 2019 08:54:00 EDT Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by alexa-out-blr.qualcomm.com with ESMTP/TLS/AES256-SHA; 06 Sep 2019 18:17:50 +0530 Received: from c-ppvk-linux.qualcomm.com ([10.206.24.34]) by ironmsg02-blr.qualcomm.com with ESMTP; 06 Sep 2019 18:17:28 +0530 Received: by c-ppvk-linux.qualcomm.com (Postfix, from userid 2304101) id C1811473A; Fri, 6 Sep 2019 18:17:27 +0530 (IST) From: Pradeep P V K To: adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org Cc: asutoshd@codeaurora.org, vbadigan@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, rampraka@codeaurora.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Pradeep P V K Subject: [RFC 0/2] Add Support for SDHC bus bandwidth voting Date: Fri, 6 Sep 2019 18:17:15 +0530 Message-Id: <1567774037-2344-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) Pradeep P V K (2): mmc: sdhci-msm: Add support for bus bandwidth voting dt-bindings: mmc: sdhci-msm: Add Bus BW vote supported strings .../devicetree/bindings/mmc/sdhci-msm.txt | 32 ++ drivers/mmc/host/sdhci-msm.c | 393 ++++++++++++++++++++- 2 files changed, 422 insertions(+), 3 deletions(-) -- 1.9.1