RE: ARM EFI stub and the EfiPersistentMemory type

2015-12-07 Thread Elliott, Robert (Persistent Memory)
x-nvd...@lists.01.org; matt.flem...@intel.com; > b...@suse.de; ying...@kernel.org; msal...@redhat.com; roy.fr...@linaro.org; > linux-kernel@vger.kernel.org > Subject: Re: ARM EFI stub and the EfiPersistentMemory type > > On Sat, Dec 05, 2015 at 11:11:46AM +0100, Ard Biesheuvel wrote: &

Re: ARM EFI stub and the EfiPersistentMemory type

2015-12-05 Thread Mark Rutland
On Sat, Dec 05, 2015 at 11:11:46AM +0100, Ard Biesheuvel wrote: > On 4 December 2015 at 04:02, Mark Rutland wrote: > > Hi, > > > > On Fri, Dec 04, 2015 at 09:51:22PM +, Elliott, Robert (Persistent > > Memory) wrote: > >> drivers/firmware/efi/libstub/efi-stub-helper.c get_dram_base() > >> pars

Re: ARM EFI stub and the EfiPersistentMemory type

2015-12-05 Thread Ard Biesheuvel
On 4 December 2015 at 04:02, Mark Rutland wrote: > Hi, > > On Fri, Dec 04, 2015 at 09:51:22PM +, Elliott, Robert (Persistent Memory) > wrote: >> drivers/firmware/efi/libstub/efi-stub-helper.c get_dram_base() >> parses the UEFI memory map, but just looks at the EFI_MEMORY_WB >> attribute while

Re: ARM EFI stub and the EfiPersistentMemory type

2015-12-04 Thread Mark Rutland
Hi, On Fri, Dec 04, 2015 at 09:51:22PM +, Elliott, Robert (Persistent Memory) wrote: > drivers/firmware/efi/libstub/efi-stub-helper.c get_dram_base() > parses the UEFI memory map, but just looks at the EFI_MEMORY_WB > attribute while searching for the base memory address, > not the type: >

ARM EFI stub and the EfiPersistentMemory type

2015-12-04 Thread Elliott, Robert (Persistent Memory)
drivers/firmware/efi/libstub/efi-stub-helper.c get_dram_base() parses the UEFI memory map, but just looks at the EFI_MEMORY_WB attribute while searching for the base memory address, not the type: unsigned long get_dram_base(efi_system_table_t *sys_table_arg) { ... for_each_efi_memory_de