Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp961758imw; Tue, 5 Jul 2022 01:03:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vGW6Ge5iH65oPpQonliLmUIDV7qZXpNCPHqFv1OT2d2PCeAZW5f5WxU48MMti57F21waKC X-Received: by 2002:a05:6402:25c2:b0:431:932e:eb6f with SMTP id x2-20020a05640225c200b00431932eeb6fmr44921075edb.296.1657008207553; Tue, 05 Jul 2022 01:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657008207; cv=none; d=google.com; s=arc-20160816; b=LdQkabttl0/f63iFauBRslAe5tA7RekunIcX/+KwW2BKYs7y5RmAi8V5x12ZRQvjXp qDyd0Avp7uAgsBGCMgnasAFJQsKl5izfHbCDm7sVZqQAynsCnjFPqQ1RgEsTIVVcXcko yyxu0jX9lf5jFiZK/iItB+8ujgrMoEjwYdrsVWvA+pQFXH1xTnWQsGex0hDrp4WXQY4N rU9sfFopg0c9TTA++z9ip5Dc86KMgHjZFYEeC9+mxE7+b/YPZefO6BM5gEe0/bz46Mhw w0iwhR3VlgwDs8kJTO/BU0TYYF+TUvulNoTJosWE1BF0o1eVSJhW7izjtFg2On8H9gTO Dhqg== 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=8rbEhw6j9pFcMzg6DlhT76WbqkNNFflGCPGuP0xsCvg=; b=pMjwnmLE3KmKIs8K8qcia3MwJSWedfrWO+MMP1z76uw3rdSzCVJBaUqloxUmmwuG9F MuCRv2ar03ke0U6eOZdDa3kFHDqpep3cQllPQ/YtIUTI/zKNFQB1ntYSOa0Ukq/0Ry3r feIqw/o+sTa6Gz0Poe3LxuxrKv7U9AUXiFOv5lhCSITk799dNVG4F4SdvB01yv4fzeJx r508CD6Qwxd21OwfX7wpHw6t570O/mK8LWG6pcrX7h1Ae4qlnnAkFCAdKGelettfHbeS A4ig+zS23EMx0JlG6kcDRU3LQx1Ba0GYFiqwwlO6o+fShLsNUe1yF1ZUUNv264+ScIdL xVrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CRNz0Gun; 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 r16-20020aa7cb90000000b00435d7a8d48esi21454767edt.53.2022.07.05.01.03.02; Tue, 05 Jul 2022 01:03:27 -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=CRNz0Gun; 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 S230182AbiGEHXw (ORCPT + 99 others); Tue, 5 Jul 2022 03:23:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbiGEHXu (ORCPT ); Tue, 5 Jul 2022 03:23:50 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028C4B26 for ; Tue, 5 Jul 2022 00:23:49 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id t5-20020a17090a6a0500b001ef965b262eso1414967pjj.5 for ; Tue, 05 Jul 2022 00:23:48 -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=8rbEhw6j9pFcMzg6DlhT76WbqkNNFflGCPGuP0xsCvg=; b=CRNz0GunVs1FoGBH1egrw9QzY53WtHgCknHKIf9Ij2oeHltlJ8saEDwEWShrWPhV+p 1+Ug/RUhOTGcEzLCEg6gb3RE4+ItgPm/qGEqkQ3ppGCjTk6efwWxMN2LqRr24dXXA/d6 KM9rfDkEHB251KclJQuJhmwp+qgcr099oiz9Yl77nwtkzcM/hxqx93rm13VPo+BsOEAN 0IwgAkLt3i5TMo4FkZ2rEktYVO+ao5mFqHjV3vfwXl5Y6SKzoTdz9Q4TTipfLpMEvVkx pELjlBGPR+KfjThxzZw5qzVGd5dVZ6QtwEcpLTEHQ0uQoPnd172zG+WLUKBgqCXgrI8i ycBQ== 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=8rbEhw6j9pFcMzg6DlhT76WbqkNNFflGCPGuP0xsCvg=; b=5Bf5A4NzuHUD5Br/ZIaobLrmS0uywes+/OZfv7HctEZZ4ain83lS/1fKi2UmMwSaY8 vzsWoeGnFiL1zNaCZeQ+IXTi68wW6ioctYyoQARuoI1khLmw5XVAiUdty7S7DxEOJU0H bWRfIdyzFBAYlr3JMQGfn5vRx4n+DVrx4jHzi+cWavr48sMv9PBYuaFouzjzBtL6Fxdi 5vho0vxqA0sHLEpBdskXYp3T+hBtZ6Umt/gGZeHI/n3DTfkHsIzM5EtrfvkV08JCAHOX aJt1/jgIeF76Y1+VbcA2i3wHx04nT1h0aq6XJ0SXlRTTGDC2veXXWQhVOD7orME9pPK8 IeWQ== X-Gm-Message-State: AJIora88kNntMK4w941QoK+OE45BdAGTc0gFWBYivGYHCmGeHiP3RBHS PZjs7dtg0PUNdv7rgSd6l2fKLQ== X-Received: by 2002:a17:902:7c12:b0:16a:11b9:ae9f with SMTP id x18-20020a1709027c1200b0016a11b9ae9fmr39927775pll.82.1657005828364; Tue, 05 Jul 2022 00:23:48 -0700 (PDT) Received: from leo-build-box.lan ([154.3.32.171]) by smtp.gmail.com with ESMTPSA id y6-20020a626406000000b0050dc76281f0sm22148016pfb.202.2022.07.05.00.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 00:23:47 -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 v4 0/5] interconnect: qcom: icc-rpm: Support bucket Date: Tue, 5 Jul 2022 15:23:31 +0800 Message-Id: <20220705072336.742703-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 v3: - Removed $ref and redundant sentence in DT binding document for '#interconnect-cells' (Krzysztof Kozlowski). 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 | 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