Received: by 10.192.165.148 with SMTP id m20csp3857411imm; Mon, 30 Apr 2018 07:34:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXneGLk1KBeYWDPn3vrKs+5wmS9LBjcYE0EHNwc30eRjn/L1m8EM8JB+mRTdyaj8dK2Iwk X-Received: by 2002:a65:4083:: with SMTP id t3-v6mr10243973pgp.129.1525098857360; Mon, 30 Apr 2018 07:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525098857; cv=none; d=google.com; s=arc-20160816; b=h+xOVZYVkUXgqS9SChnhf7dcUhexN+IIoLPJD6jYxxiiV3UPa+kgv/Gud8UA4dsrRN uuOtSlCmn7oiv9nLmH0dhvqdatRax1T+Yvx1MgvSP2swYT1XJC4dQs+SL20uIMVeEaee q6r4D3B7qMGBg8Z4Vblg6etLEgS9yE7yLGgGQNOWzb797jZXR+YlEl3qjCl/zt2Nm/Oi pTxmonx5Cqe2vXstrd08PZhMAkw2uyVBd84ZarunPZFYgz01/NmFTh77/HADab+9//N9 uhOlGqvfe5cxXwLyyLyXuqL9eZL+6w4DpSPOOCRpNxl7d6M3/FwYKYGFC4C8IuHVY6RM taIw== 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 :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=5E1h9XfGmvf0kcRJd8/8n35+J38NJrblS5BHps1Z3jA=; b=JtNfA0MBqAzIx4bb0V+mGu7VElyu6JPh2vJTGn6p4EBgC5boCsRAPcbvD9S7ibpGq0 JWz2V7jVLgsH6Qv5OjYUXm5b21oB3fZALBjYODb34xNPas3mgRj6DvWn0uw2o+V4ARUM tqZzDvCU2q27X9NQoBm6LhRaOZdHJ2i8HDhFsyYXLaLs+snXmOpgvcHVr+32yK0JMocQ nSrUYFHPlKUTNLh9+bpFBHZSOJ60YJ0OzHQhnRFpNmmWr7q3BQj5gIpjAXXgffpf5CdT SwHdaUmxB1nfjj/HKXJR7FoF/IESaJRkML41fBXYqlqSMgCYzoEOijrD0oFfdi94ceBr /fOA== ARC-Authentication-Results: i=1; mx.google.com; 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 w9-v6si5978098pgp.10.2018.04.30.07.34.02; Mon, 30 Apr 2018 07:34:17 -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; 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 S1754253AbeD3Odt (ORCPT + 99 others); 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 Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F59622D47; Mon, 30 Apr 2018 14:33:46 +0000 (UTC) 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 Received: by mail-qt0-f177.google.com with SMTP id f1-v6so11127017qtj.6; Mon, 30 Apr 2018 07:33:46 -0700 (PDT) X-Gm-Message-State: ALQs6tATdvxOOBuY+fd1DZpwEUKqIOAgu4BvLhFiKxlii2yhV4xhjhMW lGYSZA0iY7O6Tkz962PEux7inh/aqXTBieNXSg== X-Received: by 2002:aed:26c3:: with SMTP id q61-v6mr12199656qtd.60.1525098825477; Mon, 30 Apr 2018 07:33:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.155.2 with HTTP; Mon, 30 Apr 2018 07:33:25 -0700 (PDT) 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 Precedence: bulk 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