From patchwork Mon May 2 17:40:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12834577 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 1A574C4167B for ; Mon, 2 May 2022 17:41:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244279AbiEBRok (ORCPT ); Mon, 2 May 2022 13:44:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386682AbiEBRog (ORCPT ); Mon, 2 May 2022 13:44:36 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B33238B7 for ; Mon, 2 May 2022 10:41:05 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id a21so17419494edb.1 for ; Mon, 02 May 2022 10:41:04 -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=db4sc5OrkSnoCCAKUJDacMNlzRQIVW40R0PO9szPpSw=; b=ivv4TiIFET9Plo0mYU0pmkto0Jb+VpOTR2H6nDBQe/bIP3sx4kj0NNACW2MGDYGO5p dRvVcuqcUDjnWPTOnrMu71i/ThRkYAfUstYUe5nTVK4RHUbPM/VxBtZywaO8H9tIC+TD zIFxmZ8nD9tqWYpgH4W6ABFE4y1h+Lypo/T5F84LRDZYRKs1oYMunObyGXOsswdaF+pt Nf+0JZyCeZK0CQzXfmvz4f1B9CIK+RfyISoXvdOLwLEsKjUPxInpoSGVpJxHq/MBWLWa TDDSosZLpczwQN8vTSc6bvAf3exs0tKnStUaORbqh2rfW60nwl2itT6EyEVMr0ueyOx9 ceeA== 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=db4sc5OrkSnoCCAKUJDacMNlzRQIVW40R0PO9szPpSw=; b=wFo0NQPEWOyu81h5XtjqC4rxaYDnNmisG3dyDGqdv0ULuHVScaxd4zXN1vwj64rYoC eP73DVPKhm53vPu7qAI796hRGYyH9b9qKCoH+6tUYbEfigNa9ARrGKC6UJg29DMQQuZV jsRtzYrRU4jinnq0WzlgILQzqJkz+MauRthNmXpWKT3H+S5C+wnV9RMVxSmo+cX93wgK Mtzqed26pbbRGf819oxCU22mww+c7PDawfBk2M9u7/YboU72sjuSt3dzAKLgfdUJXOw6 kN39+D0GZ9oIyosPQAUa5hGOLxJ/t8cP9b8J40MeN53ZWu/Fsis1yOUnjAP0/7sMT01a lWNw== X-Gm-Message-State: AOAM530nnFH6aYsx21hYgWgWLk11034V7vV8CVyML6B2D03vZfv38RBO ViSbHO6dUuQP1eVRIP3PdnGYtg== X-Google-Smtp-Source: ABdhPJw1vcECAN0GdEjQTb0sBwVUfthEx3gj2y1wxgUs6ErO7gvNMoDhI87r8wi2EufVqDu8nRm7Kw== X-Received: by 2002:aa7:dbc5:0:b0:423:f451:bb50 with SMTP id v5-20020aa7dbc5000000b00423f451bb50mr14140414edt.79.1651513263662; Mon, 02 May 2022 10:41:03 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n9-20020aa7c689000000b0042617ba639csm6908547edq.38.2022.05.02.10.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 10:41:02 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thara Gopinath Subject: [PATCH 4/4] arm64: dts: qcom: sdm845: Add CPU BWMON Date: Mon, 2 May 2022 19:40:46 +0200 Message-Id: <20220502174046.139234-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220502174046.139234-1-krzysztof.kozlowski@linaro.org> References: <20220502174046.139234-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add device node for CPU-memory BWMON device (bandwidth monitoring) on SDM845. Co-developed-by: Thara Gopinath Signed-off-by: Thara Gopinath Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 692cf4be4eef..bd4577f0a92f 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2026,6 +2026,66 @@ llcc: system-cache-controller@1100000 { interrupts = ; }; + pmu@1436400 { + compatible = "qcom,sdm845-cpu-bwmon"; + reg = <0 0x01436400 0 0x600>; + + interrupts = ; + + interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_EBI1 3>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "ddr", "l3c"; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + + cpu_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + /* + * The interconnect paths bandwidths calculated + * from msm-4.9 downstream kernel: + * - the gladiator_noc-mem_noc from bandwidth + * table of qcom,llccbw (property qcom,bw-tbl); + * bus width: 4 bytes; + * - the OSM L3 from bandiwdth table of + * qcom,cpu4-l3lat-mon (qcom,core-dev-table); + * bus width: 16 bytes; + */ + opp-0 { + opp-peak-kBps = <800000 4800000>; + opp-avg-kBps = <800000 4800000>; + }; + opp-1 { + opp-peak-kBps = <1804000 9216000>; + opp-avg-kBps = <1804000 9216000>; + }; + opp-2 { + opp-peak-kBps = <2188000 11980800>; + opp-avg-kBps = <2188000 11980800>; + }; + opp-3 { + opp-peak-kBps = <3072000 15052800>; + opp-avg-kBps = <3072000 15052800>; + }; + opp-4 { + opp-peak-kBps = <4068000 19353600>; + opp-avg-kBps = <4068000 19353600>; + }; + opp-5 { + opp-peak-kBps = <5412000 20889600>; + opp-avg-kBps = <5412000 20889600>; + }; + opp-6 { + opp-peak-kBps = <6220000 22425600>; + opp-avg-kBps = <6220000 22425600>; + }; + opp-7 { + opp-peak-kBps = <7216000 25497600>; + opp-avg-kBps = <7216000 25497600>; + }; + }; + }; + pcie0: pci@1c00000 { compatible = "qcom,pcie-sdm845"; reg = <0 0x01c00000 0 0x2000>,