Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp581441pxu; Fri, 4 Dec 2020 10:11:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgqDvvhBtiEvpPJQ7XxUIh/5OuXVb+/wOfng8A9s2SGB/LUv3VdRI8kLaSu9Yu/HC7WNta X-Received: by 2002:a17:906:fa88:: with SMTP id lt8mr8383187ejb.408.1607105467998; Fri, 04 Dec 2020 10:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607105467; cv=none; d=google.com; s=arc-20160816; b=SBbaOgM8XyX/UTrws+SfKUJ7ACjjxeK5vOSOv6b1WPrdQRM0RlK0LbiJALKHOXk4ti IfDCmS7bQITCzv1BRRUrSocmotxQyfhtFfOSg0FdQ+YVsxVGyurFWRIm4Sy1DMoUIAMt EQ7Cl1THNJD739dJNRKLTnmWInwJeIdEG6VvOpuQAb13YS92xZzCK8VdgoWWFJa4HBsF 9crfHvEF18pocY101a3qbvTmVgIJCh8Nw4WS+VNXk15mJYvi88sdEhw3I37kNEGQr8Mr 2z5caULyQKOhxinV0pnO47VXTpkmoW+x8IDxda1qIuge/bLUj8CBC3N1g8fHNOVIIy52 rmqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QRr0ZNZnscQyUTRMXdBCHRyqUplZRl6ao3xQwu2hQ2c=; b=ccZj+D+f2VeYFcUjCzcS7SDI1WSl+5DIUzQ+ImMVV25vGHJORtO+YDBtAQujaEUnFg dIt0lHEElIZesnZKiTJU/q2V70C0EVucthw+ztvtaIUwzzdcfu2h2uTNY1qBOHzBsxnH BtWKvA3ctBMN5r8M4hAculHng37LPI1IvL3hiG2xNRrITZXRnJ+S7Zpf/3baKUBRqMRY o5BJrMNaoqdW3JW5Vx+oCbS5tAmkfALrh7l70NAAE6wDwXo4NH75ZXFdl8dxlJyBe8R/ ay5MTZvLu2nciyDhDlV9i/brpr74xFduoZTIqNkR6mRLg1NKcVlEX8ptzf6oTj5DcnZM lB1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SwFYmamE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si3286220edv.588.2020.12.04.10.10.45; Fri, 04 Dec 2020 10:11:07 -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=@gmail.com header.s=20161025 header.b=SwFYmamE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387514AbgLDSHC (ORCPT + 99 others); Fri, 4 Dec 2020 13:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727997AbgLDSHC (ORCPT ); Fri, 4 Dec 2020 13:07:02 -0500 Received: from mail-vk1-xa43.google.com (mail-vk1-xa43.google.com [IPv6:2607:f8b0:4864:20::a43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE059C061A52; Fri, 4 Dec 2020 10:06:21 -0800 (PST) Received: by mail-vk1-xa43.google.com with SMTP id 145so1472250vky.2; Fri, 04 Dec 2020 10:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QRr0ZNZnscQyUTRMXdBCHRyqUplZRl6ao3xQwu2hQ2c=; b=SwFYmamExdBbtafEcD80BWi/4ObSmCg6tPhL99ALH+TnOB+ciAjv+wwX/Rx9Y9eC7H tuadWc23kn14xUXEg1v3Ht60WGKcZwF0iTCnlZkrZJrfxEEACzjeRp7jZTIzxqBHq5Vb oMmxp23xbsPtovYk43rZfQT92XRfOv9w3pId1E9p6vzwd5Xay51g6NMOPte9LtqDHhib VKjHegbVtHakbwLvSDU1nwA7+/mGR8ncPyIia2HoZUuHl/VmBmNA2aX4X32ROouN61iS tc/vogbnG+rOCZDSfE0WW9Uf2m8hApyPYKyC9hOKmSba1xrrIl2nzRiqoLP5gAFoA+8K TPqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QRr0ZNZnscQyUTRMXdBCHRyqUplZRl6ao3xQwu2hQ2c=; b=N/Mr14vcuiQNqrNITcM0DwP/QpH4N4Sgf1uswcQd9zwAuiZey9SpudPvFmUay9+n6K IPo+CI5zHUHJGUwnL2OqMinRJvaoDnPjnyDh7Gn0ZWuhyb02i9+OakGnJ0/s0wDQAT6h Wi9Ha3C5T8YdWiTCwXTi8kfLYOOcG1vLAD4FubQKbWV5RJdRIG/5L28FdrUDxfYciAXd B/QNpTt2CjXmeFvzq3JFGO/8u14xvBsUjcogVvzyoTPtzt+LQHzoSusKISJEQTGLGKKN W0qyw7nrf/faPNCMMpVD/a/yo7T/F/xNyRH/CCUsZlTAuBouz920VN/f4B10GHsraEVx NZyg== X-Gm-Message-State: AOAM532MCR8Mj2kGRj8Bb7SqIZr5SIZdXXtZh2bg7sgPVLnaR1sQN3Zm Gicuu7aJpqv/qe1o1WsL5aDr8RuFRYoYeTjfLio= X-Received: by 2002:a1f:e7c2:: with SMTP id e185mr4937438vkh.23.1607105180783; Fri, 04 Dec 2020 10:06:20 -0800 (PST) MIME-Version: 1.0 References: <20201017133718.31327-1-kholk11@gmail.com> <20201017133718.31327-3-kholk11@gmail.com> <24ad51dd-ff54-35af-a7bc-92d8cfa30c48@linaro.org> In-Reply-To: <24ad51dd-ff54-35af-a7bc-92d8cfa30c48@linaro.org> From: AngeloGioacchino Del Regno Date: Fri, 4 Dec 2020 19:06:09 +0100 Message-ID: Subject: Re: [PATCH v4 2/2] interconnect: qcom: Add SDM660 interconnect provider driver To: Georgi Djakov Cc: Bjorn Andersson , Rob Herring , Andy Gross , marijns95@gmail.com, Konrad Dybcio , martin.botka1@gmail.com, MSM , phone-devel@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-pm@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il giorno mar 3 nov 2020 alle ore 17:24 Georgi Djakov ha scritto: > > 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 > I'm sorry for the extremely late reply... Anyway, yes, we have lots of patches that are bringing up almost the entire feature set in the SDM630/660 SoCs and we are waiting for them to get merged in before sending the DT updates. Cheers, Angelo > > + }, > > +}; > > +module_platform_driver(sdm660_noc_driver); > > +MODULE_DESCRIPTION("Qualcomm sdm660 NoC driver"); > > +MODULE_LICENSE("GPL v2");