Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp151910ybn; Thu, 3 Oct 2019 03:05:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHFWg2wmW4y4wxSWPExqCGYHl14uaUrNjzGIFTM1Rr9AAkdxSjhgG2p0KPhHSmySvsuxC1 X-Received: by 2002:a50:aa96:: with SMTP id q22mr8492456edc.179.1570097138174; Thu, 03 Oct 2019 03:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570097138; cv=none; d=google.com; s=arc-20160816; b=NZUoe3enzcrcUCreCnMDcMeanLG8Vmeojj2polccn2Oir9ZEhk/5H57Pk7oTnutLbL 9Th6ojs69Y4UlGz6kHYGTJGYdnm1r4td5CYQydAXy9pSexLDpSz4VIyn8gEU+bISs8J5 izD/ltNR5YQnMSU4xJKaQfc2zVgkUEFJKDQSOtnlmrPdanid6uMsU/jLHsXmmMbmo5Ck cA2CqvvPDjF9aCAUHo90hqhq1a4hT8DrKPJpK8WfUoZxYDDL9FDFhtkROKLhYqC8p2Ju 7Fdf3MpOcLOGOnncEwYDFutpx1RDAIwAAKdvAKkhS8jlHgkdPPV1LBhi301ZK7+Dl/Ap pXHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UEnce9ZGNK6HT79wNTFM+mDUHPObNI7m7R5zzYTteps=; b=Re7DHe70u1+GIsJFFRYYf0Y5Uv8HzkyfdZVSrElQoF2l5yCRCFNcUx6PlAyWfCqMdx plqHZ70eQ7Z+xcfOtJCGYP54DS+VE/vxgcldKBB4TNDiwmNGWEZ0sTJ4kOREyq+0q0+V i7YcmtyXLcB1verMy/0plSjEoVL/CukyZe15ugSBqJjYXmVOuc2CbO3G3uoghDwhgdun oUS+0PLZdp6kALtOF2zRVAPKBX6hyVc3RsmOdbCzZQCHAnXe0z4YioI8L656rL5xaIYk zorVyjHSZPjTmbSvIMTNm+DY6j/t/eNsZmalwOUIhuVHUeV24Qy0CxL29dC8J8AHsaFn kCGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RZr89Y05; 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 w20si1206633edc.202.2019.10.03.03.05.09; Thu, 03 Oct 2019 03:05:38 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RZr89Y05; 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 S1729529AbfJCKB3 (ORCPT + 99 others); Thu, 3 Oct 2019 06:01:29 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:40626 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729494AbfJCKB2 (ORCPT ); Thu, 3 Oct 2019 06:01:28 -0400 Received: by mail-vs1-f67.google.com with SMTP id v10so1272473vsc.7 for ; Thu, 03 Oct 2019 03:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UEnce9ZGNK6HT79wNTFM+mDUHPObNI7m7R5zzYTteps=; b=RZr89Y05PnQTpfakYuRS2VFrxqrVXe8In69aQiNu7FBFkaV6/6BszMBXhEOB0m69WV qRCqQMqjGX7Ci17VEUSJSW+KVZDdfrbZ8nTOgUqEMwAHA+3CsQuS/HmgJRn8xSoKf6Fk OzXdELyGHM5VMaUI89j2HvE6MwkKS+1V4iEaIWy8WVjA9NXgpY6jNlTO39sGC+PxTEpR 1ZCeCQmfmT95nr4Fq63GngCi9hcH1sqQKcHndyEEMskFEgo/+QP882dV1IFnZpepTtXo jJ+jftk8XSKVFXkOHIdOda/fc68qE6poyi5rHqcZwdWLv7CoIP6Vl3l4+2B7UPSHX1cv Il7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UEnce9ZGNK6HT79wNTFM+mDUHPObNI7m7R5zzYTteps=; b=G/PRKn9LQwtUGkwYynqd5ljKfRoOF8SGlJwfVIWDK0gLqsizcloSqd6QoPRuc1EJmA HTE1UMCPktXW1Sbt8VahkYJ1J2Ov/uk/7Kz7fZPO8RwPX/M3dGf2X7wvVl7WCyezKgld kXfLtbREGpguBvx0wiWjJvqNF37Wp4K/CQr7+E9rEaWlLOrbydC59ehvPdO7QFGV1lqx lWARELh3sZd/zNpH+nKs0RWsrt6mbPqt/jCmOmZX8rRorKA9ni3ii3nZsDKrtXer5Ks1 kQbmPQOhrGwOi90F5S4rKdU3vdm2CW3MXRJIAnRJ9cHp8u4X2udGYw76iBKxzrFI3mkQ Ssow== X-Gm-Message-State: APjAAAUWdoC2+zYf3BIKBehTPmjnjIilKhPPa1DuzQUVpBVOlxv8yBRB wkGKwpjgZHYVRsJkdeCzDsUUciFQt/GyoXIRq73Kzw== X-Received: by 2002:a67:e414:: with SMTP id d20mr4532637vsf.191.1570096887523; Thu, 03 Oct 2019 03:01:27 -0700 (PDT) MIME-Version: 1.0 References: <1567774037-2344-1-git-send-email-ppvk@codeaurora.org> <1567774037-2344-2-git-send-email-ppvk@codeaurora.org> <20190912164532.GA8466@tuxbook-pro> <1b02d465353e12f47b372a7a240f0838@codeaurora.org> In-Reply-To: <1b02d465353e12f47b372a7a240f0838@codeaurora.org> From: Ulf Hansson Date: Thu, 3 Oct 2019 12:00:51 +0200 Message-ID: Subject: Re: [RFC 1/2] mmc: sdhci-msm: Add support for bus bandwidth voting To: ppvk@codeaurora.org Cc: Bjorn Andersson , Adrian Hunter , Rob Herring , Asutosh Das , Veerabhadrarao Badiganti , Sahitya Tummala , Sayali Lokhande , rampraka@codeaurora.org, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , linux-arm-msm , DTML , Subhash Jadavani , Andy Gross , linux-mmc-owner@vger.kernel.org, Georgi Djakov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Sep 2019 at 13:27, wrote: > > On 2019-09-12 22:15, Bjorn Andersson wrote: > > On Fri 06 Sep 05:47 PDT 2019, Pradeep P V K wrote: > > > >> Vote for the MSM bus bandwidth required by SDHC driver > >> based on the clock frequency and bus width of the card. > >> Otherwise,the system clocks may run at minimum clock speed > >> and thus affecting the performance. > >> > >> This change is based on Georgi Djakov [RFC] > >> (https://lkml.org/lkml/2018/10/11/499) > >> > >> Signed-off-by: Sahitya Tummala > >> Signed-off-by: Subhash Jadavani > >> Signed-off-by: Veerabhadrarao Badiganti > >> Signed-off-by: Pradeep P V K > > > > This says that Sahitya wrote the patch, then Subhash handled it, then > > Veerabhadrarao handled it and finally you handled it; but you're at the > > same time listed as author (by From:). > > > > Please see section 12 on Co-Developed-by in submitting-patches.rst > > > Thanks Bjorn, i will update this on my next patch set. > >> --- > >> drivers/mmc/host/sdhci-msm.c | 393 > >> ++++++++++++++++++++++++++++++++++++++++++- > > > > This patch implements support for requesting bandwidth to the register > > space and for the controllers access to DDR. To me this seems like > > common requirements for any mmc controller, can this functionality be > > provided by the mmc/sdhci common code? > > > > Regards, > > Bjorn > > > Yes, this can be provided in common code but the bandwidth calculations > (arbitrated value or average bandwidth and instantaneous value or peak > bandwidth) for bus vote will > consider various parameters like voltage corners, clock domains, clock > plans etc. which may differ from > vendor to vendor and target to target. So, these values should be > updated properly and correctly (considering all the parameters) > if it brings to common area. > > Hence the reason for implementing this in sdhci-msm.c file. > It would be really helpful if you could suggest your insights on where > and how exactly this needs to be > implemented in common code area. > > Hi Ulf and Adrian, > > Can you please also suggest your recommendations on this ? I am not sure where to put it at this point. Perhaps we can just start with making it specific for sdhci-msm, then when new users come into play, we can consider moving it to a common place. [...] Kind regards Uffe