From patchwork Fri Sep 3 23:24:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 507065 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38568C433EF for ; Fri, 3 Sep 2021 23:24:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1687D6108E for ; Fri, 3 Sep 2021 23:24:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350747AbhICXZ0 (ORCPT ); Fri, 3 Sep 2021 19:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350743AbhICXZ0 (ORCPT ); Fri, 3 Sep 2021 19:25:26 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95B96C061575 for ; Fri, 3 Sep 2021 16:24:25 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id g14so1162197ljk.5 for ; Fri, 03 Sep 2021 16:24:25 -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=IUwnbvSZ0rkQ9qg3kU6ANLBK6G3PxyD2rj1Sq6Ru594=; b=sUGNY1nPTcv0fVc209lJ/yYIFXgs5/3ZpdMTXfK6IkUFdSDaW4BtX+u5XrbRVE1UzF bcAKLSt9aucssUZqcQKTX0zkfFTAkQw+xunw0LKAJ8avPqlCa1irC8y5M8jAT2P2sDaz fbrHUaUhJhal8sC4tDVOcqzu89CqngfIxaDE0s31Cgx1LQ/L+8XD7ilUgc0nbUM5rZku OYTP5rRNdcuD9kcHB7RXGw6prZcCxD2zgAGBelnTHYYQj/defl81Jx4EOHJQ1Wl/GdVe jAajhz47/DvdoLtA6ovWWV2gA3d8vkZiyZiHUpGXJYUWsTGBGQRYNjmPTfevI9n49krD ziXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IUwnbvSZ0rkQ9qg3kU6ANLBK6G3PxyD2rj1Sq6Ru594=; b=eDqx69rj4Q34R6myBfNiYH+1P8HBZfjfYACZeK21N4OmnY/Mkpada/Ct3lzCMG/69n aghsH76zkVs/1022gasIqzS8FCSQvemxr57O3mF9sptZdUm+6VTuUAuLh9cw7AqMGD1o AqyEJtI5cKvEfwecdz+5weGjHW/xQ4kLHlsxX8XL4BZgHu+/zdX4CY2YsR1Ec1smsMl1 iBa0fSlhCPxl1oMnecj6vnNAuC23TFj0oYNGqv+S90mxqOUqLrY62jPSgozQo45Pp144 BvoSQi6TIHRRwWmgZKCfH4ivMmh/S64EMr0MR9I0r4lhWV0izfkO2F+AJDuEczMZ/OSf xMdw== X-Gm-Message-State: AOAM532j0ag/hFUMYMoqJzAqG3xgYYMl7re6nykxoeveorJe5rGpV/D8 HlxZTOkVP3LzXEbTAZ85ZJP2iQ== X-Google-Smtp-Source: ABdhPJzzpHnQxaDu6ygc9KUcDwCLE7RpQUtyIhbADTpJPk97QOVDcVZPNTHXQUUr8nb0zb1mmpf0IQ== X-Received: by 2002:a05:651c:225:: with SMTP id z5mr965852ljn.409.1630711463930; Fri, 03 Sep 2021 16:24:23 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id w3sm56924ljm.13.2021.09.03.16.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 16:24:23 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Georgi Djakov Cc: AngeloGioacchino Del Regno , Shawn Guo , Yassine Oudjana , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v2 0/11] interconnect: merge AP-owned support into icc-rpm Date: Sat, 4 Sep 2021 02:24:10 +0300 Message-Id: <20210903232421.1384199-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch series merges support for AP-owned and bus QoS from SDM660 into common code (icc-rpm.c). MSM8916 and MSM8939 support code is extended to support these features. As I was touching these drivers, per Bjorn's suggestion expand DEFINE_QNODE macros (which makes adding QoS support much easier to review). Dependencies: - https://lore.kernel.org/linux-arm-msm/20210902054915.28689-1-shawn.guo@linaro.org/ - https://lore.kernel.org/linux-arm-msm/20210823014003.31391-1-shawn.guo@linaro.org/ - https://lore.kernel.org/linux-arm-msm/20210824043435.23190-1-shawn.guo@linaro.org/ Changes since v1: - Rebase on top a2noc clocks support patch. - Expand DEFINE_QNODE - Simplify struct qcom_icc_node by moving links to separate array ---------------------------------------------------------------- Dmitry Baryshkov (11): interconnect: icc-rpm: move bus clocks handling into qnoc_probe interconnect: sdm660: expand DEFINE_QNODE macros interconnect: sdm660: drop default/unused values interconnect: sdm660: merge common code into icc-rpm interconnect: icc-rpm: add support for QoS reg offset interconnect: msm8916: expand DEFINE_QNODE macros interconnect: msm8916: add support for AP-owned nodes interconnect: msm8939: expand DEFINE_QNODE macros interconnect: msm8939: add support for AP-owned nodes interconnect: qcs404: expand DEFINE_QNODE macros interconnect: qcom: drop DEFINE_QNODE macro drivers/interconnect/qcom/icc-rpm.c | 263 ++++- drivers/interconnect/qcom/icc-rpm.h | 56 +- drivers/interconnect/qcom/msm8916.c | 1214 ++++++++++++++++++++-- drivers/interconnect/qcom/msm8939.c | 1283 +++++++++++++++++++++-- drivers/interconnect/qcom/qcs404.c | 967 +++++++++++++++-- drivers/interconnect/qcom/sdm660.c | 1940 ++++++++++++++++++++++++----------- 6 files changed, 4815 insertions(+), 908 deletions(-) Tested-by: Shawn Guo