• Rafael J. Wysocki's avatar
    ACPI / PNP: Reserve ACPI resources at the fs_initcall_sync stage · 0294112e
    Rafael J. Wysocki authored
    This effectively reverts the following three commits:
    
     7bc10388 ACPI / resources: free memory on error in add_region_before()
     0f1b414d ACPI / PNP: Avoid conflicting resource reservations
     b9a5e5e1 ACPI / init: Fix the ordering of acpi_reserve_resources()
    
    (commit b9a5e5e1 introduced regressions some of which, but not
    all, were addressed by commit 0f1b414d and commit 7bc10388
    was a fixup on top of the latter) and causes ACPI fixed hardware
    resources to be reserved at the fs_initcall_sync stage of system
    initialization.
    
    The story is as follows.  First, a boot regression was reported due
    to an apparent resource reservation ordering change after a commit
    that shouldn't lead to such changes.  Investigation led to the
    conclusion that the problem happened because acpi_reserve_resources()
    was executed at the device_initcall() stage of system initialization
    which wasn't strictly ordered with respect to driver initialization...
    0294112e
system.c 2.66 KB