Received: by 10.213.65.68 with SMTP id h4csp558862imn; Fri, 16 Mar 2018 11:28:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELv4jc2MndCIuQ63CA7nu95ofblPTJxWjfXf6YiDrVQCvgqHiS/zk60k7mJKTc9Pw2gL7uO4 X-Received: by 10.99.164.81 with SMTP id c17mr2245409pgp.114.1521224884539; Fri, 16 Mar 2018 11:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521224884; cv=none; d=google.com; s=arc-20160816; b=rAhmtf2nQzt1CkiYxRadakAyUUL8gxDZc9elBNFgvpgvF+9c7x9Umpb3SZjAmgdO/9 m71wJhxqaa4CmYzEzQI154ELdRFdnIyBX/AlbDIOgfdb2XjjLDQLwHcQhZDIn9gGWmH/ TSrK0Z+mFIm935tp3gy25ogd8LgMqW/BRp5EhoJt33vWL9dh3NMZ++d+aALUGEDz0VZD vSiuhiXatjtVWONAj9Q0gm4YlUeYR6oZcMugYG/0ZwTfPosqaOB/QKl580qqlgbPzXcE x+9XARrGA5KLnj39PFvrCvmF3p3ph8uIrlqpceNlhdI3xFJdJuyh9Oej+5qi344Z41Hh ByNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dmarc-filter:arc-authentication-results; bh=rJ/Usy07e+7fAdq42iWBv5Dkg8xu6V4meo8JMtbVJzU=; b=kI/hBvMLWP/MqEY6awLVl3id07B9qI8JwaRrUk9/HRoEM6jrRudkaYdXIK7fvmlMVc p33vIRoS/2cC9bzRoZQi4jFSXnhRC8tbrT2Kc/O2K6HXbgj0AjYecvM7Po9EgSwMnjdm tLMeYDsjNKnw5LUsg884+aRK694dmWn6YUxSRkQhsxIBlZsZdo1Xm3iCgxLIpbfcq60S he52hvyOyovFkAEVuBuEo5xiFAweng5vq7AcvekVWOaKVxTRt6FMCB8ZAoSRFur3nXVM UBXkTE+6s8FJElX3VzINtWkAk5FtbHo3lesXavquYSPPmiDYTRjF6eODqukfMcIsHYI/ BSyQ== 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 a8-v6si6705767ple.435.2018.03.16.11.27.49; Fri, 16 Mar 2018 11:28:04 -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 S1752571AbeCPS0w convert rfc822-to-8bit (ORCPT + 99 others); Fri, 16 Mar 2018 14:26:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:37054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbeCPS0u (ORCPT ); Fri, 16 Mar 2018 14:26:50 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0153F20685; Fri, 16 Mar 2018 18:26:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0153F20685 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sboyd@kernel.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Bjorn Andersson , Lina Iyer From: Stephen Boyd In-Reply-To: <20180307190249.GW93895@bjorns-mbp-2.lan> 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 References: <20180226175802.20052-1-ilina@codeaurora.org> <20180226175802.20052-3-ilina@codeaurora.org> <20180305231455.GJ18510@minitux> <20180306155703.GA4930@codeaurora.org> <20180307190249.GW93895@bjorns-mbp-2.lan> Message-ID: <152122480915.70929.13116557401450122973@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v4 2/2] dt-bindings: introduce Command DB for QCOM SoCs Date: Fri, 16 Mar 2018 11:26:49 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2018-03-07 11:02:49) > On Tue 06 Mar 07:57 PST 2018, Lina Iyer wrote: > > > On Mon, Mar 05 2018 at 16:15 -0700, Bjorn Andersson wrote: > > > On Mon 26 Feb 09:58 PST 2018, Lina Iyer wrote: > > > > 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. > > > > The problem is that as the db resides in a chunk of memory in the middle > of what Linux considers System RAM the DTS must specify this region as > reserved. Which means that as you, like described above, update the > dictionary something (in your scheme a person) has to update the > reserved-memory region as well. > > That's why I'm proposing that the appropriate implementation for this > is to have the boot loader to the dictionary part of this and Linux only > care about the actual reserved-memory region. This way you would still > implement the dictionary lookup on a system level, but the Linux > part no longer depend on a human updating the DTS to match the values of > the dictionary. Agreed. I thought SMEM had a similar design of a cookie in IMEM to indicate location and size because coordinating changes across all the various software images is a hard problem. But coordinating between linux and the linux bootloader shouldn't be as hard. > > > But if we stick with the approach of describing both these and hoping > that the values in the first region matches the second (or should we add > a sanity check in probe?). The memory reserve defined as 0xc3f000c + 8 > looks strange, is this system ram as well and what other things resides > in that same page? > Doesn't look like it could be RAM, the address is not very close to the other one so I would guess it's something like IMEM. And there are two 32-bit numbers to describe address and size?