Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp799498pxp; Fri, 11 Mar 2022 15:28:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8dfShBmkNYGa5K83vAmewMnyrt0vT0dCrRMZON9qOFcAsJrHM6Ecd0BtVFfxjXU2yf7hL X-Received: by 2002:a05:6a00:1995:b0:4f7:a6d3:38d9 with SMTP id d21-20020a056a00199500b004f7a6d338d9mr666359pfl.20.1647041285934; Fri, 11 Mar 2022 15:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647041285; cv=none; d=google.com; s=arc-20160816; b=Vi++tT+jj3ziTs4TY/HIN6ELTH/l5XpWzDppPOWFHde6kH2d5iLgQhcean5c+29hA9 nXfPgVfTiOBfbsRTtc1e6nObuIAtCBUpoNLfmIjxH7gDuPK2ZpZjaTDB5x07Irmp61Kt tN3vdHfxeY9lrb+vzhKT0zjWDLtSrgCOvdDPMZn4PTZh08m9g+mLCKLCZKkt7/hThddf agLqoO+yl2kl6fZ1T3+t4C+DP6EHiBqTl3YNnztARThvFTgt3E5FR7L/OlQJToYbuzCW LUDvXTUeo5ZLvDTHbAuTYFlgdWhi1LRBPOLxm2r9myJj3wqYDVUrsjp7NvIiqdQsC0eF aAfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=StZfRVd0d1zSRSJuYQP+XpRtxzfPsHSLjEbIXgq6bj4=; b=StIMJB/j/t+1gcwIugVgRAkjVBTXa7brNMFEvkHjcC4SDEFM3FyydDbDg3NnOfAFEN BOmJM2zLoEIeR1theFYdZAWpXEDt0xIAideWB4oP5FzqGjELzPaUNStdPjUKYxM/jDRf Ovq9lcfDi3sIEIRB8yyJoRqfYTKhN4jcf8Cm/pWEibkac1evulL6n8HWRAnEf7t+FfEs ZU0PwfQUFGnrY94uEl43+Tfjp5KXa3vmyUb2/w8BjrFMnkVz207dbJFyQ/yIxU7r/Iry /28RjvPHF03da8snRtaW4WfKPLbyHlYmc3+YeqSSfLfYOuchsWs5NGl0gNDDHoIAR6e5 KBDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=XoO1H0Hu; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q2-20020a170902e30200b00151dbaf5649si8115342plc.295.2022.03.11.15.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:28:05 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=XoO1H0Hu; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6A133C2C02; Fri, 11 Mar 2022 14:14:28 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347757AbiCKKOL (ORCPT + 99 others); Fri, 11 Mar 2022 05:14:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347751AbiCKKOH (ORCPT ); Fri, 11 Mar 2022 05:14:07 -0500 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CC0B1BF933; Fri, 11 Mar 2022 02:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1646993583; x=1678529583; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=StZfRVd0d1zSRSJuYQP+XpRtxzfPsHSLjEbIXgq6bj4=; b=XoO1H0HufINNN9YnOJMmd+Tzr+w+Rx8/AKHqTxW0QxH+aPZqtsy2+tST b/Ko95zd1yvw6KPWz/q+BdIdC1Btq/4AOCCvK5qfZbtds0BLKe85rwMH1 CzFirUkf/pTo7bwlO23Td4oO68Wt0u34cLhgo1fAh1P+XwZ2xX343otAR XihwqSd5bcVOf1RmbIiaOocfVVzHKgmF1v95Sg5E6xf6eQUQWR+HKp95L aad3awvKbTJLK5rOsgLxXYVvkVy5G/w9Wf9VmzLWF8e71Iei9q2NtbA6g U9cSff4oSz1W9w+fqXHlYP5uEKH9ZVCynx1jlao8HZjCn0lm5B9LuXfOD Q==; Date: Fri, 11 Mar 2022 11:13:00 +0100 From: Vincent Whitchurch To: Rob Herring CC: "vigneshr@ti.com" , "richard@nod.at" , "miquel.raynal@bootlin.com" , "joern@lazybastard.org" , kernel , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "devicetree@vger.kernel.org" , "frowand.list@gmail.com" , "krzysztof.kozlowski@canonical.com" Subject: Re: [PATCH 2/4] dt-bindings: reserved-memory: Add phram Message-ID: <20220311101300.GA32274@axis.com> References: <20220307141549.2732179-1-vincent.whitchurch@axis.com> <20220307141549.2732179-3-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 10, 2022 at 09:58:58PM +0100, Rob Herring wrote: > On Mon, Mar 07, 2022 at 03:15:47PM +0100, Vincent Whitchurch wrote: > > Add bindings to allow MTD/block devices to be created in reserved-memory > > regions using the "phram" driver. > > What does 'ph' mean? Please define somewhere for the binding. Judging from the Kconfig description it means "physical", as in "physical memory" (as opposed to virtual memory I guess). I will added a note in the next version. [...] > > +examples: > > + - | > > + reserved-memory { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + phram: flash@12340000 { > > + compatible = "phram"; > > + label = "rootfs"; > > That's an odd example... If it's the "flash" name which is odd for RAM, that's mandated by the mtd schema. If it's the "rootfs" label which is odd, I'm not sure I understand why. I use this feature to pass the rootfs to the kernel when booting from RAM. It is much faster and requires less memory than initrd (which is on top of that being deprecated), and it allows the same disk images to be used when booting from RAM, unlike initramfs.