Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp630942pxb; Tue, 3 Nov 2020 08:26:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEPrG2t5ytYAJgRMu3sE5CoxjHpEs/VYOhCGwm6XsmRdr8tWCUQcMMEzZXCB2Vcx9nCM1g X-Received: by 2002:a17:906:6d13:: with SMTP id m19mr14904840ejr.345.1604420788864; Tue, 03 Nov 2020 08:26:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420788; cv=none; d=google.com; s=arc-20160816; b=XQBjj3jApLWnmkPTCIDwCGfYalfL3lVBvCNRoQ9NbAtKOcIRdQ245GKTC+qSOmhM8q ijRonHbYcg5XRKYohImBMHZhP8SoKGuOwOmv9/sJ3RkmlPS5kK/EmJvri3wAU5jbqkGn NKmMXZCUHof0WG6PUL3Vzh4LvMgeeeveTNZtjglQJaYNuEViOQajDb6CQYGjvSpkLFou U1NqQQFpon+y8B/9GFdPtUHZ66Pd3jw50j1lmdf0vuGk7S4uo1MeXwAzzIccV2H9BKCV W24yv0uKBm1syDLiwLXH82x2zQw+aENaaZlTYqcQiqkVSnimcnckGKr3owBw+7W/dwQ3 viMw== 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=TWMGG87FE9uxAtDy09w/VsVP9sl7tO1y2QmrppQSsaE=; b=STwMnnPQsaXerduoBXDEldygweAoSFyQEkzdvQp6sKGSABws8QgEXQ4eTJqPDWxo+F wavjDgXuTiJQD75Brl7AEt9S+6yI0pskYJkxjajp0HfnJEgcLReBtfi6yfbYQT9RXHq8 QdQ6PpraNoxBLzmLTzM/9EGC4u3xTZ03+Y2wGhtu+Dt4XH4aWa+xwmHfm1kFqTQDns05 CQCfhYSRVB22zKtRlXfe+uyItSO2ekJzQ6yZ4pxfuQQBwDV/kOFNtxWnWxZZonibY8Ft 6bg0kc8xEijMRU8cSDp6YwGT/aFaKnAlJTE0YceM1EbT6HKn/Pe0eWcgQRaRH8Fjc3v2 KN5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IpbtN+UA; 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 k12si3541726eds.191.2020.11.03.08.26.04; Tue, 03 Nov 2020 08:26:28 -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=IpbtN+UA; 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 S1728071AbgKCQYa (ORCPT + 99 others); Tue, 3 Nov 2020 11:24:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727921AbgKCQY3 (ORCPT ); Tue, 3 Nov 2020 11:24:29 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA20C061A48 for ; Tue, 3 Nov 2020 08:24:28 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id k10so17855309wrw.13 for ; Tue, 03 Nov 2020 08:24:28 -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=TWMGG87FE9uxAtDy09w/VsVP9sl7tO1y2QmrppQSsaE=; b=IpbtN+UAsR8RU2BqqBRla23ltFM1COkP4gRGqcT5GOM8fNoEJ/7+Fex9YAGctIm1+c cu6th1RS9ruyiCKj+n96Bju2w8T3vmX33aQLPVJQH8oKa0PtHJb3YxnZk49NYIzTFO5l rRFTUgzc1a6dRkxSfVc5H4qXjOwDsBYyNG/3ge/bFHdJLMLgiZBisemjVAm+RMTX8ak2 3yLLrMKMYjOiPa+bzCFeeTrVf1o2hlB/H2qPzr88Dk4q9VO4JT7HDrHI+MeA6+d+tkWo XtOc6ICOOjharPDlq1moJUkhnzGkw+d3YjNdtDqsdtTLfwimf/b9kS7ryBlZhvyUtFwH dloA== 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=TWMGG87FE9uxAtDy09w/VsVP9sl7tO1y2QmrppQSsaE=; b=QEI2OCVSmiOPFwuOMKYWCzbKGlpKt+uxrX/ukEj2hE6WW6vScakbN8FNXJbYuSir4D 27yb2IdhZbyAOfRFQxlaFl4CLUVSVkxSEjbJrmDGZHmtuUDD8pkL0pRv9ojuvvHNk0oN u4lhwXUIC387imibMG7pGoqwCDYUjYAjI4swUUQut/ZTyF+sNOSQN4FKz1lCTBE2jsQF lfc5TaqSEXwEeIbG/794mEKf3Xwg1eZMAqaHhpEN9IlVODtbdPY1nj8/Sqkt8ftn22gW 4tUaTrHazYeqIYXswsXEPA+uixZ9AWk9hRtXOra7U9hKDvJgYdkhc1LjEMcJodU9AXVL DO7w== X-Gm-Message-State: AOAM530xp///s53lvj0hzT/daVjQfP39p5O0eBrKiAH8GytBzIC7E874 JRknAziai2NxMWX4CMt8okghKTK4kQHubQ== X-Received: by 2002:adf:e2c9:: with SMTP id d9mr26915653wrj.11.1604420667261; Tue, 03 Nov 2020 08:24:27 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id b136sm3286005wmb.21.2020.11.03.08.24.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Nov 2020 08:24:26 -0800 (PST) Subject: Re: [PATCH v4 2/2] interconnect: qcom: Add SDM660 interconnect provider driver To: kholk11@gmail.com Cc: bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, marijns95@gmail.com, konradybcio@gmail.com, martin.botka1@gmail.com, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201017133718.31327-1-kholk11@gmail.com> <20201017133718.31327-3-kholk11@gmail.com> 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 f67WiEZgvN7tPXEzi84zT1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Of0vQEokkUGRKWBE0uA3zFVRfLiT6NUjDQ0vdphTnsdA7h01MliZLQ2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <24ad51dd-ff54-35af-a7bc-92d8cfa30c48@linaro.org> Date: Tue, 3 Nov 2020 18:24:28 +0200 MIME-Version: 1.0 In-Reply-To: <20201017133718.31327-3-kholk11@gmail.com> 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 10/17/20 16:37, kholk11@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Introduce a driver for the Qualcomm interconnect busses found in > the SDM630/SDM636/SDM660 SoCs. > The topology consists of several NoCs that are controlled by a > remote processor that collects the aggregated bandwidth for each > master-slave pairs. > > On a note, these chips are managing the "bus QoS" in a "hybrid" > fashion: some of the paths in the topology are managed through > (and by, of course) the RPM uC, while some others are "AP Owned", > meaning that the AP shall do direct writes to the appropriate > QoS registers for the specific paths and ports, instead of sending > an indication to the RPM and leaving the job to that one. > > Signed-off-by: AngeloGioacchino Del Regno > --- > drivers/interconnect/qcom/Kconfig | 9 + > drivers/interconnect/qcom/Makefile | 2 + > drivers/interconnect/qcom/sdm660.c | 922 +++++++++++++++++++++++++++++ > 3 files changed, 933 insertions(+) > create mode 100644 drivers/interconnect/qcom/sdm660.c > [..]> +static const struct of_device_id sdm660_noc_of_match[] = { > + { .compatible = "qcom,sdm660-a2noc", .data = &sdm660_a2noc }, > + { .compatible = "qcom,sdm660-bimc", .data = &sdm660_bimc }, > + { .compatible = "qcom,sdm660-cnoc", .data = &sdm660_cnoc }, > + { .compatible = "qcom,sdm660-gnoc", .data = &sdm660_gnoc }, > + { .compatible = "qcom,sdm660-mnoc", .data = &sdm660_mnoc }, > + { .compatible = "qcom,sdm660-snoc", .data = &sdm660_snoc }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, sdm660_noc_of_match); > + > +static struct platform_driver sdm660_noc_driver = { > + .probe = qnoc_probe, > + .remove = qnoc_remove, > + .driver = { > + .name = "qnoc-sdm660", > + .of_match_table = sdm660_noc_of_match, Just noticed that here we should set the sync_state callback: .sync_state = icc_sync_state, I will fix it up before applying. Are you planning to send a patch that adds the DT nodes? Thanks, Georgi > + }, > +}; > +module_platform_driver(sdm660_noc_driver); > +MODULE_DESCRIPTION("Qualcomm sdm660 NoC driver"); > +MODULE_LICENSE("GPL v2");