Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932847AbcCRNLX (ORCPT ); Fri, 18 Mar 2016 09:11:23 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:35500 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932795AbcCRNLV (ORCPT ); Fri, 18 Mar 2016 09:11:21 -0400 MIME-Version: 1.0 In-Reply-To: <20160318125600.GT2619@codeblueprint.co.uk> References: <1457481587-8976-1-git-send-email-ddaney.cavm@gmail.com> <1457481587-8976-2-git-send-email-ddaney.cavm@gmail.com> <20160318122609.GS2619@codeblueprint.co.uk> <20160318125600.GT2619@codeblueprint.co.uk> Date: Fri, 18 Mar 2016 14:11:20 +0100 Message-ID: Subject: Re: [PATCH v15 1/6] efi: ARM/arm64: ignore DT memory nodes instead of removing them From: Ard Biesheuvel To: Matt Fleming Cc: David Daney , Will Deacon , "linux-arm-kernel@lists.infradead.org" , Rob Herring , Frank Rowand , Grant Likely , Pawel Moll , Ian Campbell , Kumar Gala , Ganapatrao Kulkarni , Robert Richter , Mark Rutland , Catalin Marinas , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , David Daney Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1489 Lines: 28 On 18 March 2016 at 13:56, Matt Fleming wrote: > On Fri, 18 Mar, at 01:31:59PM, Ard Biesheuvel wrote: >> >> Typically, the UEFI memory map is more restrictive, since it does not >> only describe where the memory lives, but also which parts of it the >> firmware has claimed for its own use. So if both memory nodes and the >> UEFI memory map are available, we must use the latter anyway, and so >> it makes sense to ignore the former. Alternatively, we could sanity >> check the memory nodes against the memory map, but it is simpler just >> to ignore them. >> >> However, that caused some problems in the past, since discovering the >> memory nodes occurs before the EFI entry point is invoked, and so it >> was decided that we strip the memory nodes rather than ignore them. > > Thanks Ard. > > Once you've stripped the memory nodes as represented in memblock, > there's no way for the memory nodes to re-appear in one form or > another after that point, right? The EFI memory map is the sole memory > layout either via memblock or if it's queried directly? Well, the significance of this patch in this series is that the memory nodes contain additional properties that describe the NUMA topology, which the UEFI memory map does not allow us to do. At some point, we may decide to capture this information in a different way (i.e., a separate configuration table), but for now, I think this is fine, especially since stripping nodes is a bit of a blunt tool.