Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5437536yba; Mon, 13 May 2019 10:48:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9DX48gYW+GWWgJL8f1dFsP+xLQyjZdbmVMfBZMWVqMcIqh2ppIaQuO/5fp0to4j+SW7sH X-Received: by 2002:a62:aa15:: with SMTP id e21mr35241286pff.140.1557769731508; Mon, 13 May 2019 10:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557769731; cv=none; d=google.com; s=arc-20160816; b=hBsP0sBcP9gUJWt1IotbcsRbJm3OOtGstudp6a1p/pRI9ielamCUtnOTK/x57WhL2l ffgleDz3UhG1+UtYzRSZq8C8hl+NUaW+JL9BUZcIv4siKLQqt31iKOzrUcW++TMBCMBC gDO/UH6Tbs00AFUVql4MDXIupLe/O0JY7Qbmqo90WAA2wHHqU1UltlYc/a5mZShFvGqB V2ZeCS2RSudYVTWZhY6rvbqH8gpgUjjmphtwmqghd0W+EG6MA9Y405lVmEQ1LoEPf9PW /vqPlDNy/zT8o4Zw+O6qBJ2e6/zPCvGz1WFRY8AGvQ0+Yq3ud9OM9hCjAEzW7Kd5WgKJ wAww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f57f9CrkLHcFePwjN3FU4Rm5r4Irtea70kxXmHOLUco=; b=oCwQC5p8DyNG2LO80waIKigLMs2YzYzMqUtQQ97a2JAvniQ+fFE/MyrFTdFt6xCJJ7 u6B7Zvih9oHB5ztbGIrqeof/0VKULjH7iRrMOhERhKnzy7L46noXT9ZbXhDsrodGT2GE hWvuYxNMM5JWGcziDVBNoBfH9QY0bTljkwL45OM1QdJF0+M+i3TMVLRCRSubmhOqab1N U6uGGMTa1hXD+RPoMAYY4z26RQYhUrHh5Xkw2/XdSIy+DncQxrD/MFBaB5Q0SjnspNb9 l00JU3exnHiMpAGfOTtEeG7wL4nDv0NliqoKxOl4XwlcUg7yJEZLBvgGPOpWjecwWmdi ZVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=eNRYCOI4; 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 v10si18178779pgj.576.2019.05.13.10.48.35; Mon, 13 May 2019 10:48:51 -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=@poorly.run header.s=google header.b=eNRYCOI4; 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 S1730935AbfEMOt2 (ORCPT + 99 others); Mon, 13 May 2019 10:49:28 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45010 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728280AbfEMOt2 (ORCPT ); Mon, 13 May 2019 10:49:28 -0400 Received: by mail-qt1-f193.google.com with SMTP id f24so10607947qtk.11 for ; Mon, 13 May 2019 07:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=f57f9CrkLHcFePwjN3FU4Rm5r4Irtea70kxXmHOLUco=; b=eNRYCOI4Cpe7VbMGN3Mij1vUAro3bwftdHrWDAXGJjKa4FxsC20E1IR4yp7rfJaHgU NFr4NGb/l8gYtiWC5t8U/QmKwQkIJoFMioynbUv5GiZA2XPvw4SPpiFgyXeCpt8+F+lc HQb53Xpc7qcpSry382HT166WeDmlRPNZLhytbJcbIs6NClgbtS3OZrV7lu3f76a30aVC OuSheK4Wo5RMbkTM3Xcpizy9fWOQzk34+h9Olt6u+E1S1PgFoAsAyFjTn7laW+wDx3YT H+KU9HdNYmUU6r0NjsuV4y2SFvsKbLPSKNIV1VFTFzILwwtNfqsaKnQTy4Qm80iidvhk 7Igw== 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:user-agent; bh=f57f9CrkLHcFePwjN3FU4Rm5r4Irtea70kxXmHOLUco=; b=dzLUmFxCZfP0Sto2BwYo61xtnH3DGVFGHCZhY5+2G7RYvu9MhaJeP7RaDVSjCbBKpz JsFK+dwM6lVW2gStx9E7jYq/FJKUvhBcnCMT4XyQvj4B77g4nKNfOb6XeZhCZJ028QqK GpwgVmxSBiLkFxtYkZGf83b+ad/q5YZL/DBhm1wjiJoh0wcK0QbnIn2w/p3yF2Ztz6S8 0P8QNDpCCDNpwsfgfSwkGLz4hI370ECeV1qW+8fuJn8XIkA1Dff3LZ5wBCZWATXnzDvK YdvYJPQoFNz6pKOa+V+vLPyUlh3aRV+77bBh3UYRnEmYHiEr7hppBxPd27HzSSmlhW8H 8YQQ== X-Gm-Message-State: APjAAAUIlyOm94GMNeaZQwDBSbZ60GwlvPiuL51XAg7wCgwofgfT8yPH RQvJut27uorDUgc2NGXeGPH9vg== X-Received: by 2002:ac8:33bc:: with SMTP id c57mr23963559qtb.252.1557758967170; Mon, 13 May 2019 07:49:27 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id g206sm6871504qkb.75.2019.05.13.07.49.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 07:49:26 -0700 (PDT) Date: Mon, 13 May 2019 10:49:26 -0400 From: Sean Paul To: Rob Clark Cc: dri-devel@lists.freedesktop.org, Georgi Djakov , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] drm/msm/mdp5: Use the interconnect API Message-ID: <20190513144926.GQ17077@art_vandelay> References: <20190508204219.31687-1-robdclark@gmail.com> <20190508204219.31687-6-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508204219.31687-6-robdclark@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 08, 2019 at 01:42:15PM -0700, Rob Clark wrote: > From: Georgi Djakov > > 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"); > + > + if (IS_ERR(path0)) Same comments here re: NULL value > + 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); > } > -- > 2.20.1 > -- Sean Paul, Software Engineer, Google / Chromium OS