From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754285AbeD3Odt (ORCPT ); Mon, 30 Apr 2018 10:33:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:58370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753558AbeD3Odr (ORCPT ); Mon, 30 Apr 2018 10:33:47 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F59622D47 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org X-Google-Smtp-Source: AB8JxZoLAottONdPgfLMxRSRzM8qvxU919T4CfVg82xRWFKGa+vwBLfraqA+9U1xiAwHZVdNSCuPP2BCCqisDf7Qs4Y= MIME-Version: 1.0 In-Reply-To: References: <1524524972-12014-1-git-send-email-rishabhb@codeaurora.org> <1524524972-12014-2-git-send-email-rishabhb@codeaurora.org> <20180427142144.tvy5xamuwz6jnxk5@rob-hp-laptop> From: Rob Herring Date: Mon, 30 Apr 2018 09:33:25 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: Documentation for qcom, llcc To: Rishabh Bhatnagar Cc: "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-arm-msm , devicetree@vger.kernel.org, linux-arm@lists.infradead.org, "linux-kernel@vger.kernel.org" , Trilok Soni , Kyle Yan , ckadabi@codeaurora.org, Evan Green Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 5:57 PM, wrote: > On 2018-04-27 07:21, Rob Herring wrote: >> >> On Mon, Apr 23, 2018 at 04:09:31PM -0700, Rishabh Bhatnagar wrote: >>> >>> Documentation for last level cache controller device tree bindings, >>> client bindings usage examples. >>> >>> Signed-off-by: Channagoud Kadabi >>> Signed-off-by: Rishabh Bhatnagar >>> --- >>> .../devicetree/bindings/arm/msm/qcom,llcc.txt | 60 >>> ++++++++++++++++++++++ >>> 1 file changed, 60 insertions(+) >>> create mode 100644 >>> Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt >> >> >> My comments on v4 still apply. >> >> Rob > > > Hi Rob, > Reposting our replies to your comments on v4: > > This is partially true, a bunch of SoCs would support this design but > clients IDs are not expected to change. So Ideally client drivers could > hard code these IDs. > > However I have other concerns of moving the client Ids in the driver. > The way the APIs implemented today are as follows: > #1. Client calls into system cache driver to get cache slice handle > with the usecase Id as input. > #2. System cache driver gets the phandle of system cache instance from > the client device to obtain the private data. > #3. Based on the usecase Id perform look up in the private data to get > cache slice handle. > #4. Return the cache slice handle to client > > If we don't have the connection between client & system cache then the > private data needs to declared as static global in the system cache driver, > that limits us to have just once instance of system cache block. How many instances do you have? It is easier to put the data into the kernel and move it to DT later than vice-versa. I don't think it is a good idea to do a custom binding here and one that only addresses caches and nothing else in the interconnect. So either we define an extensible and future-proof binding or put the data into the kernel for now. Rob