Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2828781ybg; Thu, 24 Oct 2019 16:09:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1bJdA6KYWbJhLtXWfO4DiT6omfzBH07+b0isTzFLU6CxtxPV5MRdOOEPyxWDyUru2TIK3 X-Received: by 2002:a50:ace1:: with SMTP id x88mr747404edc.132.1571958576911; Thu, 24 Oct 2019 16:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571958576; cv=none; d=google.com; s=arc-20160816; b=HHA3SoiFxTwVu/0utzIm9N3UkfBTEso9EDUZoQO0ynGw61S47umqY3igYQiiP47bM+ 24qab/gLGAjlWRwZDnrlfUVQuA2VcJVGhkQJVIQ4PGdDvQFSx5uOfAcl2I419leuBOm0 +gF2cT6i/bfD0PxlsYyrkPtkkQiGpTdTSQZAroy7870EN74wJ1NyRfBcsx8Drskv4i2+ j2m5oK/pNo41aRt4sDJipJds2EtmQhr18I05xO+1gOy0+1Pj9JLyqqio3ozThzCTbKFO JkEzA/DrnXg4WD1n61uuC7btOELWsJqHg0xuTMpLiO7YgQAt0xTD2O9Zw6Nlev50KgX1 CJIQ== 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:openpgp :from:references:cc:to:subject:dkim-signature; bh=mm17BkOc25h13Mby6hFCXW3PUeV4hyrd6orfDcJCo64=; b=EuFs0nb6ew/K4fmhXnpjgKxI9H0OSyoDHLzCngwq1Jq5HY2fDWOhkno4dvRLtyKJ/U ICaWaOBfEhiNM/KL7ZIBjMxmGiAPDiO80GwP7ngQkh54W4nFoFbQjLajMPuQRKeK4gQi fu/9MtQIP3h6K052rwcAPma5JMqhpG8cmcmYkvcKe4oFVRYftjPVCQgBHhdwjoiYy68+ 71mbQfgjft0IRwQSVGvBzakf34lXr2pbnU1AtD31jpPJsw+QKL2w8DfudV6UXOD6O48e UJEYIC5RJv1JBGqvdNeYbLhhVk8WKRy6pQi4yOAa3kH2wAGWFXFoB1uIbU4fVP9emczc f/bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FM2nQuhq; 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 x7si140312ejw.75.2019.10.24.16.09.12; Thu, 24 Oct 2019 16:09:36 -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=FM2nQuhq; 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 S2438204AbfJXI1X (ORCPT + 99 others); Thu, 24 Oct 2019 04:27:23 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34732 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbfJXI1X (ORCPT ); Thu, 24 Oct 2019 04:27:23 -0400 Received: by mail-wr1-f66.google.com with SMTP id t16so19869001wrr.1 for ; Thu, 24 Oct 2019 01:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mm17BkOc25h13Mby6hFCXW3PUeV4hyrd6orfDcJCo64=; b=FM2nQuhqEHC5AtVx/Atcs/KmjN9GidOdQUdWc0fquAJ4AIkE9OhBpZfBhwmt+L62d9 5kjVegAA6W3iU7uZJd+XQIh/YNIWVenayIvbvVgMUiybaDvLhFEtgQgNpWbnTDnGuNkN jhVNzvREJ+tiPEfyTyDF2GiVdv3xk4jKbp4v+l3o8oAPvEnOzrOisaO+pPFQM9FsXOSS BKs58eHhZv11IhkDZQx2wQ974lIf8sPQOUb/Rj2XMR6C7c6taCX9tJ7tmib8KNplJy+a yvNBUtxCN8e74fS6UOFPdIlmAHdVLU80gWta+FQx77WAqsCaJihm96bstIRVHOzm5COF yjgg== 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:message-id :date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mm17BkOc25h13Mby6hFCXW3PUeV4hyrd6orfDcJCo64=; b=XUnyPn9bknC/N6VYzjrrVW3l38dfSKv3wbyd6lyW82hf7SdlXz9EcfkWobWnhAdt/U S8s/iVFh/0gUx4VK/4filxJLB+ANZO+XEb4Qk8LSPa+iWig4+ddh7VCZW02eurHuFrrp HJJDmq3pA2g/HPjd3Wn2rT1Ccj81i2YCeOzk6dI0kaWMo2VLR/sRWtqHQKnV0ur3md5i FSAGrf61Bvr2VqZxhCpEzhH+T3+NorsaEqI5BqscO4MiIb7f7uesPDCiuivMt/P3mUtE CbZBRVYQlxj3rqCZDpVKYvmA0a4jcTKAW5A1m/ulKD/kA1udn2XKClT92S1YMaaV8dtZ T4cA== X-Gm-Message-State: APjAAAXTGTw93qpg/D3YyWnb0+idOjk06b+G0Dh/ckha2UbrgjTFiTBe wD/zYBcJJSIb7vEVr4avZqGbow== X-Received: by 2002:a5d:464f:: with SMTP id j15mr2639402wrs.366.1571905641248; Thu, 24 Oct 2019 01:27:21 -0700 (PDT) Received: from [192.168.27.135] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id u187sm704735wme.15.2019.10.24.01.27.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 01:27:20 -0700 (PDT) Subject: Re: [PATCH 5/5] ARM: dts: qcom: msm8974: add interconnect nodes To: Brian Masney Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, freedreno@lists.freedesktop.org References: <20191013080804.10231-1-masneyb@onstation.org> <20191013080804.10231-6-masneyb@onstation.org> <20191023124753.GA14218@onstation.org> <20191024070730.GA19974@onstation.org> From: Georgi Djakov Openpgp: preference=signencrypt Message-ID: <5e1149ae-9539-ec8b-6371-50c87575057a@linaro.org> Date: Thu, 24 Oct 2019 11:27:18 +0300 MIME-Version: 1.0 In-Reply-To: <20191024070730.GA19974@onstation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.10.19 г. 10:07 ч., Brian Masney wrote: > On Wed, Oct 23, 2019 at 04:39:21PM +0300, Georgi Djakov wrote: >> On 23.10.19 г. 15:47 ч., Brian Masney wrote: >>> On Wed, Oct 23, 2019 at 02:50:19PM +0300, Georgi Djakov wrote: >>>> On 13.10.19 г. 11:08 ч., Brian Masney wrote: >>>>> Add interconnect nodes that's needed to support bus scaling. >>>>> >>>>> Signed-off-by: Brian Masney >>>>> --- >>>>> arch/arm/boot/dts/qcom-msm8974.dtsi | 60 +++++++++++++++++++++++++++++ >>>>> 1 file changed, 60 insertions(+) >>>>> >>>>> diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi >>>>> @@ -1152,6 +1207,11 @@ >>>>> "core", >>>>> "vsync"; >>>>> >>>>> + interconnects = <&mmssnoc MNOC_MAS_GRAPHICS_3D &bimc BIMC_SLV_EBI_CH0>, >>>>> + <&ocmemnoc OCMEM_VNOC_MAS_GFX3D &ocmemnoc OCMEM_SLV_OCMEM>; >>>> >>>> Who will be the requesting bandwidth to DDR and ocmem? Is it the display or GPU >>>> or both? The above seem like GPU-related interconnects, so maybe these >>>> properties should be in the GPU DT node. >>> >>> The display is what currently requests the interconnect path, >>> specifically mdp5_setup_interconnect() in >>> drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c. The Freedreno GPU bindings >>> currently don't have interconnect support. Maybe this is something that >>> I should add to that driver as well? >> >> The "mdp0-mem" and "mdp1-mem" paths mentioned in the mdp5_kms.c are the two >> interconnects between the display and DDR memory. > > OK, I see. Most of the interconnect paths in the downstream MSM 3.4 > sources are configured in device tree using the > qcom,msm-bus,vectors-KBps property, which is what I was only looking at > before. The interconnect path for the display is configured directly in > code (drivers/video/msm/mdss/mdss_mdp.c) to setup a path between > MSM_BUS_MASTER_MDP_PORT0 and MSM_BUS_SLAVE_EBI_CH0. Correct! > > In the upstream kernel, it looks like I'll need to > > 1) add support for an optional second interconnect path for ocmem to > drivers/gpu/drm/msm/adreno/adreno_gpu.c. Yes, just check if there is a "gpu-ocmem" path in DT and scale it when needed. > > 2) add implementations of gpu_get_freq and gpu_get_freq to the > adreno_gpu_funcs struct in drivers/gpu/drm/msm/adreno/a3xx_gpu.c. > Maybe, i am not very familiar with adreno stuff. It might be good to CC the freedreno guys. Thanks, Georgi