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


Groups > linux.kernel > #1402704

RE: [PATCH 1/3] ACPI: table upgrade: use cacheable map for tables

From "Zheng, Lv" <lv.zheng@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH 1/3] ACPI: table upgrade: use cacheable map for tables
Date 2016-05-18 05:10 +0200
Message-ID <rA01Y-4S6-9@gated-at.bofh.it> (permalink)
References <rzLYZ-4o9-13@gated-at.bofh.it> <rzLZ0-4o9-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

> From: Aleksey Makarov [mailto:aleksey.makarov@linaro.org]
> Subject: [PATCH 1/3] ACPI: table upgrade: use cacheable map for tables
> 
> The new memory allocated in acpi_table_initrd_init() is used to
> copy the upgraded tables to it.  So it should be mapped with
> early_memunmap() instead of early_ioremap().
> 
> This is critical for ARM.
> 
> Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org>
[Lv Zheng] 
Acked-by: Lv Zheng <lv.zheng@intel.com>

Thanks
-Lv

> ---
>  drivers/acpi/tables.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
> index a372f9e..449a649 100644
> --- a/drivers/acpi/tables.c
> +++ b/drivers/acpi/tables.c
> @@ -578,10 +578,10 @@ static void __init acpi_table_initrd_init(void *data,
> size_t size)
>  			clen = size;
>  			if (clen > MAP_CHUNK_SIZE - slop)
>  				clen = MAP_CHUNK_SIZE - slop;
> -			dest_p = early_ioremap(dest_addr & PAGE_MASK,
> +			dest_p = early_memremap(dest_addr & PAGE_MASK,
>  						 clen + slop);
>  			memcpy(dest_p + slop, src_p, clen);
> -			early_iounmap(dest_p, clen + slop);
> +			early_memunmap(dest_p, clen + slop);
>  			src_p += clen;
>  			dest_addr += clen;
>  			size -= clen;
> --
> 2.8.2

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


Thread

[PATCH 0/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-05-17 14:10 +0200
  [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-05-17 14:10 +0200
    Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Mark Rutland <mark.rutland@arm.com> - 2016-05-17 14:50 +0200
      Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Jon Masters <jcm@redhat.com> - 2016-05-17 18:50 +0200
        Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Jon Masters <jcm@redhat.com> - 2016-05-17 18:50 +0200
          Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-05-23 20:00 +0200
            Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Jon Masters <jcm@redhat.com> - 2016-05-23 20:30 +0200
        Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Mark Rutland <mark.rutland@arm.com> - 2016-05-23 18:50 +0200
      Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-05-18 17:20 +0200
  [PATCH 2/3] ACPI: table upgrade: move early_initrd_acpi_init() to header file Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-05-17 14:10 +0200
    RE: [PATCH 2/3] ACPI: table upgrade: move early_initrd_acpi_init()  to header file "Zheng, Lv" <lv.zheng@intel.com> - 2016-05-18 03:10 +0200
  [PATCH 1/3] ACPI: table upgrade: use cacheable map for tables Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-05-17 14:10 +0200
    RE: [PATCH 1/3] ACPI: table upgrade: use cacheable map for tables "Zheng, Lv" <lv.zheng@intel.com> - 2016-05-18 05:10 +0200

csiph-web