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: 568866 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 0A6CDC433FE for ; Mon, 2 May 2022 17:41:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244140AbiEBRoa (ORCPT ); Mon, 2 May 2022 13:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244027AbiEBRo3 (ORCPT ); Mon, 2 May 2022 13:44:29 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718B12185 for ; Mon, 2 May 2022 10:40:59 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id i19so29029576eja.11 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=S6QHc9oKHSrRUFPcnw5m0hIis+r7zjCe2EnCiDk+rzSIV/J/4ogtiVX0tNPINS+V0A 2G+y97uI+b84Vam5SfqZz8S/XV4ZuVqh1tvJfjDARi9SMbpsIhSnpp8GfdJjx3LPZuYf cKaLHWYkHxfOoNG3z32X7nEn2RwZNuEdKlPtcTocUenEhI0vgDPYTUmYaWAzlGEAM2sn IcK73zCV1h3yiu1yDP/yybayAQ7AuFCT2NiN6VLm/2lFvymKnJTjkuYIWCxeAv7eeo8m 3sKjIoDrDjbjoMYlM+/3AHe7uoKZgfJyBMMSLe/amuujoSSIX1EDD6XhA0gvQ2ruPUqT rUaQ== X-Gm-Message-State: AOAM5326f1Wq9yOnSzTmbwUZvoFCNbiivvJlDumg80boeN84sFYjFCOR i9hh+mZFlocX2ykvjCGWfyS23Q== 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-pm@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