Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436450

Re: [PATCH 03/11] efi: Refactor efi_memmap_init_early() into arch-neutral code

From Matt Fleming <matt@codeblueprint.co.uk>
Newsgroups linux.kernel
Subject Re: [PATCH 03/11] efi: Refactor efi_memmap_init_early() into arch-neutral code
Date 2016-07-04 14:30 +0200
Message-ID <rRbaG-5yi-15@gated-at.bofh.it> (permalink)
References <rNb9f-UY-3@gated-at.bofh.it> <rNb9g-UY-61@gated-at.bofh.it> <rNxMt-7xb-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 24 Jun, at 01:44:48PM, Ard Biesheuvel wrote:
> 
> This assignment breaks the calculation of mapsize in
> arm_enable_runtime_services(), so you should probably fold the
> following hunk into this patch.
> 
> diff --git a/drivers/firmware/efi/arm-runtime.c
> b/drivers/firmware/efi/arm-runtime.c
> index ce1424672d89..1884347a3ef6 100644
> --- a/drivers/firmware/efi/arm-runtime.c
> +++ b/drivers/firmware/efi/arm-runtime.c
> @@ -109,7 +109,7 @@ static int __init arm_enable_runtime_services(void)
> 
>         pr_info("Remapping and enabling EFI services.\n");
> 
> -       mapsize = efi.memmap.map_end - efi.memmap.map;
> +       mapsize = efi.memmap.desc_size * efi.memmap.nr_map;
> 
>         if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) {
>                 pr_err("Failed to remap EFI memory map\n");
 
Thanks Ard, I folded this in.

> With that change (or an equivalent one):
> 
> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Are those tags for just this patch or the entire series?

FYI, my plan right now is to queue this for v4.9 because it's fairly
invasive and I expect some fallout. If anyone has a problem with that
and knows of a reason it should be queued sooner, please let me know.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 03/11] efi: Refactor efi_memmap_init_early() into  arch-neutral code Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-06-24 13:50 +0200
  Re: [PATCH 03/11] efi: Refactor efi_memmap_init_early() into  arch-neutral code Matt Fleming <matt@codeblueprint.co.uk> - 2016-07-04 14:30 +0200
    Re: [PATCH 03/11] efi: Refactor efi_memmap_init_early() into arch-neutral code Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-07-05 00:30 +0200

csiph-web