Re: [PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-16 Thread Baoquan He
On 08/16/17 at 12:37pm, Matt Fleming wrote: > On Mon, 14 Aug, at 10:54:23PM, Baoquan He wrote: > > The existing map iteration helper for_each_efi_memory_desc_in_map can > > only be used after OS initializes EFI to fill data of struct efi_memory_map. > > Should this say "EFI subsystem"? The

Re: [PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-16 Thread Baoquan He
On 08/16/17 at 12:37pm, Matt Fleming wrote: > On Mon, 14 Aug, at 10:54:23PM, Baoquan He wrote: > > The existing map iteration helper for_each_efi_memory_desc_in_map can > > only be used after OS initializes EFI to fill data of struct efi_memory_map. > > Should this say "EFI subsystem"? The

Re: [PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-16 Thread Matt Fleming
On Mon, 14 Aug, at 10:54:23PM, Baoquan He wrote: > The existing map iteration helper for_each_efi_memory_desc_in_map can > only be used after OS initializes EFI to fill data of struct efi_memory_map. Should this say "EFI subsystem"? The firmware doesn't care about the kernel's internal data

Re: [PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-16 Thread Matt Fleming
On Mon, 14 Aug, at 10:54:23PM, Baoquan He wrote: > The existing map iteration helper for_each_efi_memory_desc_in_map can > only be used after OS initializes EFI to fill data of struct efi_memory_map. Should this say "EFI subsystem"? The firmware doesn't care about the kernel's internal data

[PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-14 Thread Baoquan He
The existing map iteration helper for_each_efi_memory_desc_in_map can only be used after OS initializes EFI to fill data of struct efi_memory_map. Before that we also need iterate map descriptors which are stored in several intermediate structures, like struct efi_boot_memmap for arch independent

[PATCH v9 1/2] efi: Introduce efi_early_memdesc_ptr to get pointer to memmap descriptor

2017-08-14 Thread Baoquan He
The existing map iteration helper for_each_efi_memory_desc_in_map can only be used after OS initializes EFI to fill data of struct efi_memory_map. Before that we also need iterate map descriptors which are stored in several intermediate structures, like struct efi_boot_memmap for arch independent