Skip to content

Commit ce0c1fc

Browse files
Aleksey Makarovrafaeljw
authored andcommitted
ACPI / tables: 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 <[email protected]> Acked-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 33688ab commit ce0c1fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/acpi/tables.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,10 @@ static void __init acpi_table_initrd_init(void *data, size_t size)
578578
clen = size;
579579
if (clen > MAP_CHUNK_SIZE - slop)
580580
clen = MAP_CHUNK_SIZE - slop;
581-
dest_p = early_ioremap(dest_addr & PAGE_MASK,
582-
clen + slop);
581+
dest_p = early_memremap(dest_addr & PAGE_MASK,
582+
clen + slop);
583583
memcpy(dest_p + slop, src_p, clen);
584-
early_iounmap(dest_p, clen + slop);
584+
early_memunmap(dest_p, clen + slop);
585585
src_p += clen;
586586
dest_addr += clen;
587587
size -= clen;

0 commit comments

Comments
 (0)