From patchwork Thu Jun 30 13:05:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 586568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9D96C43334 for ; Thu, 30 Jun 2022 13:06:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235224AbiF3NGC (ORCPT ); Thu, 30 Jun 2022 09:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234040AbiF3NF6 (ORCPT ); Thu, 30 Jun 2022 09:05:58 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB2D25C57 for ; Thu, 30 Jun 2022 06:05:51 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id fi2so38840049ejb.9 for ; Thu, 30 Jun 2022 06:05:51 -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=ebLFV31bDZqK2n/IPB1RT/5PHkVPLIASQnyZi+pXm0MimLvKJmyWIdYkXuRbYJD8CG YvZ1Q5aDqByLx6gBd+AkIiIQxKZ3AJ8rPeoENw0wKxrYJzmZV6hWJew8a6EcqQmLRoWF lo4GtYuxXM5XkkIK3njCmg62vzc4WBqEJob4IW2PmvRko4J8XQ8iyMWnVbZNOfpFKOpz 7OYYELi+Fyl7TkuCSyPVE4vqAHTfKa0Zu3JZ05D7vLUpedn+PF+qa97lzyFe6CJbbQmB YR/r82tGdChjLC1lF2DepeYHPDo/PlTr/3m4Bxo+p1FIBEBGbZUzQHxlPvfq9sHFmkWl 4HfQ== 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=WaHzyEozPegYEMps3ZaGFH77JxJR+l1q1vJ5mFv5L7Pa1jGuddHIrXxyISJywzWDxV SHb9L7DjZ/1jiCqsCG3iASpb8tn/qlBcCtppKUPMMAZ6MRJhV+Tx9yHv1pbhchT0baGW jN9aBWfOwUHWFKVjCUC4xDNE19/abuh/2bCNISNTYbNhilggOTmgRRB6G+MFa1V+hDkp 8NfePCiBpuwaHzktNOor7veGJDbK0/ZgR8dWrLmo583WXubL1wyxfPlV5VbjgGLp0bqO AaP7GQZcK4buQAqa0eJkRg9JsR7hMms+H1qojheKUg/8+OVE98FXE2/TEDeycjJ331wV aoOA== X-Gm-Message-State: AJIora+ENzXN1II0Yh5mHZHrSxXqWO91z3+F5fvRAUlKDIt6uE08vxQ2 RAXjdhD7HHNtraJ7AakODP0ysA== X-Google-Smtp-Source: AGRyM1uB10BoPKt7+QWzG651HSJdXLFdfqX4sjG9itvbbMovPvxzB6k7N44z4ldjI/XCuJYdTWRHRw== X-Received: by 2002:a17:907:3e82:b0:6ff:1e04:a365 with SMTP id hs2-20020a1709073e8200b006ff1e04a365mr8567135ejc.617.1656594349859; Thu, 30 Jun 2022 06:05:49 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id f15-20020a1709062c4f00b007081282cbd8sm9124967ejh.76.2022.06.30.06.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 06:05:49 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , 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 v7 4/4] arm64: dts: qcom: sdm845: Add CPU BWMON Date: Thu, 30 Jun 2022 15:05:41 +0200 Message-Id: <20220630130541.563001-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220630130541.563001-1-krzysztof.kozlowski@linaro.org> References: <20220630130541.563001-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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>,