From patchwork Mon May 2 17:40:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 568763 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 A77EDC433F5 for ; Mon, 2 May 2022 17:41:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244134AbiEBRoa (ORCPT ); Mon, 2 May 2022 13:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244004AbiEBRo3 (ORCPT ); Mon, 2 May 2022 13:44:29 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D4661176 for ; Mon, 2 May 2022 10:40:59 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id dk23so29084549ejb.8 for ; Mon, 02 May 2022 10:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=T2pqf/ZsMQSKMuxK+/c6zd6+ftGPVEK7T/AqUXfVSTg=; b=w6Xa++C37JYlMsXY8QYku3gyilnsILyuKs9Dhiv+0xVGxcRpR1l9UyjuSRbRuoB4OX mWKbJ2RxY536xewVProPrUHcnc15MO66QJyK+fVdfgc5ET37LGJGdxIbIyJ+7tSDxLET US5eXo9xo1b+FK4u77L4wNSq57GgzoNX3ACtcUwX+ytbowUsxN1R1s8gPd6T9/LnsjYJ fOwO2nHL/geYwmSsT4qbGgY/+epHWZeOZpjIMIzrOGPOS1i6SoIc7n9GhGLHaW44qBT2 6RqSwh1TT9mc1RNogQFamC/AtRI+VoVa8CeTygEWw/5V1mx/BYDJF0cdBplf1deSlqd6 iruQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=T2pqf/ZsMQSKMuxK+/c6zd6+ftGPVEK7T/AqUXfVSTg=; b=FjU75CSI/ekbjvMvJecJtxCnvLkIvNIQQaqpfesjXHg1qkn27FBuG/u1aW3DD239to r1h11/xOgrNU1+bZz0jP0vVBBwbzF8ASDjD3Cey/YretKLqSV6Uk360vYk92ngGyKxRn EotlYyC7cUU3PUXgd7ho9B1gJdRlRnfybN3cjZNqQ4HRghrGzuyjOGWZR2sUdaEozHIE LiLuiSFl7fUwWjHnQV9F7RZglS788el+797Geut7DSCBui91wJkOWd5Ivzp2SZ7Thtp/ XILnmD5sz7+6DSjIsTEl4AMa0R4cU3PedrDrX2929ZAXYVpt/WnZCk2a7vL2XIa2dsWW YWAQ== X-Gm-Message-State: AOAM530YbP8G/17dZX6Cd7nHA8wfVAmh+nzt/WokChOm7MCaFWX4Q7yO pqV3pWFbXKRcNI11C+zzF2OMYQ== X-Google-Smtp-Source: ABdhPJwVvu+lkFY73eVNrxet+GQc/E+bRy1O6uMwXhMPN5GQLVixiDxsLFoDD0I94kAPgjYCuasVdg== X-Received: by 2002:a17:907:7810:b0:6e7:ef73:8326 with SMTP id la16-20020a170907781000b006e7ef738326mr12088942ejc.429.1651513258023; Mon, 02 May 2022 10:40:58 -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.40.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 10:40:57 -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 Subject: [PATCH 0/4] soc/PM/arm64: qcom: Add initial version of bwmon Date: Mon, 2 May 2022 19:40:42 +0200 Message-Id: <20220502174046.139234-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hi, BWMON is a data bandwidth monitor providing throughput/bandwidth over certain interconnect links in a SoC. It might be used to gather current bus usage and vote for interconnect bandwidth, thus adjusting the bus speed based on actual usage. The work is built on top of Thara Gopinath's patches with several cleanups, changes and simplifications. This is "initial version", which means the work is not finished. The goal is to add support for further devices (version 5 of bwmon) and usage of devfreq governors, similarly to tegra30 devfreq driver. Best regards, Krzysztof Krzysztof Kozlowski (4): dt-bindings: interconnect: qcom,sdm845-cpu-bwmon: add BWMON device opp: Add apis to retrieve opps with interconnect bandwidth soc: qcom: icc-bwmon: Add bandwidth monitoring driver arm64: dts: qcom: sdm845: Add CPU BWMON .../interconnect/qcom,sdm845-cpu-bwmon.yaml | 105 ++++++ MAINTAINERS | 7 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 60 ++++ drivers/opp/core.c | 120 +++++++ drivers/soc/qcom/Kconfig | 10 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/icc-bwmon.c | 328 ++++++++++++++++++ include/linux/pm_opp.h | 19 + 8 files changed, 650 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml create mode 100644 drivers/soc/qcom/icc-bwmon.c