From patchwork Wed Jun 21 17:21:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 111223 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4540159vqr; Wed, 21 Jun 2023 10:51:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5I4oPT3Tc9xoABr81h7IK37Z2SQITmsCSEBRLGq1HIfGdiVPTtrwlUpRrre3ps+gohwgUC X-Received: by 2002:a17:90b:3cc:b0:25e:b055:220c with SMTP id go12-20020a17090b03cc00b0025eb055220cmr11403354pjb.33.1687369905082; Wed, 21 Jun 2023 10:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687369905; cv=none; d=google.com; s=arc-20160816; b=nhb2g/qjQM3JbcZUHhh3irD6+mhpJOBdx7eQuhVO5vHn5D84FNKT/cPkslLEiESQX4 zm+keK3j/fdVo2bRbfa0pWab/2AWp14W0KfkfWoCIAwAttUtw8O8C8JSVVq8atRI4QE4 Qn7eEegbhde/CYrICQe2DhAAGClAcbSkPqEtQLuGpucdLgVuoxCq45KARnsciA4Mff7v Is5waKeAY5o8N5xdO5QYFBtqaG6CtJ756BaF7Up0YEODDoGcpWc0ez+ahW9GTRQE3R0D luRh61s0b67pH+ECgZ541ShuMUTk0Zzs33aJQp20VB3w2Cb/iwCs+VC73RAxr5mU2Q2p 90wQ== 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=ETM1m0rAsrqCqxwMUlEQz1ylNCdAsktINcTtLsOMTXE=; b=ONxuyBcFbidpF/3OccYlVemROKZ5A/f9WHZtY0rCD8eX+D6fflfZnJ9o3wntlNIaXA g3/W/2NmL/hnpa7uveigmIIICfXHpTsvNJkxvpTSr5rEfSDtRfCNaeMxjy1y68VXF/oi yQmmC+HYfLhJH+l4emP+aMVnmeARG+KjlZFqz9JXrUCGWPAAhnT7p3Vs43cSKAJ/dmlm gFuu1zfQgND6o0NwwhgzETwknaCDa/gh2CxRCEgQOnQ2D1slCoII1rio2uAGrd5E+4RS AASzXPXVvFuJMdmblw11z7PyU3oIcd6bSKrCD8TKknaozOkvBrrxXL5n7RMUjnKHJNwa TV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=db4bX4R2; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a17090a070100b00251662efc9dsi11738908pjl.53.2023.06.21.10.51.31; Wed, 21 Jun 2023 10:51:45 -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=@kernel.org header.s=k20201202 header.b=db4bX4R2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230472AbjFURVi (ORCPT + 99 others); Wed, 21 Jun 2023 13:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjFURVa (ORCPT ); Wed, 21 Jun 2023 13:21:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 909CF19AE; Wed, 21 Jun 2023 10:21:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D1B361631; Wed, 21 Jun 2023 17:21:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6411DC433C8; Wed, 21 Jun 2023 17:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687368088; bh=ImI/EoOrplWaRitID8FmoePKefv5hlzrqc5MOdwy1+c=; h=From:To:Cc:Subject:Date:From; b=db4bX4R2saYrT0t9pYQ2VPflY/P4nPrUt63Lg+XYCcbmQ3r0QOeFAh8McXU4q1+0a arOzARG0xkowTLPsVf1KMFJ+7zZDINKa64lKRJDdCzXw7zZGB4yGT/ITWmphdSBNr2 tCFABQVDS7VpttHYK0yQOOhD9/iFBdrrCkTnUUb+x+peUUNcJ3YPojY3d9pHPnd+FA KMY3cb+ckH7LPHuoth3uZCJ1lCKPBDPvGe6NlnIKxKAqp/EwRqPzeyhSCAmFFNqVX4 BinDAzQUDizS3fKukM0fVkBoTxNgloJgBznkHiZkf+8qEOV07U+ThzaJxh1gmycyzB BpukG98j7U6nQ== From: Georgi Djakov To: gregkh@linuxfoundation.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, djakov@kernel.org Subject: [GIT PULL] interconnect changes for 6.5 Date: Wed, 21 Jun 2023 20:21:21 +0300 Message-Id: <20230621172121.2049612-1-djakov@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769335585190548961?= X-GMAIL-MSGID: =?utf-8?q?1769335585190548961?= Hello Greg, This is the pull request with interconnect changes for the 6.5-rc1 merge window. In contains a mix of core and driver changes. The details are in the signed tag. All patches have been in linux-next during last 10+ days. Please pull into char-misc-next when possible. Thanks, Georgi The following changes since commit ac9a78681b921877518763ba0e89202254349d1b: Linux 6.4-rc1 (2023-05-07 13:34:35 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc.git tags/icc-6.5-rc1 for you to fetch changes up to 1400725e45152a62fa43f8275e6bee99d584c967: Merge branch 'icc-qos' into icc-next (2023-06-10 10:43:50 +0300) ---------------------------------------------------------------- interconnect changes for 6.5 This pull request contains the interconnect changes for the 6.5-rc1 merge window which is a mix of core and driver changes with the following highlights: - Support for configuring QoS on the Qualcomm's RPM-based platforms, that required special handling of some interface (non-scaling) clocks. - Support for clock-based interconnect providers for cases when clock corresponds to bus bandwidth. This is used to enable CPU cluster bandwidth scaling on MSM8996 platforms. One patch is touching a file in the clock subsystem that has been acked by the maintainer. Core changes: interconnect: add clk-based icc provider support interconnect: icc-clk: fix modular build interconnect: drop unused icc_get() interface Driver changes: interconnect: qcom: rpm: Rename icc desc clocks to bus_blocks interconnect: qcom: rpm: Rename icc provider num_clocks to num_bus_clocks interconnect: qcom: rpm: Drop unused parameters interconnect: qcom: rpm: Set QoS registers only once interconnect: qcom: rpm: Handle interface clocks interconnect: qcom: icc-rpm: Enforce 2 or 0 bus clocks interconnect: qcom: rpm: Don't use clk_get_optional for bus clocks anymore interconnect: qcom: msm8996: Promote to core_initcall interconnect: qcom: rpm: allocate enough data in probe() dt-bindings: interconnect/msm8996-cbf: add defines to be used by CBF clk: qcom: cbf-msm8996: scale CBF clock according to the CPUfreq dt-bindings: interconnect: fsl,imx8m-noc: drop unneeded quotes Signed-off-by: Georgi Djakov ---------------------------------------------------------------- Dan Carpenter (1): interconnect: qcom: rpm: allocate enough data in probe() Dmitry Baryshkov (4): dt-bindings: interconnect/msm8996-cbf: add defines to be used by CBF interconnect: add clk-based icc provider support clk: qcom: cbf-msm8996: scale CBF clock according to the CPUfreq interconnect: icc-clk: fix modular build Georgi Djakov (2): Merge branch 'icc-cbf' into icc-next Merge branch 'icc-qos' into icc-next Johan Hovold (1): interconnect: drop unused icc_get() interface Konrad Dybcio (8): interconnect: qcom: rpm: Rename icc desc clocks to bus_blocks interconnect: qcom: rpm: Rename icc provider num_clocks to num_bus_clocks interconnect: qcom: rpm: Drop unused parameters interconnect: qcom: rpm: Set QoS registers only once interconnect: qcom: rpm: Handle interface clocks interconnect: qcom: icc-rpm: Enforce 2 or 0 bus clocks interconnect: qcom: rpm: Don't use clk_get_optional for bus clocks anymore interconnect: qcom: msm8996: Promote to core_initcall Krzysztof Kozlowski (1): dt-bindings: interconnect: fsl,imx8m-noc: drop unneeded quotes .../devicetree/bindings/interconnect/fsl,imx8m-noc.yaml | 2 +- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/clk-cbf-8996.c | 60 ++- drivers/interconnect/Kconfig | 6 + drivers/interconnect/Makefile | 2 + drivers/interconnect/core.c | 52 +-- drivers/interconnect/icc-clk.c | 174 ++++++++ drivers/interconnect/qcom/icc-rpm.c | 112 ++--- drivers/interconnect/qcom/icc-rpm.h | 22 +- drivers/interconnect/qcom/msm8996.c | 35 +- drivers/interconnect/qcom/sdm660.c | 17 +- include/dt-bindings/interconnect/qcom,msm8996-cbf.h | 12 + include/linux/interconnect-clk.h | 22 + include/linux/interconnect.h | 8 - 14 files changed, 382 insertions(+), 143 deletions(-) create mode 100644 drivers/interconnect/icc-clk.c create mode 100644 include/dt-bindings/interconnect/qcom,msm8996-cbf.h create mode 100644 include/linux/interconnect-clk.h