Skip to content

Commit

Permalink
ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()
Browse files Browse the repository at this point in the history
Commit 1a1c130 ("ACPI: tables: x86: Reserve memory occupied by
ACPI tables") attempted to address an issue with reserving the memory
occupied by ACPI tables, but it broke the initrd-based table override
mechanism relied on by multiple users.

To restore the initrd-based ACPI table override functionality, move
the acpi_boot_table_init() invocation in setup_arch() on x86 after
the acpi_table_upgrade() one.

Fixes: 1a1c130 ("ACPI: tables: x86: Reserve memory occupied by ACPI tables")
Reported-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Rafael J. Wysocki committed Apr 13, 2021
1 parent d434405 commit 6998a88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,9 +1045,6 @@ void __init setup_arch(char **cmdline_p)

cleanup_highmap();

/* Look for ACPI tables and reserve memory occupied by them. */
acpi_boot_table_init();

memblock_set_current_limit(ISA_END_ADDRESS);
e820__memblock_setup();

Expand Down Expand Up @@ -1132,6 +1129,8 @@ void __init setup_arch(char **cmdline_p)
reserve_initrd();

acpi_table_upgrade();
/* Look for ACPI tables and reserve memory occupied by them. */
acpi_boot_table_init();

vsmp_init();

Expand Down

0 comments on commit 6998a88

Please sign in to comment.