• James Morse's avatar
    ACPI / APEI: Make hest.c manage the estatus memory pool · e147133a
    James Morse authored
    ghes.c has a memory pool it uses for the estatus cache and the estatus
    queue. The cache is initialised when registering the platform driver.
    For the queue, an NMI-like notification has to grow/shrink the pool
    as it is registered and unregistered.
    
    This is all pretty noisy when adding new NMI-like notifications, it
    would be better to replace this with a static pool size based on the
    number of users.
    
    As a precursor, move the call that creates the pool from ghes_init(),
    into hest.c. Later this will take the number of ghes entries and
    consolidate the queue allocations.
    Remove ghes_estatus_pool_exit() as hest.c doesn't have anywhere to put
    this.
    
    The pool is now initialised as part of ACPI's subsys_initcall():
    (acpi_init(), acpi_scan_init(), acpi_pci_root_init(), acpi_hest_init())
    Before this patch it happened later as a GHES specific device_initcall().
    Signed-off-by: default avatarJames Morse <james.morse@arm.com>
    Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    e147133a
ghes.c 31.7 KB