Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2336083ybh; Fri, 24 Jul 2020 10:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsRKa0mFZIs0V6kE6mpX1TsPTAHGhvU40sNrylJiqWVGC9tKMVNNe5GRxYyVxm90n7TdLf X-Received: by 2002:a17:906:1f08:: with SMTP id w8mr322981ejj.535.1595610650896; Fri, 24 Jul 2020 10:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595610650; cv=none; d=google.com; s=arc-20160816; b=uM/hRiT7YznMa+mCdm5MEnn+0Lx06zrbkZPjlTmTXsG7Za9GcES2uF6qjJqQTmRzy0 b7bDru28X8MXuvaCvUCk8YmeKeYv8sI6nVccwQw6y9WA/jO9gTDO0eWJ+7Id4YD+mpio 0tZEhjAgizuMcYaOkCCq57wd4gOjeFUKkcp57Y4Gvo6fI/2liyU72y9AM2wWqAecCrD+ DuIk8eIqdlU6LopDH8ybUlPSdBPZ1KRa3nuwdQhJ/NYYF816rFm0k/vZb7BfpxvLSrC2 zc3DCI1q/UsmpWeLkyS4dd19Hv1NxN4vUtHixhruEeWKi32R5TRlWVU0GNby3j3enElq 31Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qkAaFjery3QjJ83jfEJ0MJlBn4m3y6EVIy2ZbJLV8bU=; b=aOtEw3BXTMdv4rA8dZND3gSHSafHVKyJrn6jDO4UkqAPQ1+QYui6EVAMb2eifId1nE wV+APzlPh7jEfcfBUbbE3viXxGIQGfW5zJUY+WR0IfTQ98dHDQM0trjo1hWWSSTahZd3 EmRAfMRACW/AGVq6ej0xGj4AsjytoShHNC66u1c/rf69jgaDqRjkLhLHdHsRhw2jvdP4 /UoE7AiFF7do/7fGcuFN3o7Ou/oS+ww7rUjwonoKb/5h1MTkYDTk+sEQPMj4I5Ankgi/ iwj17lZQFbTVYU6OxnEoASS7izPFGMaWho8zq+modcU99ooDVlQ1tuWqbOp3lbVYKdiX VIJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="kuy4/sNc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f25si829878edy.565.2020.07.24.10.10.27; Fri, 24 Jul 2020 10:10:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="kuy4/sNc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726764AbgGXRKW (ORCPT + 99 others); Fri, 24 Jul 2020 13:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbgGXRKV (ORCPT ); Fri, 24 Jul 2020 13:10:21 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94DBDC0619E4 for ; Fri, 24 Jul 2020 10:10:21 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id l63so5596382pge.12 for ; Fri, 24 Jul 2020 10:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qkAaFjery3QjJ83jfEJ0MJlBn4m3y6EVIy2ZbJLV8bU=; b=kuy4/sNcdDcQ202jEjqBuGOnLzo0pbV5eJseYDLyUGSWZ8ex6s9jqe0ekBtgjg6ljJ 7PTWh+d687iUKNUgu6iPFMx78M8I0pYjZBP/8ZLz+DB+7k9ZMhN4yaX5XA/O/Sdo5iMP p05otZD7eM5+ZLXdt3oma4VUUiuuVuZZzYjV8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qkAaFjery3QjJ83jfEJ0MJlBn4m3y6EVIy2ZbJLV8bU=; b=tw3+R0ajJMCTlwu1g8qavUj95V5+fHLYTc+XWzGwX3nwNKc0DJmH0q6Xf404/lUQCt tPukCp0dJRvBQFJvcYvx+ecKbkTn3T6KlSmZJmDKsj5tFXdIkLuU1mHE/g4O19wC9lpR bKO38Y+ALHHqWsJ1fVg1eMaHzB6k/Tx2eXBJyE7TZowVSQcuGWwtzt5S/WhijvbQmsFS +kSVApS+mzXk8PvdUg0Cvz0BMGQkSMGkY6PlJdbkIWmJSpTdqLTR1Y7Z2dPsFcrQ7tW+ /lKlifAb+g7F5bbSUztXwzszZQ8Ac++ts8SulbZQqIpJDKrWp/KQ0NZPG2eNFQUgzh+l S3AA== X-Gm-Message-State: AOAM530JwmYUiRKuM/UJxmhvb21b6EFrgrpwjKV+vQRhZk7vMxP0TZ0f dyfPuJ/r+a0o5OnQVr7LBhmxaQ== X-Received: by 2002:a63:7c5:: with SMTP id 188mr9653775pgh.48.1595610621095; Fri, 24 Jul 2020 10:10:21 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id m17sm7265223pfo.182.2020.07.24.10.10.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jul 2020 10:10:19 -0700 (PDT) Date: Fri, 24 Jul 2020 10:10:18 -0700 From: Matthias Kaehlcke To: Shaik Sajida Bhanu Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, rnayak@codeaurora.org, Pradeep P V K Subject: Re: [PATCH V2] arm64: dts: qcom: sc7180: Add bandwidth votes for eMMC and SDcard Message-ID: <20200724171018.GZ3191083@google.com> References: <1595328381-29552-1-git-send-email-sbhanu@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1595328381-29552-1-git-send-email-sbhanu@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shaik, On Tue, Jul 21, 2020 at 04:16:21PM +0530, Shaik Sajida Bhanu wrote: > From: Pradeep P V K > > Add the bandwidth domain supporting performance state and > the corresponding OPP tables for the sdhc device on sc7180. > > Signed-off-by: Pradeep P V K > Signed-off-by: Shaik Sajida Bhanu > --- > > Changes since V1: > - Incorporated review comments by Bjorn Andersson. > --- > arch/arm64/boot/dts/qcom/sc7180.dtsi | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > index 68f9894..d78a066 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > @@ -684,6 +684,9 @@ > clocks = <&gcc GCC_SDCC1_APPS_CLK>, > <&gcc GCC_SDCC1_AHB_CLK>; > clock-names = "core", "iface"; > + interconnects = <&aggre1_noc MASTER_EMMC &mc_virt SLAVE_EBI1>, > + <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_EMMC_CFG>; > + interconnect-names = "sdhc-ddr","cpu-sdhc"; > power-domains = <&rpmhpd SC7180_CX>; > operating-points-v2 = <&sdhc1_opp_table>; > > @@ -704,11 +707,15 @@ > opp-100000000 { > opp-hz = /bits/ 64 <100000000>; > required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <100000 100000>; > + opp-avg-kBps = <100000 50000>; > }; > > opp-384000000 { > opp-hz = /bits/ 64 <384000000>; > required-opps = <&rpmhpd_opp_svs_l1>; > + opp-peak-kBps = <600000 900000>; > + opp-avg-kBps = <261438 300000>; > }; > }; > }; > @@ -2476,6 +2483,10 @@ > clocks = <&gcc GCC_SDCC2_APPS_CLK>, > <&gcc GCC_SDCC2_AHB_CLK>; > clock-names = "core", "iface"; > + > + interconnects = <&aggre1_noc MASTER_SDCC_2 &mc_virt SLAVE_EBI1>, > + <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_SDCC_2>; > + interconnect-names = "sdhc-ddr","cpu-sdhc"; > power-domains = <&rpmhpd SC7180_CX>; > operating-points-v2 = <&sdhc2_opp_table>; > > @@ -2489,11 +2500,15 @@ > opp-100000000 { > opp-hz = /bits/ 64 <100000000>; > required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <160000 100000>; > + opp-avg-kBps = <80000 50000>; > }; > > opp-202000000 { > opp-hz = /bits/ 64 <202000000>; > required-opps = <&rpmhpd_opp_svs_l1>; > + opp-peak-kBps = <200000 120000>; > + opp-avg-kBps = <100000 60000>; > }; > }; > }; Does the sdhci-msm driver actually have BW scaling support at this point? There is commit 4ece9795be56 ("mmc: sdhci-msm: Add interconnect bandwidth scaling support"), whose commit message says "make sure interconnect driver is ready before handling interconnect scaling.". I haven't seen any patch adding the scaling support (supposedly by adding dev_pm_opp_set_bw() calls?). Did I miss it? If not it seems it would make sense to post it in a series together with this patch, as far as I can tell this patch alone does nothing in practical terms. grep sdhc /sys/kernel/debug/interconnect/interconnect_summary 8804000.sdhci 0 0 0 7c4000.sdhci 0 0 0 7c4000.sdhci 0 0 0 8804000.sdhci 0 0 0 ...