]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Apr 2021 14:01:00 +0000 (16:01 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Apr 2021 14:03:01 +0000 (16:03 +0200)
commit5331a5337725271b3b007a0793402b372c70ef64
tree8a2962d02fe980b623d68fc8096e75d54add734d
parentee7c5a800b7712543c03f412a7611ba9000cd43f
ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()

Commit 5c26e9c8ae47 ("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: 5c26e9c8ae47 ("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>
arch/x86/kernel/setup.c