Received: by 10.192.165.148 with SMTP id m20csp4373171imm; Mon, 30 Apr 2018 17:38:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbwAsuswrOvEy7Aq2CUykTkIy10EcJfmBrlpcM60JqX9oSkjWSwnw/bybSIQta7yPBBPbc X-Received: by 2002:a63:740d:: with SMTP id p13-v6mr7176818pgc.327.1525135096989; Mon, 30 Apr 2018 17:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525135096; cv=none; d=google.com; s=arc-20160816; b=jPUYk7rjPEg/mVtr/Ns1Bih3DHDXixHfTMzlrOsVNhcwh45oFs7/8ef8ySh+lnoxgF vH1E/cui5Jjz/Pfwr7Ay2kV+35Mddld7o5gtlZe6t1M9fOMlEOQnyKCgqeXx02H1yf9C gDv4zdb3JFSv5iEnnZkilKh2IHzDeNC3GYb6qCUBCFoWMYBWjQVDzRhodAz3Za+rOoPe qJEPQdzrtxRZ/+raRfX5A05xfL0tLHAhV+ffcbU4rr7r31hIHbq3C3rR+zjRhHBJ7JAA puuO+eJsmZPcmurvkuKZuji5cG7c3GY+mlcHCFbhJ4BGQx7JCJTgJQ/TSQkEDy8nR8DB oghg== 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:dkim-signature :arc-authentication-results; bh=PN3GmSJQvri5VXuaJXtwx2Q2WX6r4UAtrSjJcLmHWgQ=; b=M/Jll2fCvnTC499jblLpN/XmvIkBFh2tTYmXjAbzP3F8s4Oi9y9LYHoDtfuRcNfdGL jXTVu2krEPEUHCdOZ36DpvGyOz6yYSPnhEDLrgnAsq+6/sySPAp5Ud7B+WqcyxQ7bgKM DEwIO6G8Fzs2I7nD7lCaiA37xOrEH51Edyge0mG458dkA+SwrDOcZ9TSCQdavAgIGJsO c/NFxXjBQVDVf9dVzdlCmp3ATwpEA4ZC+eIlU0T09bv620/howXA0tmFxEFCZXSJE4Ee PJHQK2XZ7ijnlBjio6ZWzkwLj45nrUH83eZWWyqX3Jru3CKUGk2Dm2FXF130w4rT8GPq RAjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SK+QqktT; dkim=pass header.i=@codeaurora.org header.s=default header.b=Fv0ryi/d; 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 b9-v6si7950427pls.339.2018.04.30.17.38.02; Mon, 30 Apr 2018 17:38:16 -0700 (PDT) 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=@codeaurora.org header.s=default header.b=SK+QqktT; dkim=pass header.i=@codeaurora.org header.s=default header.b=Fv0ryi/d; 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 S1755761AbeEAAhw (ORCPT + 99 others); Mon, 30 Apr 2018 20:37:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36224 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbeEAAhv (ORCPT ); Mon, 30 Apr 2018 20:37:51 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5D8CE60767; Tue, 1 May 2018 00:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525135070; bh=rk5Aw5wLXoinCsaWHB/zCXFGBgQukOCEXOlHpFTGHqk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SK+QqktTWylG8gtnITRpQV3kgZUfVYOleendNkuPEDwe2Ti05/G6SqDK8qgxlMyg6 0Sk9ESLcDc+ObTnz/aPABVy+GIkGLqYahOjWt3OttkMo9vBcd0ulng/iQ12RmmVCS+ fpGb4VAFbRImIX2VR5dsVIump7vw20enOs4X4E+8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 8798360588; Tue, 1 May 2018 00:37:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525135069; bh=rk5Aw5wLXoinCsaWHB/zCXFGBgQukOCEXOlHpFTGHqk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Fv0ryi/dBWSyXDBLEZBUo5r8FOblfsFOFJgmbJlHJTJ5sMSZRFSEd5ACE6H9uoLjZ 3bU79VUNwNZv5udF9+Z36/tfoqFXxLz+6WxcUOtT3ZSvQaBPvvRCu4+nDZpVK+oIaM IHGTg9acSLmj3SzgCzeGC2Fluiovq+MzEq1VqiBw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 30 Apr 2018 17:37:49 -0700 From: rishabhb@codeaurora.org To: Rob Herring 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 Subject: Re: [PATCH v5 1/2] dt-bindings: Documentation for qcom, llcc 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> Message-ID: <4b47ff9a5aa1b51a2810aff6203878f9@codeaurora.org> X-Sender: rishabhb@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-30 07:33, Rob Herring wrote: > 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 Hi rob, Currently we have only instance but how do you propose we handle multiple instances in future? Currently we do a lookup in the private data of the driver to get the slice handle but, if we were to remove the client connection we will have to make lookup table as global and we can't have more than one instance. Also, can you suggest any extensible interconnect binding that we can refer to?