Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6316682ybi; Wed, 29 May 2019 06:12:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKuE2LVPSTIA7walMc3RF5OOAOz9dnb6z3gsboMBOzye/YU2x7NjicbzpX3yQ/mtO9FTyM X-Received: by 2002:a17:90a:35c8:: with SMTP id r66mr12267795pjb.17.1559135538192; Wed, 29 May 2019 06:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559135538; cv=none; d=google.com; s=arc-20160816; b=Z7Baxltebg56ZoDqO+COYntc6QElPJnGpNUkBzEUXQfsB28b6wBr0VaqLZXYZdfGr7 ePpLsWKydZRKpH3XD2/abtXz86y2FX0YgTlpu6dXLfu4XxEEeMM37kfQp7VpZprid5va 1Vdp01+waOTN2BPX1qp1tPfLu3HgO9QoluyYtNrNB44cFET2rFCWSr0+vUk/eAR5L+jC t/kcvAhhYRi905WaBwmmzN47VAuNOMbITDLIIRwZJa2S3ipRPAWJ4zjeb2hlfcU/XWaa xqcLi2bMHiCEAfdE6enBHMxA5Qf9AWf2Spc7Gduo2L5LraYQh4piGIgMLDh1qn+WYsFa yXsg== 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=/CpNHaur0JCUznHHnGtOPfrzDeuaNPXaSbiFGzeqYeo=; b=JN7kS04xgC49isv1mPlECsLdyYVFoT3olZM971n38mi2CRlmvNHeXX00euCJpZcB88 Gu0Rh3BWVbVI3a0usFuGzElYJ6QJqm6VgFB9DjjornSii9zY8dd4cTJAn0X4W4hmZ/RN SdZnX1Fp0LaXEC6GNcMz2a9oYaDK3hhq8W4L6XgwC0dnHHogXenPDfQ/gv4nBkPcpekD USiNNwEPfHr2hA4BTVc2EpLi+ZFAIBapqemjJUe+EnCXnenqgasyF3ZYqwiuRTDvkAuC iCnYHac+l4e9tIlqZL0oohjQgc6WENy6hoaQsnzof6+L4eKSvISSKlBu6ABH2XktG9hJ ZkwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fiyYUhzi; 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 a10si26667252pla.60.2019.05.29.06.12.01; Wed, 29 May 2019 06:12:18 -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=fiyYUhzi; 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 S1727192AbfE2NI1 (ORCPT + 99 others); Wed, 29 May 2019 09:08:27 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35612 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfE2NI1 (ORCPT ); Wed, 29 May 2019 09:08:27 -0400 Received: by mail-lf1-f66.google.com with SMTP id a25so2028329lfg.2 for ; Wed, 29 May 2019 06:08:25 -0700 (PDT) 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=/CpNHaur0JCUznHHnGtOPfrzDeuaNPXaSbiFGzeqYeo=; b=fiyYUhziklgcsU+tFUNEJYtehLkQLk60ClGKolnp8dHjqZza7Aay/Xi65RUu/nfuH1 AzFkAM6/uUsN1bwEQl1oO1gz0JoYIZAFJZqSA+nKyUWBYiprdkuMVTx7c2e+Ogx4+TFR lGH4AvVI2HpBl3MVu7tZlEyc/5VSIRrwT0MWJG4ejvlWW8mklrYTJ7tivwXPOWYlcM5E rUXN7oJhvklu/0UH1Fg+c1cHNMJSeGNO+SPHM1yZdsEEYcyj2/rq9DipmF7S8Y/I5RvY jD7tK96MaYKx3Vd6wxzoydzb90hWQlLxghVTVtPVtBgn4+59fhLM9iFRYPs+tBdDziG9 +oJg== 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=/CpNHaur0JCUznHHnGtOPfrzDeuaNPXaSbiFGzeqYeo=; b=m6ch+Ij3eKJxTyVKMQZ5Mow+aBiBk2zyzKmnjR3RTdHz6eQEpaSqpg5L9l/xHGRBy7 /DC/coKRgdzSBqWm6Vt/r6pa/E4R+M1b6yf3oQzjchS344oMF/9RTV/nDMsl1qSife1n GGrgYnHt229xjipY/RDAHryzgUu+8Rj9/dDmJl6TwDJZs2G+MjOqDFMkzttW5uh1SCS7 9OaRizpiXfVQbEA4Nj+7/fhKcbcOCNaY2lvdYZOLn9swM+Xff0ytp9y9GI6Pst/FWdsp 0G5zdfFPXv0Nk7CWw6J0fvKV7TvIkSyHzqQN2tBpT9ZF0UMsiY3unlpdUB2Qbcz06fdG cUfQ== X-Gm-Message-State: APjAAAVzN6AfX3mTbivyQYHOS2dh9tT7qFuZX/qY1c6sXeGPH1Qog8Rx 8mpgFzMKGC12JeiJOTSMhkutq3iPLpo= X-Received: by 2002:ac2:4c3c:: with SMTP id u28mr11156310lfq.136.1559135304341; Wed, 29 May 2019 06:08:24 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id z24sm3471962lfh.63.2019.05.29.06.08.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 06:08:23 -0700 (PDT) Subject: Re: [PATCH 5/5] drm/msm/mdp5: Use the interconnect API To: Rob Clark , dri-devel@lists.freedesktop.org Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20190508204219.31687-1-robdclark@gmail.com> <20190508204219.31687-6-robdclark@gmail.com> 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+ERn8uytPyg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ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <73ae9093-1348-b092-80f2-09c0d3d90975@linaro.org> Date: Wed, 29 May 2019 16:08:16 +0300 MIME-Version: 1.0 In-Reply-To: <20190508204219.31687-6-robdclark@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/8/19 23:42, Rob Clark wrote: > From: Georgi Djakov > Let's put some text in the commit message: The interconnect API provides an interface for consumer drivers to express their bandwidth needs in the SoC. This data is aggregated and the on-chip interconnect hardware is configured to the most appropriate power/performance profile. Use the API to configure the interconnects and request bandwidth between DDR and the display hardware (MDP port(s) and rotator downscaler). > Signed-off-by: Georgi Djakov > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > index 97179bec8902..54d2b4c2b09f 100644 > --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > @@ -16,6 +16,7 @@ > * this program. If not, see . > */ > > +#include > #include > > #include "msm_drv.h" > @@ -1050,6 +1051,19 @@ static const struct component_ops mdp5_ops = { > > static int mdp5_dev_probe(struct platform_device *pdev) > { > + struct icc_path *path0 = of_icc_get(&pdev->dev, "port0"); > + struct icc_path *path1 = of_icc_get(&pdev->dev, "port1"); > + struct icc_path *path_rot = of_icc_get(&pdev->dev, "rotator"); It would be better change just the names to "mdp0-mem', "mdp1-mem", "rotator-mem" for consistency and denote that the path target is the DDR memory. > + > + if (IS_ERR(path0)) > + return PTR_ERR(path0); > + icc_set_bw(path0, 0, MBps_to_icc(6400)); > + > + if (!IS_ERR(path1)) > + icc_set_bw(path1, 0, MBps_to_icc(6400)); > + if (!IS_ERR(path_rot)) > + icc_set_bw(path_rot, 0, MBps_to_icc(6400)); > + > DBG(""); > return component_add(&pdev->dev, &mdp5_ops); > } > Thanks, Georgi