Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp646131pxb; Tue, 3 Nov 2020 08:47:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ0NE2oWriMzMpsFRg9jnwc+ItXHmHYx2xYHd19XzpRRoLgGkgC5oSh4DDlzv+EZAPUmnx X-Received: by 2002:a17:906:a00c:: with SMTP id p12mr12829631ejy.249.1604422078237; Tue, 03 Nov 2020 08:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604422078; cv=none; d=google.com; s=arc-20160816; b=lwtsjIKKDNY5qplEpqFAbHQbLnS8UmGeZEWvYF4oYks2jdefNkJbun6ycgMx8OydbI OcQQEe9RwLKw309QbP2JlIoyns6ZOPTEMTJnbaGMOT5IRC8N11rU87P1eVy060Texm0J /6t8nQLfcs5NEtLm8WNCIQmb1NLUYtEekrMIxUghckiG8aUlZKQla3WsYrtu8J94ABFH 8yC4qRwtcf441bDbvICHMng16yV2iXxeo+6s2EFNFy9G0I0B0J6OoRgL4fp34GYa+/SG IX9r2sncV1m51CI0G6RxLv1oJXtP3KP02f1ii9rrtM7cwH+uLgVa1GSmGQgFCmBkwE44 P1uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:date:message-id:autocrypt:from:references :cc:to:subject:dkim-signature; bh=QVYSL7Z7XSgVb+kN/ChQfOvuxiKpkqlxd/bMhr/vzd0=; b=joerbgySVQk8/b8ss8DTNCUJXLr93YkCZz+8mOs2UGvEBBAyUtfYYlzrD41Z/N0eD2 kEurt2oA58IH5qyelcvegriiis20BRI5sYhiO24CWG+qdQRbTr86qENdxOBFmBBK/y/j IQ94W3lMOOzoakWedQ6cvn260eVD9dbYHu/kkVuQc+eJa3GlL8qHev1LlqBYwuUVuRsL twwBqIws/Pny8WA/hL3CjwZo79Eo74yCtRlJKGsI6KBSxx9lQnG+Y0SD36X6cCiaTWZi XDyRfyhG9qzicILBwuCKlKNkkfpu0tGiV6R5y3z/qES215kQ2/3wi8/b/2Z39nJjzKmC xiSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eR2eh/ew"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si9872358edy.320.2020.11.03.08.47.34; Tue, 03 Nov 2020 08:47:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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="eR2eh/ew"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728525AbgKCQpO (ORCPT + 99 others); Tue, 3 Nov 2020 11:45:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728508AbgKCQpN (ORCPT ); Tue, 3 Nov 2020 11:45:13 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E58CC0617A6 for ; Tue, 3 Nov 2020 08:45:11 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id v5so13392578wmh.1 for ; Tue, 03 Nov 2020 08:45:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QVYSL7Z7XSgVb+kN/ChQfOvuxiKpkqlxd/bMhr/vzd0=; b=eR2eh/ew+5BKh8a8YAYPPrPz99u4o8NTTZPjaHpYEpPSkNh8KQm90kx2omCbKCLedO SqztYlervHqm0+Hht0b9EOr8U4Y97NyEEHjfv67mW8qeUCEQTzP8F+j8BY8Gxi4bsRQO C4PAObCYns+hKSe4u7X/USssgryGxFxwVjX/4A2tydK/5PX8E6+8OIBEy3nWQ7ufMj7y 4dUvpd7ZiBdgus7Bib44KWrgvAx8IagpfJukBvdwG5VU9YGF7n+bnhmpwcpx5ubraL3a D+7KBSTA4P3kqX6vtb2cd3ocRQDJTJBPfJiBm1Y/3KiTgQ77piHoSPaM7EZyKU4mh0no EZRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QVYSL7Z7XSgVb+kN/ChQfOvuxiKpkqlxd/bMhr/vzd0=; b=Iruet9PEiz4G4lHuBw9FaC0kc7JoMMhIXg1BUlngxIfmlCx9posNOv+BbFPJqESAwr tYnwi/7zSqX4g86SuTDAIKN+9vIK33QKKB/n9DiLusfnU0TSf11nLaaejqKP/OnSikbe ipuBIBAIfIH+X4SDWCfKxyO+sgWxy3WimC6kuANOQSyWxBQnxRi05+GPlj3V21ldZLBC L76XVE2kA0uMHcKbITklp9zRWMcauFZfi6dYiYBz1ksUfJHEKnFEy5/Z9k2kP1nVmRRi 046isSG+a15IRH7TjEhqpZONUSldWteGm9HO7iA/bvOMaKInElE8aK3mg9V9KhKJtmnq 7+oA== X-Gm-Message-State: AOAM533cOnvfCyWSTzyJYpURuMOLY0OEQHcqL2FimrDu258lCFVL/8aG Ud+X8N1PmWmbciv++B73U9SUag== X-Received: by 2002:a05:600c:210:: with SMTP id 16mr21621wmi.122.1604421910339; Tue, 03 Nov 2020 08:45:10 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id v6sm3430544wmj.6.2020.11.03.08.45.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Nov 2020 08:45:09 -0800 (PST) Subject: Re: [PATCH 5/5] interconnect: qcom: Add MSM8939 interconnect provider driver To: Jun Nie Cc: devicetree@vger.kernel.org, bjorn.andersson@linaro.org, agross@kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, shawn.guo@linaro.org References: <20200930081645.3434-1-jun.nie@linaro.org> <20200930081645.3434-6-jun.nie@linaro.org> From: Georgi Djakov Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= xsFNBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6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tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <39ad2fc8-8604-5529-c2d5-d5b434f19859@linaro.org> Date: Tue, 3 Nov 2020 18:45:12 +0200 MIME-Version: 1.0 In-Reply-To: <20200930081645.3434-6-jun.nie@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/20 11:16, Jun Nie wrote: > Add driver for the Qualcomm interconnect buses found in MSM8939 based > platforms. The topology consists of four NoCs that are controlled by > a remote processor that collects the aggregated bandwidth for each > master-slave pairs. > > Signed-off-by: Jun Nie > --- > drivers/interconnect/qcom/Kconfig | 9 + > drivers/interconnect/qcom/Makefile | 2 + > drivers/interconnect/qcom/msm8939.c | 355 ++++++++++++++++++++++++++++ > 3 files changed, 366 insertions(+) > create mode 100644 drivers/interconnect/qcom/msm8939.c > > diff --git a/drivers/interconnect/qcom/Kconfig b/drivers/interconnect/qcom/Kconfig > index 25486de5a38d..6395404bfe3f 100644 > --- a/drivers/interconnect/qcom/Kconfig > +++ b/drivers/interconnect/qcom/Kconfig > @@ -17,6 +17,15 @@ config INTERCONNECT_QCOM_MSM8916 > This is a driver for the Qualcomm Network-on-Chip on msm8916-based > platforms. > > +config INTERCONNECT_QCOM_MSM8939 > + tristate "Qualcomm MSM8939 interconnect driver" > + depends on INTERCONNECT_QCOM > + depends on QCOM_SMD_RPM > + select INTERCONNECT_QCOM_SMD_RPM > + help > + This is a driver for the Qualcomm Network-on-Chip on msm8939-based > + platforms. > + > config INTERCONNECT_QCOM_MSM8974 > tristate "Qualcomm MSM8974 interconnect driver" > depends on INTERCONNECT_QCOM > diff --git a/drivers/interconnect/qcom/Makefile b/drivers/interconnect/qcom/Makefile > index f5e803489de0..84b75022f0d8 100644 > --- a/drivers/interconnect/qcom/Makefile > +++ b/drivers/interconnect/qcom/Makefile > @@ -2,6 +2,7 @@ > > icc-bcm-voter-objs := bcm-voter.o > qnoc-msm8916-objs := msm8916.o > +qnoc-msm8939-objs := msm8939.o > qnoc-msm8974-objs := msm8974.o > icc-osm-l3-objs := osm-l3.o > qnoc-qcs404-objs := qcs404.o > @@ -13,6 +14,7 @@ icc-smd-rpm-objs := smd-rpm.o icc-rpm.o > > obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o > obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o > +obj-$(CONFIG_INTERCONNECT_QCOM_MSM8939) += qnoc-msm8939.o > obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o > obj-$(CONFIG_INTERCONNECT_QCOM_OSM_L3) += icc-osm-l3.o > obj-$(CONFIG_INTERCONNECT_QCOM_QCS404) += qnoc-qcs404.o > diff --git a/drivers/interconnect/qcom/msm8939.c b/drivers/interconnect/qcom/msm8939.c > new file mode 100644 > index 000000000000..dfbec30ed149 > --- /dev/null > +++ b/drivers/interconnect/qcom/msm8939.c > @@ -0,0 +1,355 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2020 Linaro Ltd > + * Author: Jun Nie > + * With reference of msm8916 interconnect driver of Georgi Djakov. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include Nit: Move this above platform_device.h to make it sorted. > + > +#include > + > +#include "smd-rpm.h" > +#include "icc-rpm.h" > + [..] > +static const struct of_device_id msm8939_noc_of_match[] = { > + { .compatible = "qcom,msm8939-bimc", .data = &msm8939_bimc }, > + { .compatible = "qcom,msm8939-pcnoc", .data = &msm8939_pcnoc }, > + { .compatible = "qcom,msm8939-snoc", .data = &msm8939_snoc }, > + { .compatible = "qcom,msm8939-snoc-mm", .data = &msm8939_snoc_mm }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, msm8939_noc_of_match); > + > +static struct platform_driver msm8939_noc_driver = { > + .probe = msm8939_qnoc_probe, > + .remove = qnoc_remove, > + .driver = { > + .name = "qnoc-msm8939", > + .of_match_table = msm8939_noc_of_match, The sync_state patches got merged, so please add this: .sync_state = icc_sync_state, Thanks, Georgi > + }, > +}; > +module_platform_driver(msm8939_noc_driver); > +MODULE_AUTHOR("Jun Nie "); > +MODULE_DESCRIPTION("Qualcomm MSM8939 NoC driver"); > +MODULE_LICENSE("GPL v2"); >