Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1957978iob; Thu, 5 May 2022 11:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqcvPpwF3vdXSJdc8Fwyqc77vwejMURxrpsc3/RSQYWQdSzFNCAhbapmMlUIhuH6IuyZHQ X-Received: by 2002:a17:906:2b06:b0:6f4:7e76:c855 with SMTP id a6-20020a1709062b0600b006f47e76c855mr16668383ejg.78.1651776546201; Thu, 05 May 2022 11:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651776546; cv=none; d=google.com; s=arc-20160816; b=hJa2LWKFY67AEm0CvYnWluXI0DACfBPOuYm5ZcECOFAq8s3wRz2C7QR/f6qUx42h2r AUIBGWdbZV2QdtwTEA+0Y7r6OOCBNxbUMk14XSgC1JVVjThe60Oa/dIbXP5l3L1+dVEe EeoAVqhhJfT9WoiUntSeU1uVpOmCGYA+59t4cZFK8QlXR60fB2nzuDWB3tATvm/A8qe0 RBHGF0EPku0CbVx7Xr4epPnsu1WrXG5i/qIKY02RAmwASgBMt3nxn+lDkv+fYU/9UWQe gyD8rQ3Xl5oRGL1j5F6iLaX4ZYBGd07LzjZBTJGQKFPxExwHKomsfdAi5yTuMfEprC5v BbKg== 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 :message-id:date:subject:to:from:dkim-signature; bh=eLF1ARepucIhgvhr8gDrVGbotIKVAz94dozZ5cdYPK0=; b=kp7nHHU+3gCFovElfynP+6nohCmQiBsuMgXYKvWgIuemwmZUOHtKUJtdAEEnLzBF9Q 70ohNa+UBLQdZtpg8GOnv6ZdktGx6JzfbgV/2AJb3qHc8lh9d6bXqrgbEnxyUVTKR8w0 GHV6kOGiPpzKmGwUjO7Lv88SEWzTFnqoT9xI9JVYavIux7Uokz8cOxz4DsYXLiMUsSQz gmNEeUPo73DUAGJlk817LKpKArwAuai1KY0xY0OXX4hI1NjcEks+TN9heQswCsB1J57N 6XNqY2IrPScpCopuY9ymlrEd3SylLbcnDBfwVe7/SGuo3qHkvyYmZWkfp8LeqPKjnKcm j5rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qgcv0InG; 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 h6-20020a1709070b0600b006f426c6f503si2958259ejl.126.2022.05.05.11.48.42; Thu, 05 May 2022 11:49:06 -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=qgcv0InG; 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 S1346136AbiEDIVa (ORCPT + 99 others); Wed, 4 May 2022 04:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346112AbiEDIV2 (ORCPT ); Wed, 4 May 2022 04:21:28 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 503B222503 for ; Wed, 4 May 2022 01:17:53 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id bv19so1418967ejb.6 for ; Wed, 04 May 2022 01:17:53 -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=eLF1ARepucIhgvhr8gDrVGbotIKVAz94dozZ5cdYPK0=; b=qgcv0InGTrDPM6MvwEavrSeW8iRz4CUBgvuUNp1vYL99wfTz+ge5/sWJpUHZx2HDIX AjOLEft1G6SgCg349vX+izEyxTaW4+rbsiOnP6N/1moT7b+WTT9mgJfckddx28Xlrl9n sRVE7aDXjpT/KCvIneHMfcUCG9iYt/fGQG+vTM7OMG+78NkhmhHkmGS/p3izRDwoepPm uxOuxtQBAnQJO10yMv6yKyTXAM0T99cy865g3OvoOxAhruCRro2srF5CYYJsk+/rvPL6 kG6fCba82C63fxqT9yOVlrGrIV2ppaw2Mc7m12OotknZM+bLYqu6doKhYMUFdUiWCF6Z YUaw== 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=eLF1ARepucIhgvhr8gDrVGbotIKVAz94dozZ5cdYPK0=; b=RPIgqCPxIoke6isQlw1leSjHzbqc2oh/yVX5/csceJyvamwtZAkp/09D4OYrzwkGUy HHeKiHrN7Xkd7ida666BKN/ONYVW7CRRCm1q85TCy2QhNRJ0wXu/5C27glgAlq/Z//OD UTobSMtUFv7E+fXno2kPPpTJgPJfAtNCrPpfwwNVNdpQqqMgt782MjpPldRnMUwryKcM 0kvv34VaVHn9KDoeos4lD5XTPZUwSeakudceMAu0nAcvaC6YII/f7zBGw2DX0FCZxtso YD5589/ILAYkMLbvm6So5ImX+AafTShoDupOZUKLG441AHQL54gB9IPxjpfQ1BBlG9cm zILw== X-Gm-Message-State: AOAM532GTNLzHWUlQ4i1UFtfTJcfxP7IdbFSEu+zy5W4mQPvaGT4PSUf +PkuvT2RmP+BuBhhYi6Cz2ZwSw== X-Received: by 2002:a17:907:728f:b0:6f4:5d2d:38c8 with SMTP id dt15-20020a170907728f00b006f45d2d38c8mr10845897ejc.345.1651652271868; Wed, 04 May 2022 01:17:51 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id l21-20020a056402345500b0042617ba6393sm8781322edc.29.2022.05.04.01.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 01:17:51 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Catalin Marinas , Will Deacon , 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, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/5] soc/PM/arm64: qcom: Add initial version of bwmon Date: Wed, 4 May 2022 10:17:30 +0200 Message-Id: <20220504081735.26906-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 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=ham 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 Hi, Changes since v1 ================ 1. Add defconfig change. 2. Fix missing semicolon in MODULE_AUTHOR. 3. Add original downstream (msm-4.9 tree) copyrights to the driver. Description =========== 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 (5): 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: defconfig: enable Qualcomm Bandwidth Monitor arm64: dts: qcom: sdm845: Add CPU BWMON .../interconnect/qcom,sdm845-cpu-bwmon.yaml | 105 ++++++ MAINTAINERS | 7 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 60 ++++ arch/arm64/configs/defconfig | 1 + drivers/opp/core.c | 120 +++++++ drivers/soc/qcom/Kconfig | 10 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/icc-bwmon.c | 329 ++++++++++++++++++ include/linux/pm_opp.h | 19 + 9 files changed, 652 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml create mode 100644 drivers/soc/qcom/icc-bwmon.c -- 2.32.0