From patchwork Wed Jul 20 19:27:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 591891 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 77A18C433EF for ; Wed, 20 Jul 2022 19:28:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbiGTT2R (ORCPT ); Wed, 20 Jul 2022 15:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiGTT2Q (ORCPT ); Wed, 20 Jul 2022 15:28:16 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3789C48CA8 for ; Wed, 20 Jul 2022 12:28:14 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id z22so18307343lfu.7 for ; Wed, 20 Jul 2022 12:28:14 -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:mime-version :content-transfer-encoding; bh=0GjIsq4ywCMZXZcSe/Hf1BCEstclfZZ3cilI89j5ThU=; b=VUIJn85eBQCXeFv5mdrrzsLBNUAt9WG148HwPKkxPIcLV9nQdHlwKzSyZPCWNsDu0D EaZkrTRZGwFT/hxSAAnrfAXenbIZ58SsfWIUeKq4izcEqyMRWcUZv3J2WclotkCp0lGv 7ZqMyX5kbGy7HceJWeP5YwKHaX5MDYQoY/RDOh/1q/XZN4+sYHuKKEU79nCLtstDrPd2 0LT+hMFVZ/AEpnOWYdRaj7RuplQVQUie04hkklYQnDwWj4ie9EYDNVKLljVIrEAc4VMK 1wBraaAyDep6BKeNvif0NmPXd8URKcDOwN6hf0k9BokK7W5UrPJr9RGhBXyoaACgl2a8 1TnA== 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:mime-version :content-transfer-encoding; bh=0GjIsq4ywCMZXZcSe/Hf1BCEstclfZZ3cilI89j5ThU=; b=BXYyPgPSt/SXBd0gJ/zavsF764Ftw47AEno6tKX3cfC3zpiNUCiwulAUeROTXcKdf7 R6MHE6YwdEsvQKUWx4l9kCnCu+djbGcyr4+8xvq7zMNxPBh4iaxFgrkzacs08SpK5GHI AdwoOeCmcmei/T1DAYVVFJZYOXGUDdtrOtvNuv7FUD3OYYMbiRdKah56rkFX9jno74Mn NYOtVHCsiPHe81QUYcXMbPpgJDll4u505fnBFI1mS9Q9O8GIjC5qgscj/96tu0kyrd1J 2ZRbEeLR5zFPDGT/Rjh9H8Mr5mEcRpNwURRUhpALli0cyI2x7Lb+JQedc1Athh4sceSu /nig== X-Gm-Message-State: AJIora8m7qGBEf/+ZbeQnrDP3LCtaWz+ltHylg8lO1prAqNTx46nWtF9 o2JX7aps6nWogd2RMg47lKcNow== X-Google-Smtp-Source: AGRyM1vxjzudKtDoj2CRWGRK26Dg2bD6DVCG7roFoWMzGuV6/hnE3BtccVtN9boNXJVFpSnhFh5U/g== X-Received: by 2002:a05:6512:1054:b0:489:d273:be3a with SMTP id c20-20020a056512105400b00489d273be3amr21837278lfb.615.1658345292532; Wed, 20 Jul 2022 12:28:12 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id h32-20020a0565123ca000b0047fac0f34absm3985771lfv.196.2022.07.20.12.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 12:28:11 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rajendra Nayak Subject: [PATCH 00/10] soc/arm64: qcom: Add LLCC BWMON on SDM845 Date: Wed, 20 Jul 2022 21:27:57 +0200 Message-Id: <20220720192807.130098-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hi, 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. Qualcomm SoCs might several BWMON instances. Extend existing support for CPU BWMON (called v4) to LLCC BWMON (called v5). Cc: Rajendra Nayak Best regards, Krzysztof Krzysztof Kozlowski (10): dt-bindings: interconnect: qcom,msm8998-bwmon: add support for SDM845 LLCC BWMON soc: qcom: icc-bwmon: re-use IRQ enable/clear define soc: qcom: icc-bwmon: drop unused BWMON_ZONE_COUNT soc: qcom: icc-bwmon: store reference to varian data in container soc: qcom: icc-bwmon: clear all registers on init soc: qcom: icc-bwmon: store count unit per variant soc: qcom: icc-bwmon: use regmap and prepare for BWMON v5 soc: qcom: icc-bwmon: add per-variant quirks soc: qcom: icc-bwmon: add support for SDM845 LLCC BWMON arm64: dts: qcom: sdm845: add LLCC BWMON .../interconnect/qcom,msm8998-bwmon.yaml | 1 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 37 ++ drivers/soc/qcom/icc-bwmon.c | 465 ++++++++++++++---- 3 files changed, 405 insertions(+), 98 deletions(-)