Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp254276iog; Wed, 29 Jun 2022 23:32:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/eXnItIrvUrkyitw2U9SvTl3RRrqTNz3q+wTQBjIPMKaafScnDfuA+yOGzWwmseABr3vC X-Received: by 2002:aa7:cc0b:0:b0:437:9c60:127b with SMTP id q11-20020aa7cc0b000000b004379c60127bmr9232592edt.320.1656570761015; Wed, 29 Jun 2022 23:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656570761; cv=none; d=google.com; s=arc-20160816; b=N/5qiZjuGrjrc29R4DEILzZFCnupIKKKza4KcUnIUEvmLd5QFLxoS4LRra07kN0PyO xwxVASn6aAl32hIXz4mQaLniiQxqWTCeNKc/Zxkftak9kxj+0uz3V1AN3LelXV0n7u/l BDe0K7ORlqAQEHZTh3qBdDnD8gGjM5pC4ITlmcjcsIo3cu7J2J+C5v1kL/hZCsClS7Px hLxiKukMtDBEVFKXAeTPevhie5O2EZlkPeL/G20p2mBZlZuRjdWixX6dAAN7SAanD65I FG8Te0zwPja6QAxk35l35ov01KkCLyID3ZN6xErgpHtIyrtVs8zc3LZAN142ZPX4BkTn hsYA== 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:cc:to:from:dkim-signature; bh=vST4GG3gAOIX2GEs1KQ/Cp0t/5GyuwSLCsdFHqp/yEQ=; b=BQ0K2RaYe64i6bay81McsvDAIrwT1P05V0WxMxVrPypKo9RBB3M1v4oN9Sefp1JShy CPImeKO9bnPYStFZd26jju1TLvuUHjZVNXKn+chETSq4C8f656u8TtN9ziNMRJX3mkAw Nur37LcnSV2RBkVBZTQYCEheDxGQbG8xy/DcHGzwanyOWWkvMHqc+DTupT76Adrx7F3F K/lFRFEIe0MhpPrJaNS+TrepGLgk4/elm/4Nd8D1oXFhVBU22BSnB5w2E2R+Q9VXyxmu MLpCgViC+T/hULQ9xWHhApMUVHZLDdQWTrmJEpWRtsWtMxtYUiZpB5u7ft6TtsFn7Bh0 gdxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oRv0MgQa; 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 ga6-20020a1709070c0600b006fea036b38esi24976255ejc.310.2022.06.29.23.32.15; Wed, 29 Jun 2022 23:32:40 -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=oRv0MgQa; 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 S229720AbiF3F6R (ORCPT + 99 others); Thu, 30 Jun 2022 01:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbiF3F6N (ORCPT ); Thu, 30 Jun 2022 01:58:13 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF83E125 for ; Wed, 29 Jun 2022 22:58:09 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id d129so17479932pgc.9 for ; Wed, 29 Jun 2022 22:58:09 -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=vST4GG3gAOIX2GEs1KQ/Cp0t/5GyuwSLCsdFHqp/yEQ=; b=oRv0MgQaZPxDcDTTxS8/zcCC1jV3zZblrcj54mJjDUW28h1hFBuHTADCFNECibmfvA KXinMKVdFRhzb6wYoLTOHIdtgCaL53LSzgX5+gj1tvOJpuJYZO5BquZbcDhxpTHJ3nX8 0o586YGgM1B6e4uUZOt0tF1vO0isLPW3+yp5p2GLjoFHeROFplT9/2fwxgZwkxvGbEoY k+dDGZ1dUISp3MlbUWX7AmDF67TK8bAoUwT0lnr0kK0plfPhanlAOfkPSfoYLRUZlEh6 AcnMpsiwAkJyJevyN9VYuPvPSUsFlyR1df752q9KC3/7p6XXbt59rm+m8Njvyl2enrvu Ixxg== 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=vST4GG3gAOIX2GEs1KQ/Cp0t/5GyuwSLCsdFHqp/yEQ=; b=EYnvT113uYAqpZxiPWh5JRfDIa7fOI8buaHiequgM4U/tzSOQBuYYCo/qLHcXwCh0L KqeViz8p41dY6DLqrf6l40JJiKV6l0Be/MKGPdGV2NbLh+NpP3PBjtGlc6vkY449FrOk cKHtwRlROVvVu7QWV7NivH/p38MzbHrNF59Epz/96LYJgblgoZeFNHjA3YEQhTDdXAwa S316Bg1mag31ZzvxNCfpNpGWb8P5lhD5YCLKdgC/ojWCyjwhIv0HpHcLW9dKBBX1WKua am/nQpQL6ZLeLJboCQWjGJkGTC2La6HGB+kHhz8Vcym58DL0gPEFe02lIE0sVHsWZVS1 n91w== X-Gm-Message-State: AJIora80351Rt34qYwc4UN0j4usB4UiBbG0IM4QiTRY/90khYQsd9DNK 61u0d2kc0GEsQDknKjmQ7eIuww== X-Received: by 2002:a05:6a00:17a7:b0:525:4306:72ad with SMTP id s39-20020a056a0017a700b00525430672admr13028386pfg.42.1656568689180; Wed, 29 Jun 2022 22:58:09 -0700 (PDT) Received: from leo-build-box.lan ([154.3.32.171]) by smtp.gmail.com with ESMTPSA id b14-20020a17090a550e00b001e31f4cc977sm3309288pji.56.2022.06.29.22.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 22:58:08 -0700 (PDT) From: Leo Yan To: Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v2 0/5] interconnect: qcom: icc-rpm: Support bucket Date: Thu, 30 Jun 2022 13:57:17 +0800 Message-Id: <20220630055723.704605-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 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=unavailable 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 This patch set is to support bucket in icc-rpm driver, so it implements the similar mechanism in the icc-rpmh driver. We can use interconnect path tag to indicate the bandwidth voting is for which buckets, and there have three kinds of buckets: AWC, WAKE and SLEEP, finally the wake and sleep bucket values are used to set the corresponding clock (active and sleep clocks). So far, we keep the AWC bucket but doesn't really use it. Patches 01, 02, 03 enable interconnect path tag and update the DT binding document; patches 04 and 05 support bucket and use bucket values to set the bandwidth and clock rates. Changes from v1: - Added description for property "#interconnect-cells" (Rob Herring); - Added Dimtry's reviewed tags for patches 02 and 03 (Dmitry Baryshkov); - Rebased on the latest mainline kernel and resolved conflict. Leo Yan (5): dt-bindings: interconnect: Update property for icc-rpm path tag interconnect: qcom: Move qcom_icc_xlate_extended() to a common file interconnect: qcom: icc-rpm: Change to use qcom_icc_xlate_extended() interconnect: qcom: icc-rpm: Support multiple buckets interconnect: qcom: icc-rpm: Set bandwidth and clock for bucket values .../bindings/interconnect/qcom,rpm.yaml | 6 +- drivers/interconnect/qcom/Makefile | 3 + drivers/interconnect/qcom/icc-common.c | 34 +++++ drivers/interconnect/qcom/icc-common.h | 13 ++ drivers/interconnect/qcom/icc-rpm.c | 134 ++++++++++++++++-- drivers/interconnect/qcom/icc-rpm.h | 6 + drivers/interconnect/qcom/icc-rpmh.c | 26 +--- drivers/interconnect/qcom/icc-rpmh.h | 1 - drivers/interconnect/qcom/sm8450.c | 1 + 9 files changed, 182 insertions(+), 42 deletions(-) create mode 100644 drivers/interconnect/qcom/icc-common.c create mode 100644 drivers/interconnect/qcom/icc-common.h -- 2.25.1