Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp594328ybl; Tue, 7 Jan 2020 11:33:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzcawLDTFKSE+iQocjaCj32lPyAjbL8EHbNumNDjffNHtk701t0Rs7Nyseev7jeNw/HfWFZ X-Received: by 2002:aca:6108:: with SMTP id v8mr19775oib.96.1578425583033; Tue, 07 Jan 2020 11:33:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578425583; cv=none; d=google.com; s=arc-20160816; b=QXOF3TS3LEWL7RLA25f2k3spuHiqTh1f4Tncy+gqKzIuPlGaPxzThUi01eJZ3mgSzR ZlZ9fUHkPki0/gM6c9+PeTn+3I7v+KxBoL3eqeCbkQQczBA3BelfVBqp7BXhkb+70OAb VgCug7aD6H5veDrp7K+mR2yByNHHgwEWILcVRoz+VgMGCyui5eSaWqFbF1YoAOHhja0U dwzJwQL0aD5o8u/KiqkNZVxfr4VCc6i8AbA1SzZjj6tnv9/eT5Ph5jd33ZLRCpbpQjdb O4tIwyarTn7JJjC9ktjTRFvBN0FDhIUymtvKVNuClJL+PfAL69vhczuBsxZeoytDMvie ePww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=H1ad7rjFwqJKREdfqPrnUil+yQWGOMad6EBf7VMu6sw=; b=pya3I519yVpjvXInyJgB+QcBFRdBNiqicWw1EQ7q1h70HiX/EcTF2bN947erylXCuN M6y+1rFDCWZCjI0L4TZuT6xsVnolq3AR3WjkdAKmGriouqqopJ2e1j3FkOpmnI09Z8mi /OvhZC+OUSKFfQ0llPStw68bgnWagCeKkgumnol08j05xWK6S4XOfEv5GldpbXrdBhE+ AVnNtSnuaVuMPsPo82CACrj2NI+S1YADJEZ5NEdc7FjdlhEuZwRmnmHIu56T1aSgGsEN qXotxyd92OJQIiLMRa4lDgQNidJC10Qbqs6Q5+4HQIx4VWALAoZrqda1OG5svjIioQ+0 qDEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="QyKVUg/B"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si488412oil.188.2020.01.07.11.32.51; Tue, 07 Jan 2020 11:33:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="QyKVUg/B"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728843AbgAGTbn (ORCPT + 99 others); Tue, 7 Jan 2020 14:31:43 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:63895 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbgAGTbm (ORCPT ); Tue, 7 Jan 2020 14:31:42 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1578425502; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=H1ad7rjFwqJKREdfqPrnUil+yQWGOMad6EBf7VMu6sw=; b=QyKVUg/BUcBvqqBLnXZtifEp7SpbpOg2+mX0Q4XmxiJQRHJYwiqjs+raJy9RKJgajy5UbWR4 40aXFAvJGLUlNRGmibqCQptxMlGKxi7FnJCz4bLXGCN1zLPCCHPn9fnI0g5Qxj7ZRHkR43+Q SonVDvET9cGuB+qAxy4Tkiab7LA= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e14dc9c.7f2e05dbefb8-smtp-out-n03; Tue, 07 Jan 2020 19:31:40 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 959F1C43383; Tue, 7 Jan 2020 19:31:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id D159CC433A2; Tue, 7 Jan 2020 19:31:39 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 08 Jan 2020 01:01:39 +0530 From: Sibi Sankar To: Evan Green Cc: Rob Herring , Georgi Djakov , Bjorn Andersson , Andy Gross , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , Mark Rutland , David Dai , Saravana Kannan , Viresh Kumar , linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH v3 2/2] interconnect: qcom: Add OSM L3 interconnect provider support In-Reply-To: References: <20191118154435.20357-1-sibis@codeaurora.org> <0101016e7f30ad15-18908ef0-a2b9-4a2a-bf32-6cb3aa447b01-000000@us-west-2.amazonses.com> <0101016e83897442-ecc4c00f-c0d1-4c2c-92ed-ce78e65c0935-000000@us-west-2.amazonses.com> <0101016eac068d05-761f0d60-b1ef-400f-bf84-3164c2a26d2e-000000@us-west-2.amazonses.com> Message-ID: X-Sender: sibis@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-01-08 00:44, Evan Green wrote: > On Mon, Dec 16, 2019 at 10:30 AM Sibi Sankar > wrote: >> >> Hey Evan, >> >> On 12/7/19 12:46 AM, Evan Green wrote: >> > On Wed, Nov 27, 2019 at 12:42 AM Sibi Sankar wrote: >> >> >> >> Hey Evan/Georgi, >> >> >> >> https://git.linaro.org/people/georgi.djakov/linux.git/commit/?h=icc-dev&id=9197da7d06e88666d1588e3c21a743e60381264d >> >> >> >> With the "Redefine interconnect provider >> >> DT nodes for SDM845" series, wouldn't it >> >> make more sense to define the OSM_L3 icc >> >> nodes in the sdm845.c icc driver and have >> >> the common helpers in osm_l3 driver? Though >> >> we don't plan on linking the OSM L3 nodes >> >> to the other nodes on SDM845/SC7180, we >> >> might have GPU needing to be linked to the >> >> OSM L3 nodes on future SoCs. Let me know >> >> how you want this done. >> >> >> >> Anyway I'll re-spin the series once the >> >> SDM845 icc re-work gets re-posted. >> > >> > I don't have a clear picture of the proposal. You'd put the couple of >> > extra defines in sdm845.c for the new nodes. But then you'd need to do >> > something in icc_set() of sdm845. Is that when you'd call out to the >> > osm_l3 driver? >> >> with sdm845 icc rework "https://patchwork.kernel.org/cover/11293399/" >> osm l3 icc provider needs to know the total number of rsc icc nodes, >> i.e I can define the total number of rsc nodes and continue using the >> same design as v3 since on sdm845/sc7180 gpu is not cache coherent. >> >> or have the osm l3 table population logic and osm icc_set as helpers >> and have it called from the sdm845/sc7180 icc driver so that we would >> be able to link osm_l3 with rsc nodes on future qcom SoCs. > > I see, so if we use the same design as v3, then the number of nodes is > established at compile-time, and ends up being specific to sdm845. I'm > fine with either approach, maybe leaning towards the hardcoded > #defines you have now, and waiting to do the refactoring until you > actually have two SoCs that can use this. > -Evan Thanks will stick to the #defines for now. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.