[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87vawixcxn.fsf@concordia.ellerman.id.au>
Date: Mon, 24 Oct 2016 21:24:04 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Alistair Popple <apopple@....ibm.com>,
linuxppc-dev@...ts.ozlabs.org
Cc: Reza Arbab <arbab@...ux.vnet.ibm.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Stewart Smith <stewart@...ux.vnet.ibm.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Tang Chen <tangchen@...fujitsu.com>, linux-mm@...ck.org,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>,
Bharata B Rao <bharata@...ux.vnet.ibm.com>,
Nathan Fontenot <nfont@...ux.vnet.ibm.com>
Subject: Re: [PATCH v4 2/5] drivers/of: do not add memory for unavailable nodes
Alistair Popple <apopple@....ibm.com> writes:
> Hi Reza,
>
> On Thu, 6 Oct 2016 01:36:32 PM Reza Arbab wrote:
>> Respect the standard dt "status" property when scanning memory nodes in
>> early_init_dt_scan_memory(), so that if the node is unavailable, no
>> memory will be added.
>
> What happens if a kernel without this patch is booted on a system with some
> status="disabled" device-nodes? Do older kernels just ignore this memory or do
> they try to use it?
>
> From what I can tell it seems that kernels without this patch will try and use
> this memory even if it is marked in the device-tree as status="disabled" which
> could lead to problems for older kernels when we start exporting this property
> from firmware.
The code already looks for "linux,usable-memory" in preference to "reg".
Can you use that instead?
That would have the advantage that existing kernels already understand
it.
Another problem with using "status" is we could have device trees out
there that have status = disabled and we don't know about it, and by
changing the kernel to use that property we break people's systems.
Though for memory nodes my guess is that's not true, but you never know ...
cheers
Powered by blists - more mailing lists