Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp631531iog; Wed, 29 Jun 2022 07:13:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tcFXPZLPAfLs7rg27y0iN19xRTWs5oJjXDEDwAwHRw0baC78xc9DZoLI31ir7lhFDZXPfp X-Received: by 2002:a17:90a:d703:b0:1ec:ac0d:5d3d with SMTP id y3-20020a17090ad70300b001ecac0d5d3dmr4033587pju.81.1656512022043; Wed, 29 Jun 2022 07:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656512022; cv=none; d=google.com; s=arc-20160816; b=dONZMhVYxm6Eou9Z1A5fYlqHsOARaKQG5bn6s3nLpqNcFEdUuDCQYYsofGEn6VDNvE nWSeli9fW0hfLejCeDFUOCG2FKj1LiGoJqTa5WiXuZmLmOgNH/LxvWFUvGc6P9LqWNdp M2210L/w9KyJsR8l4DcAqpszEWaqxDxpcr2kDn82LQJdB1GUha/9wmvhez+q3n9RJyk2 IhHYlGFaS3LFMakXasfU5lYTBEgTFeNpQy0TWC6uY6wxY6ek9jHpLVQBu/NRHt8MD3VW DnNA9cVYx+UrPtGjPJhwkqWi2sqYNNWMeu/mH1Nd0uPGMjGJt2t171q3lJx2AmKS28UZ z7gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tQRh0AY/h380Rf7RaIfP/jHK8L0FIrKA6XtVoZoWfV4=; b=ruVf+UfQ1IiwibrnzFRN2aYSj/b/sjrnNCl5JR6TQyAuTk1IHtwUZ/SJrnMWjGPva4 sT6u50X5w8GNjP8fHAh7L3W9648uG7ssSEUEXFPlWyOlIsDLVL0oHlytPXX7RN4qjrUh T0hEiKBHOg0y09aKgdBCnGXjPEJYCu8yUoe41FJkmUiqbTADFMTJkbZGjrembKtMyuVV ZgDC36XFxsMw8kuL0c/r+ygvA5mV9CCYYabysaxoDL65OsM0dNIdQ9sDrasAJnqfmds7 HW3cW/qc3e9yd3ZMsSQ55c4+tT2rOyS4Q5BWVlZcKcVCpWJn2gkLTnQ9Hprgqv2tTEOp xtTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Am0Eqkwq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr2-20020a17090b4b8200b001ec9090a847si4449964pjb.3.2022.06.29.07.13.26; Wed, 29 Jun 2022 07:13:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Am0Eqkwq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233608AbiF2OD3 (ORCPT + 99 others); Wed, 29 Jun 2022 10:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233398AbiF2ODP (ORCPT ); Wed, 29 Jun 2022 10:03:15 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B527B49D for ; Wed, 29 Jun 2022 07:03:13 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id mf9so32913609ejb.0 for ; Wed, 29 Jun 2022 07:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tQRh0AY/h380Rf7RaIfP/jHK8L0FIrKA6XtVoZoWfV4=; b=Am0EqkwqnJ+nScjx0qimn2TpOAgLHVGbGcH0BWx2cVoMd0D1CKxBmAfxxBnPlN4ELQ VokscOphPWVRkZs9im65x1wrsgMdqytXPSLBK/NhFFzvUE/oF89/bYs8EIMMbGK4l3Qc G533sezxIDSqn4bxW6LkkiRc55kLYS/Q5wnngJoY8KphmGEYqHKOB5oPg8g2Nhpt8FSw c0ie7pwZ+Dl0ZvYgULSZZsARP3UcNaEy/4wB968Lx/UiR2kiHGx6Gug8N9O1QfbI1KYb Ngs3G46TuTr7qJSKwymAd69EIZHsfQGl5erTLa85M3nz9ca9U84cKYuo3mrDVk/X95gM 2Rqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tQRh0AY/h380Rf7RaIfP/jHK8L0FIrKA6XtVoZoWfV4=; b=SDsKFo+nF67Bv6lQPiQMRp4z/mnsnlq7BkELuHVZc4IjrWTxhTDqQCOmYs0X5UuT7T Z/lBVkdmi7WuarwJaOxoAHebXIsehZRkdeoqnUoFOWaauyEzmUuNODbWyk+JH0ybdcdN E+yxLS4Y8QmuKEsb010VWU8/c7xjBpEgHwogO5Ly1S27s6pq7AYl8HSy7eglP6lGd8pI vB1yrMmfrCXgoZgle+A1WmY3jyENxPW3vBV1hdbW4GhJbhHAcDbFRxwJk4kq/gttWDAi XyHyub1wasuUklW8y0k/ns6fsl79WPQZNwJJk6cTReGDxfOy9EzkvClN+qrTgjihluts 1VKw== X-Gm-Message-State: AJIora+IIDQwmJbTgUZWM0NlaQJlChuUBbFpSfpjDA5Df4qx/HbCMI9y Db/cDJPV7kULDu4JKcOxjlF82w== X-Received: by 2002:a17:906:cc87:b0:722:fb3e:9f9c with SMTP id oq7-20020a170906cc8700b00722fb3e9f9cmr3463389ejb.624.1656511391664; Wed, 29 Jun 2022 07:03:11 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id f9-20020a17090660c900b007262a5e2204sm7739260ejk.153.2022.06.29.07.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 07:03:11 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rajendra Nayak , Thara Gopinath Subject: [PATCH v6 4/4] arm64: dts: qcom: sdm845: Add CPU BWMON Date: Wed, 29 Jun 2022 16:03:02 +0200 Message-Id: <20220629140302.236715-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220629140302.236715-1-krzysztof.kozlowski@linaro.org> References: <20220629140302.236715-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device node for CPU-memory BWMON device (bandwidth monitoring) on SDM845 measuring bandwidth between CPU (gladiator_noc) and Last Level Cache (memnoc). Usage of this BWMON allows to remove fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high memory throughput even with lower CPU frequencies. Co-developed-by: Thara Gopinath Signed-off-by: Thara Gopinath Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 83e8b63f0910..1872fea04785 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2026,6 +2026,43 @@ llcc: system-cache-controller@1100000 { interrupts = ; }; + pmu@1436400 { + compatible = "qcom,sdm845-llcc-bwmon", "qcom,msm8998-llcc-bwmon"; + reg = <0 0x01436400 0 0x600>; + interrupts = ; + interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_LLCC 3>; + + operating-points-v2 = <&llcc_bwmon_opp_table>; + + llcc_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + /* + * The interconnect path bandwidth taken from + * cpu4_opp_table bandwidth for OSM L3 + * interconnect. This also matches the OSM L3 + * from bandwidth table of qcom,cpu4-l3lat-mon + * (qcom,core-dev-table, bus width: 16 bytes) + * from msm-4.9 downstream kernel. + */ + opp-0 { + opp-peak-kBps = <4800000>; + }; + opp-1 { + opp-peak-kBps = <9216000>; + }; + opp-2 { + opp-peak-kBps = <15052800>; + }; + opp-3 { + opp-peak-kBps = <20889600>; + }; + opp-4 { + opp-peak-kBps = <25497600>; + }; + }; + }; + pcie0: pci@1c00000 { compatible = "qcom,pcie-sdm845"; reg = <0 0x01c00000 0 0x2000>, -- 2.34.1