Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp580990ybl; Tue, 7 Jan 2020 11:17:34 -0800 (PST) X-Google-Smtp-Source: APXvYqy/66UCoVMFEl18K7dxB+JwpECReLf7tQCbdMkVHHSM3j3eX7xUjqF+7E1uhgCuRFkIqhGG X-Received: by 2002:aca:bbc6:: with SMTP id l189mr814631oif.53.1578424654695; Tue, 07 Jan 2020 11:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578424654; cv=none; d=google.com; s=arc-20160816; b=W6q6rNYCLys1KTx/mQlJu2M9WNSwdloWRCu7Mi3JUU+eFH+2FEQVq/BqAoDS27ZNRk qY4fX/gxQ7Olu3N/yU/wHLtYTW5tpjpydu6N6Z+4fhhft3ycqK6Xm1+1QMKH5S16zW4D KEfLGx9mQd8Q/OrjGMTIPPSYFfJKJNAxCItSfCm6bU9N1Q2l5jmcMZF5e7DR7CP3qgGc wS3sxmgR3rRqpRIPUpG2gTBPHIKsC5nfGwnPjH9lM0A+BYboJJrfH/jDYSnH3WwOpUIn UY3ws8ZlPEMlw4oveU5LO4FigA51NEljhwJcJ6gtv0fmvTG9RuyJJJylH07QyUA0JyYz evOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=f1zqqKzCp+fQXlk6LschxocOmKVvhkA/tqAPfE1DRwg=; b=XJv88JbiSKspsqgkWYhbDamSyFPL7UhdqdAx7XChOEbTffWVmnw9v2sKA6tZNmVA90 isW3R4gB+1EuM/h410ldiESmBLiXFbeC0KfzMll3xAR9l+jal2u6oDe0ZNg0qy+Ha2Me pOthanbHdgNyTTiPGcJOcznA7j7nt4LJkFnxDzHbXtX6yhZGNtSPzaTJDcmScklVlMC6 +QKXtX/BGuTOAB02CBdLS4W0LhmM2bD/RiYWqfjSV+DArZRpLE/1pwF3Ps3fvSoN0jcP zCntYABmh4zh1Ed4/IidU3b/UMaF6rLLHHG6kyO7LA55VJQZTeAwCCWLavzs3z3U9B7A fK5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EDhJgHdD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n137si457330oig.127.2020.01.07.11.17.22; Tue, 07 Jan 2020 11:17:34 -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=pass header.i=@chromium.org header.s=google header.b=EDhJgHdD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbgAGTPk (ORCPT + 99 others); Tue, 7 Jan 2020 14:15:40 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44955 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728651AbgAGTPj (ORCPT ); Tue, 7 Jan 2020 14:15:39 -0500 Received: by mail-lj1-f195.google.com with SMTP id u71so684488lje.11 for ; Tue, 07 Jan 2020 11:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f1zqqKzCp+fQXlk6LschxocOmKVvhkA/tqAPfE1DRwg=; b=EDhJgHdD+dDxLcD1C/3itQ2bO29EgOrdBk/t20nJfDdtrlsPNTIDxDbM+Ez0gX8F+0 k4fZo6HGwZo+GOY7ukLPoURF/FqujJ5g1MhjZOKRRohMhjOqBs0fgWToJLdXqWCwmVTj RI1rFaO2sYMwFiks9NCAHqPrqQO/BQ/LhGA7o= 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=f1zqqKzCp+fQXlk6LschxocOmKVvhkA/tqAPfE1DRwg=; b=NHdMHT9tltp50Q5f5zHOaP+DqycGqV80Gpzg1ZIHdaA3UFvxEETsQCg1YmHCmsar+M vzXev5kLLmwPZFeSfSyIBaPgfBhZAtd2gjqOLyZgHVwXXGxza8r7SvoTBnngBstAuu6D /OHDDMXwNxTEFEwvpI/U9Ru+1M9cZ7Bai7CYDBGV7q39I6PMUDy2+dJWKmvdYKWcYhEl JkfKLmCgDKohPldhAKuXTdti2XWVZ4yp7e0fy82D8Y8ZUbkULCLesGMHGhvLFetGzDHZ Dom6AsiPt8v1CRwRJWd8al3qTn7ByRYHhb7+nTEkCNS++AZ0e42+P/gXQn2hlNyLjPkh 3rQw== X-Gm-Message-State: APjAAAUGrH7EiURBELB5zYGUv1hlOS/UKlJjLjnMdx6aX6IpuaHIMFar xru4/2uCsgtiROLBcuhG8qZg57ksXOc= X-Received: by 2002:a2e:580c:: with SMTP id m12mr587609ljb.150.1578424537146; Tue, 07 Jan 2020 11:15:37 -0800 (PST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com. [209.85.208.170]) by smtp.gmail.com with ESMTPSA id i1sm216126lji.71.2020.01.07.11.15.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jan 2020 11:15:35 -0800 (PST) Received: by mail-lj1-f170.google.com with SMTP id y6so770573lji.0 for ; Tue, 07 Jan 2020 11:15:35 -0800 (PST) X-Received: by 2002:a05:651c:232:: with SMTP id z18mr497045ljn.85.1578424535265; Tue, 07 Jan 2020 11:15:35 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Evan Green Date: Tue, 7 Jan 2020 11:14:58 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] interconnect: qcom: Add OSM L3 interconnect provider support To: Sibi Sankar 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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