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: 506555 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp1976367ejj; Fri, 3 Sep 2021 16:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV79DVz8ddnrOgE3QQvLmnRvQJupC1PuGiJmjw45PQtv3m3W22luggZQKTZkFzzgOzP4a/ X-Received: by 2002:a17:906:7a0d:: with SMTP id d13mr1431608ejo.70.1630711467733; Fri, 03 Sep 2021 16:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630711467; cv=none; d=google.com; s=arc-20160816; b=LFYGK0V9ajHeZ+D2Kv/W0dX76UrCigyF3Sus+IUMsYKXIVzIpZWxEBU8aSzA+UxXXK Xo3R/kqb8/EoOCnh8FInxElEYJK66lqYqGILifi1djxF+EHZBN27yW4A3dc+FmWFDyK3 wTe4ZLMEA1pveVoM+44RZhdy/cINHwcVVsX16QHlRfGgAaslQSJrhu2RO6RY08MjIRVs eu4LITviWxDe5DOGy8yQl8Eaqa1KpqX/BoKvbGaKBhjai+0pvS4HaP4t0fcE0HgIigQT pjD1D85bu5M3dR2eRtZODi6tKQuX1UP2i+P1sfjbBs7467+R7jD9Ok+pVzDN/BENYabu cs8w== 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=IUwnbvSZ0rkQ9qg3kU6ANLBK6G3PxyD2rj1Sq6Ru594=; b=fWdr3gPPxBUP0gE0P88S95pECQOPIq2IfC17dLH3DaBsLULPvqJpUKoVeagRkiMmBw 8o3zy3RmNAK6i9plDXC7/aEHz5ctnGU1wsuqnSK3Ykdz39a9UwhEQa2oW0CbccFeCatt jScaKRiYDhtMdJZDxUh7+b2NixLg6BrY8khbGYycEruUvYxAqveZcffrrYh2g4v9DQ3T GvyXA0yF8MyJoqh9ST1ErXFWS01Co6aTWIGLJtMGSIG6e7PdEgGP/cIk0MHoslTUyyNg FXZ9eieFep3gdYoBZTo1UqyhB4vbQBUgfTVMJIq9xnDd0EW7mU4aERCGaN8Kfd2H5Cdj aMqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sUGNY1nP; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp5si572394ejc.132.2021.09.03.16.24.27; Fri, 03 Sep 2021 16:24:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sUGNY1nP; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1350748AbhICXZ0 (ORCPT + 7 others); Fri, 3 Sep 2021 19:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350746AbhICXZ0 (ORCPT ); Fri, 3 Sep 2021 19:25:26 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95FC2C061757 for ; Fri, 3 Sep 2021 16:24:25 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id i28so1150927ljm.7 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=m2+dsHrGvBNHvHX/p54w36bwVHYIsGdTff3P28tAbYNy4CwzvTS+PcY1QMiCebygcC Bmex72KN21miP/6E2yl1ccX3gbdQyI9fgQ+DYP5bf2eHUVVmqTM/OafGyGIlnD5HsDXE ORaPm6wOT+oZYDeu0PRuCjw4BCY5rXGTT3kF4y6e3tsaF/YeLTYguVwhFR8au1VhEb+V nkXU37tLxZxlbMD1/OA33nRxJNbem0eCYiW2btK1H2I/w62Sxqi6/k2a7c7e6bLxpDqX YzL5vXaWbWY9+uEsVCgZ9s/0qlqyRR1uwQlSPkyVOtwBvc4CimOHXle1ZASF/oeeUZCJ eRow== X-Gm-Message-State: AOAM5327/o31AJy8lZe1oncVWCJWhHvlG70KSneB+1cl2CDQDefwtZJ/ Ixq0a1mQR8mECMqQylYazNJStw== 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-pm@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