Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1445603imk; Mon, 4 Jul 2022 03:17:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vs1jZhPA4Ib/+I8kEADcmRxoyGMXzQzom3UT50MDYjNPnLuvS+DH2ZADXo/thZkYJ9WIZH X-Received: by 2002:a17:906:64d0:b0:722:e8c6:9169 with SMTP id p16-20020a17090664d000b00722e8c69169mr28242616ejn.206.1656929841685; Mon, 04 Jul 2022 03:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656929841; cv=none; d=google.com; s=arc-20160816; b=NvcLjkm+QtqoXUEHv4+rIuM0+0bQ/AYjRhZVownzrZUaCUaB6xSzDUiBNqFp46JjCv nLji4aOREgTmhyh55jGRDS2PL5JK7v0qUonCTIA+13t5HW+f+eYuoTbB7gOTENGa4j66 TXSLKDnL5NHdfKpa3E6p6X4Mh3wbDFtMW2tnOI2VcJSNDtGokO3VbGtkiHkPJ9nEXfUC HpnzdFe+xMBODhmTlK2T1pdjXT94Z75V0jfbWZErdij8AVboi32YxvPsmMShzRi+K/dm PFxAXLd9ojiK918wBm1ayDqSnbPGFq+/BXKVpmVvZ5+v4WBs5wunRssJpHNI0zpJWQgM eorg== 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=580FSsVvcoP64wHucJMgx5sENeOjcD4XN2V8bHgQbsM=; b=fuDTkhlJXuOz0j8K/D9KhSE38lFV8tF5FX3DKAciapptMCCcF74RrFpBq8zFrC8+Pk v5C1mNL2526hvupq2Ba/hcu9Dvj5FWhXT4fleFPjNVCkvc5zc270k/c1LpyQmqoEndOV 1386qyg3zOSOuoM9d3wBxwDEaPfkXj+568ShwNk3dr8Dmw94XpkNkPZuU6K8JfRgWhLw /ctq6YDzt7NDLexGi77WXFbxtSssczXXaP/w6W2OiNDZh/SoT4wXi4Xm5w5sPAjC/n+u ld9Eyhw/7IWyaesqTnGYg7ADy5N0JvNNzMLbfgW/bbPqC0Ojyi6mVmPv9U3Em5pa1y0b mePg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KgsOmtPK; 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 js16-20020a17090797d000b00726d03899basi2216803ejc.344.2022.07.04.03.16.54; Mon, 04 Jul 2022 03:17:21 -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=KgsOmtPK; 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 S233653AbiGDJb7 (ORCPT + 99 others); Mon, 4 Jul 2022 05:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbiGDJb2 (ORCPT ); Mon, 4 Jul 2022 05:31:28 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB90EDF61 for ; Mon, 4 Jul 2022 02:30:39 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id z14so8487022pgh.0 for ; Mon, 04 Jul 2022 02:30:39 -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=580FSsVvcoP64wHucJMgx5sENeOjcD4XN2V8bHgQbsM=; b=KgsOmtPKN9WUoaAxvl1AF1Uv0/Xf8QcVkzGiVgcar2oqWRMsN08v9SObEK036O5nuN 2HGFgdTMl84wa9DkNVzw4WmYdWr6apxvcaR+mVMgTubkerT77/lz97YCFmy44JDW9/yA oV42d2jAY6aWlfXHOrYZCxzd0hWbAcozrNalCd7SEKsrcjD52oiJvzaPiBHS0CMvA9co RlQk4JypG20W34dh+Rsy7g3byzQn1CwXt7G5bu/3H6jKyeOSCpXVuzOyYymC3MQIqzqt h9YQeusmkoYT8tlxWKEZ2oeXVhzEA4bpcND1tg+1kGX8XOoe0l+J/ocEs80x1wk7B2yh FEZQ== 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=580FSsVvcoP64wHucJMgx5sENeOjcD4XN2V8bHgQbsM=; b=oWHJzZ2TZ/N00GJvkO612ZA7KEjR2m1+J5u2vwqg7rHdReXqDhZKdTMcJzq6fI7qY4 8GZ6xt2StE9WZvdCAY+AEwzAkFDQQlqlbSqaW+ihkTMvbHyfKhNG7MZmRtWtm4koMdsH ynVQ3zCFae3SLHvhRhdN7ECiDA8zz2Je2f2LUxTMmFZ1J+SsMa9AxHpo2foG5OaddEDs lkWpZI+/LriVS9Qy9XeSt6PamWRdufO7MJYLRPSQ8OPpNxMwFFhaVRp53BmpVOCjAcCL DIQmTgLg8FMQNo0mDAgpv1uplPcSJxDfjBTGOsIJ91Hjg1EZ5sLvbMEbMMeYLT2ski1C +nAA== X-Gm-Message-State: AJIora+RykvLVNkxS9CBiQvcr6hwOPQAJ4cJnh4v6rkt0a5E0Dv6v5x/ jYBLAIm8YIOjuKt3UxqKOBOawQ== X-Received: by 2002:a63:6c4:0:b0:40d:d290:4a84 with SMTP id 187-20020a6306c4000000b0040dd2904a84mr23799959pgg.426.1656927038929; Mon, 04 Jul 2022 02:30:38 -0700 (PDT) Received: from leo-build-box.lan ([154.3.32.171]) by smtp.gmail.com with ESMTPSA id ms16-20020a17090b235000b001ef81bac701sm2926177pjb.42.2022.07.04.02.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 02:30:38 -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, Bryan O'Donoghue Cc: Leo Yan Subject: [PATCH v3 0/5] interconnect: qcom: icc-rpm: Support bucket Date: Mon, 4 Jul 2022 17:30:24 +0800 Message-Id: <20220704093029.1126609-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=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 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 v2: - Fixed for DT checker error for command ''make DT_CHECKER_FLAGS=-m dt_binding_check' (Rob Herring). 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 | 7 +- 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, 183 insertions(+), 42 deletions(-) create mode 100644 drivers/interconnect/qcom/icc-common.c create mode 100644 drivers/interconnect/qcom/icc-common.h -- 2.25.1