Received: by 10.192.165.148 with SMTP id m20csp1255503imm; Fri, 27 Apr 2018 15:58:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr10Wk390rL7WK0cB8J0EH+3td0mGKc7E6zMsrkODMR+YVOXC0tq0XethDylxe3CeClAs6X X-Received: by 10.98.57.156 with SMTP id u28mr3765514pfj.95.1524869907933; Fri, 27 Apr 2018 15:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524869907; cv=none; d=google.com; s=arc-20160816; b=xx+cFriKgMRnTEYvHIsb3S+B8F+56dJ3VAPpiMk1D5ZvHWQChZoxhzWFXBYWzDmzG/ M6cKPTj/uFD5OGTePBHXAeKOnAry9tTwfqprVSQO1mq3tJF9TgX1NwTHhfhcM+KD67iZ YeafyBH2Q8ltI2l4fS2aU7Au6k+XsbN6X/6aqrC/BsaYPMCS6H9gz7gqQML+WyaIEJkt xHb3Ewhu8xfrPI1Cbx5+jycYoVRAX9LJoq0MAUhzSU0QzzXCoDy2glv5pitzISRwyM5b jZdes7BloUC3CtIXfMQ0aJQbQgTm6t7xuDgh1jYQnO0EFuy0ptrYTSd6kRqxqNPGWmz/ xPXQ== 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=IQvKWt2bQKBJxaR5hHkct3sldquil/7sEIW4Wilhnd8=; b=z7/4+L2pxFvoRZZgEPQlfRkiV/iqlAvdy+TZG9HAowbqvEdQdp23zgTO7B7lcMs4Qf 6u5zFU4GVmUvJ06QZ1fnnLhX3Xs3x2Ss3JVONL4yBFKd4X8ugV4+wmPTzPcXMUxzrwwD VsLC2MQYi4u3KxTmDVQi84ghhrM9+t+ME9zKTJfOm7OEcKVZ6IzfXKKmeU+QzI2ym5hg HAUlPsIy7SqyHneqCOJUUlbaV0k0yb0E23FxsZxZ+8XUbnu7sEUI/kcSFBZqmSzwboUA utmP6ntZ5fWa9wBsFExh8Dw8Zy2IHkIBifZ63VP+equE39Lt+dHMPlHj1DMXR5926jVl imqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=QxUfwt7W; dkim=pass header.i=@codeaurora.org header.s=default header.b=QxUfwt7W; 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 l9si2159365pff.270.2018.04.27.15.58.14; Fri, 27 Apr 2018 15:58:27 -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=QxUfwt7W; dkim=pass header.i=@codeaurora.org header.s=default header.b=QxUfwt7W; 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 S932996AbeD0W5F (ORCPT + 99 others); Fri, 27 Apr 2018 18:57:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48482 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759401AbeD0W5D (ORCPT ); Fri, 27 Apr 2018 18:57:03 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C2835607C6; Fri, 27 Apr 2018 22:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524869822; bh=sr4tGei4x+BucuJTZZ/TUrg1TMaPCbQHs0KNobENaps=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QxUfwt7W7UOAPEa+jbMaSo9+JysAZc85mI6YGMfcYCT5NsBupHETxrJVpthqWRYvn SG2xW4wzFCHlZ6s+vjjUeB9imbsdG1YEJxI0n+miibBS2wJnCCTYZrMFu3cRKpLxNd h+hpwMrI/SEwMyogbDKpPA7xy1uf0ldT2p2geF5s= 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 2280C60310; Fri, 27 Apr 2018 22:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524869822; bh=sr4tGei4x+BucuJTZZ/TUrg1TMaPCbQHs0KNobENaps=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QxUfwt7W7UOAPEa+jbMaSo9+JysAZc85mI6YGMfcYCT5NsBupHETxrJVpthqWRYvn SG2xW4wzFCHlZ6s+vjjUeB9imbsdG1YEJxI0n+miibBS2wJnCCTYZrMFu3cRKpLxNd h+hpwMrI/SEwMyogbDKpPA7xy1uf0ldT2p2geF5s= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 27 Apr 2018 15:57:02 -0700 From: rishabhb@codeaurora.org To: Rob Herring Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, kyan@codeaurora.org, ckadabi@codeaurora.org, evgreen@chromium.org Subject: Re: [PATCH v5 1/2] dt-bindings: Documentation for qcom, llcc In-Reply-To: <20180427142144.tvy5xamuwz6jnxk5@rob-hp-laptop> 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: 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-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. Please let us know what you think.