Received: by 10.213.65.68 with SMTP id h4csp607630imn; Fri, 16 Mar 2018 13:03:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtiMHHJo8YCrteornhDGH067TtHAk3Whbl5Qvng4Je6l60ckAfxP/KAMc7/gGeCTjMEQv0n X-Received: by 2002:a17:902:127:: with SMTP id 36-v6mr3414978plb.194.1521230638685; Fri, 16 Mar 2018 13:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521230638; cv=none; d=google.com; s=arc-20160816; b=iVX2SeCnJBAtXjRbCNkg3jT5CFSccOL2M6WkPWiCVqC2JRY9hyHw+5eQQbr0uqB1qd 0RkJCS+CfWaWlpJIi0DJ5cSYG8GoHWYPy/QIUugwtH4AQxzolpW/ssf7MoIu4wD3JVON EplwRHULUqBDV2EnHGx4Fi5/yszXisiE0ibqEzRwkC67zyj/V3qPdM+NUq0sDqs7chVJ wuC8GbB6atTDFvel/dMIBe2QCvlsAsKBAYfrZkbx81dNUjirfN4f5DIpEnaX0gK0cs9h 4NwA8wv3z2ovmj47Rl/dJO5jnfpRYlQxe7h10D1XcxEtk/uMT2TWd6cn/tq01Q6Aryfj kjgg== 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:dkim-signature:arc-authentication-results; bh=wJg/8gnoUzNdU4z+Kej+nRKArxof9At7dlA68SJAipo=; b=xSsTRfxSbLlqEqFuCbOBMwyYKfyWac9K6xf+JaL1+xJBun3v4/4MYdak47r7mAMEsb YQ/W1aMWW9JErqK0T4f44n1fYLNuZKUwkOr1Y84ZZlxQxl3e07auQMhjAfTd86XqRREJ l0IM4LvrOu6KyT35uHv5HJ2Nucj/jJ4J1/P62YS22DQx88dfTJVZ6PjB3TwiyvsmPmJe 6EHb2Fpv4vT5+Tl14XqWVhnonsVyad0X3J/sWMGxK0/rmi+9xMhhdxw0WkOv0TH3ZnOr BuYm0NlMfx4E0Et2zj65rvgbr1ZcpK9B5Ke/0o6ZvCjFVrqRyqNTc7kF7mVrMuJn397P Tmdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AcBLdpR5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj11-v6si2632785plb.525.2018.03.16.13.03.45; Fri, 16 Mar 2018 13:03:58 -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=@linaro.org header.s=google header.b=AcBLdpR5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbeCPUBH (ORCPT + 99 others); Fri, 16 Mar 2018 16:01:07 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:42769 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbeCPUAp (ORCPT ); Fri, 16 Mar 2018 16:00:45 -0400 Received: by mail-pl0-f67.google.com with SMTP id w15-v6so6528029plq.9 for ; Fri, 16 Mar 2018 13:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wJg/8gnoUzNdU4z+Kej+nRKArxof9At7dlA68SJAipo=; b=AcBLdpR5JTfMjVAZRMDbrtxKh527JijPb5ZGAtKFb12cUdE2czY9vBz7pegHXZNaRu 9qjPGUfrtEG3NINzkHSTkFdNhFh9J2GLfWI4yk8S9XJi6u2P8CAsoA6qjO0geNmX0KZq LfXGjVih6o3UtCVBDVW4pxu+msc4lVc6RxTpc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wJg/8gnoUzNdU4z+Kej+nRKArxof9At7dlA68SJAipo=; b=M/dLjixQY+oWW5Yi05Q/Y6az19hVzUrmP3dI4eHkI726oc9rmEGwarEzGhKgQ2KbIk 44uxys1LNkTucfxTqCBQDBg/eZepUPDVusL0usqFV6MNuo8pVweff1Z9QZZ7pSJhIXCY 1qfOGcnCMc3qgrHsrAk7GdTAj7v9fR/8Pqfi25BRJowTg4ZFjmKg6e2gW/fMMarHwJOS W6VTWA4+DRksHvjVAnF6KXLn4+NjRsTwWaIm+mjSxqeAnHt594fhrUVhLBXTkhedFppA mgPVYo40I8kq+OZeUtu5hQyPaiwA2QOxn0WxsLhDdmyr/WDsd1L5kpOcEsujjkl1ihAT ZtQg== X-Gm-Message-State: AElRT7GPiJmQOMfV7WvrcgcxEVr9lGjh7Fok8VL1E/oDKPAzs0UIkkT0 OB4dZuTbY3f4sF1w8DX+4JoLSg== X-Received: by 2002:a17:902:b288:: with SMTP id u8-v6mr3315993plr.339.1521230120125; Fri, 16 Mar 2018 12:55:20 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id r62sm17958594pfi.52.2018.03.16.12.55.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 12:55:19 -0700 (PDT) Date: Fri, 16 Mar 2018 12:55:22 -0700 From: Bjorn Andersson To: Stephen Boyd Cc: Lina Iyer , 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: <20180316195522.GC15968@tuxbook-pro> 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> <152122480915.70929.13116557401450122973@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152122480915.70929.13116557401450122973@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 16 Mar 11:26 PDT 2018, Stephen Boyd wrote: > 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. > Correct, SMEM has exactly the same mechanism. I get that the coordinating of these addresses between all involved images can be a tricky thing, but the only way to make this automatic on the application CPU is to split this between boot and Linux; as any all-Linux solution requires a human to update the reserved-memory node to match the values in the indirection. So for SMEM we agreed that we implement this as "someone needs to tell Linux where SMEM is" and that can be a human or the boot loader. Regards, Bjorn