Received: by 10.223.185.116 with SMTP id b49csp3976394wrg; Tue, 6 Mar 2018 07:58:22 -0800 (PST) X-Google-Smtp-Source: AG47ELuexMTdcmTjIHSPzRUUL72WIMQcon0P/80R7DvPfLBhiInvsHKdYAooFrFaY6yUU0+p+dFu X-Received: by 2002:a17:902:7046:: with SMTP id h6-v6mr16523054plt.301.1520351902471; Tue, 06 Mar 2018 07:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520351902; cv=none; d=google.com; s=arc-20160816; b=Qrmfhav7ReOv5Gnd4/zp2yDKDgozodDdmOyC1Y2eEvGsWH2SejuHYMHGbJPREZKPsP +jV7wOI6i5rQl+pjgbB3MQw2ARxgzsK5+JffEScTkiwkmcMOfJeRsdWvvlUsVfQHZNdU C9rUlU9p7D1lHNMOVs1JcWQ4e/BVIOPp7YD5m3t/OH/OfgRav0FgJp8SBW8rRuNHg/A+ jbl23nWcB3HL35I1XXFj9WTveR6HU+YKmbiAyZrXZ5f60LyfzhK6BtXW7ngDHibUVQWi R8XzMVLs9JO7+X0Rk6MO91Yt0amSP89959TrJ4mur43LPmUp2w+yEi2L4lXrNjpbsO4I fkEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=5QBCpjNoTFJbGpNvDDGOTBybmzVK5kt3yn5EjES17LI=; b=qr5Wv0uioWcxY6UZibjaGu60vnxMf1KKjm9zDEB/Eo+0S8iLdXHHAk6P+6e2eY2dhd TXjpHaK97ejt3M6BjEUKUiGetxhfcKXLvmxwNrMZ50De+Om0ho020DWp3MKasX2L9aw/ sOeHsPm1LNCEAnO6Iq54KIpPQMO16vUxreJOpCv/mpm5c2pIERZ0QI1f8lJU60hC0sAM xFGwUl/AXGTJr9/41s2AolxItQKZ82l5eC7imhexxaL3z2r2N/qw10jHdEIuX+m7Nq/q YDzueaYnGI+yEDldnErE1FbmvwY9oIzMNelywio5nVRrwwo0JZxWp07DSxqupWIsIkz9 Yo2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=RqWCXRZy; dkim=pass header.i=@codeaurora.org header.s=default header.b=MRelafbi; 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 t6si9928951pgq.301.2018.03.06.07.58.06; Tue, 06 Mar 2018 07:58:22 -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=@codeaurora.org header.s=default header.b=RqWCXRZy; dkim=pass header.i=@codeaurora.org header.s=default header.b=MRelafbi; 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 S1753713AbeCFP5I (ORCPT + 99 others); Tue, 6 Mar 2018 10:57:08 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:46706 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbeCFP5G (ORCPT ); Tue, 6 Mar 2018 10:57:06 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6F5146076C; Tue, 6 Mar 2018 15:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520351825; bh=Bj9mpAOBxZ+VjWUK+c+VBTIZw1HqTZoIDokeYkZKx+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RqWCXRZy/HG85ty3oN0F6D3lJmgRPSHbG3yDGd7fi40i3fVuDKoTU5aydA+JxMgM0 N2I95m16VyMsTzTTbZKr9sDYyvKSrUC+vap4lRSa8qRPGJgxUPosOzj/YREjQYrdZ8 sBF2yV+44IwfvJQe3RVmZXup5dT2KumGGUI3nYPM= 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 localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 998B7600E6; Tue, 6 Mar 2018 15:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520351824; bh=Bj9mpAOBxZ+VjWUK+c+VBTIZw1HqTZoIDokeYkZKx+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MRelafbimuu3luFBqHz/7ggasoCezJTqRvVkYT1aHT9VJphY+PqRXTOXD4iMRArOZ CZVS43WiKgKBFvk4A86ETH8oVqseFb2OqHu90Lt3MiUnZDdRS+HgLqqZtlKPKdtDpJ +hHtC6PQxJEAVXPrZiF6Wmnnb3RwzDonWKN1vuJ0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 998B7600E6 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Tue, 6 Mar 2018 08:57:03 -0700 From: Lina Iyer To: Bjorn Andersson Cc: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mahesh Sivasubramanian Subject: Re: [PATCH v4 2/2] dt-bindings: introduce Command DB for QCOM SoCs Message-ID: <20180306155703.GA4930@codeaurora.org> References: <20180226175802.20052-1-ilina@codeaurora.org> <20180226175802.20052-3-ilina@codeaurora.org> <20180305231455.GJ18510@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180305231455.GJ18510@minitux> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05 2018 at 16:15 -0700, Bjorn Andersson wrote: >On Mon 26 Feb 09:58 PST 2018, Lina Iyer wrote: > >> From: Mahesh Sivasubramanian >> >> Command DB provides information on shared resources like clocks, >> regulators etc., probed at boot by the remote subsytem and made >> available in shared memory. >> >> Cc: devicetree@vger.kernel.org >> Signed-off-by: Mahesh Sivasubramanian >> Signed-off-by: Lina Iyer >> --- >> >> Changes in v4: >> - Fix unwanted capitalization >> - Add reg property >> --- >> .../devicetree/bindings/arm/msm/cmd-db.txt | 38 ++++++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/arm/msm/cmd-db.txt >> >> diff --git a/Documentation/devicetree/bindings/arm/msm/cmd-db.txt b/Documentation/devicetree/bindings/arm/msm/cmd-db.txt >[..] >> + reserved-memory { >> + [...] >> + qcom,cmd-db@c3f000c { >> + reg = <0x0 0xc3f000c 0x0 0x8>, >> + <0x0 0x85fe0000 0x0 0x20000>; > >I'm still concerned about the use of the redirection mapping here, >the relocation at 0xc3f000c is used a convenience thing so that the >command db can be relocated, but because of how Linux will consume any >non-reserved memory the dts would still need to be manually updated. > This location is fixed and it is not expected to change between different boards. OEMs may change the actual address of the command db location, but would not change the dictionary location. >As such I think you should just describe only the 0x85fe0000 + 0x20000 >region here and to support the dynamic aspect of this from a system >point of view you can have the boot loader read the information at >0xc3f000c and adjust the reserved memory. (Or just keep the step of >manually update the dts without caring about the indirection) > It would be incorrect and very board specific to just use the 0x85fe000 as the address. It is not how the SoC defines the location. Upon request earlier, this memory location was added in DT and the location is typical reference platform usage only. Thanks, Lina