sb/intel/lynxpoint/fadt: Fill extended FADT after populating lengths
commitbdd3b00926162f2535813f44bc591eba2d353c82
authorMatt DeVillier <matt.devillier@gmail.com>
Mon, 10 Jun 2024 18:35:03 +0000 (10 13:35 -0500)
committerFelix Held <felix-coreboot@felixheld.de>
Tue, 11 Jun 2024 18:59:24 +0000 (11 18:59 +0000)
treefe0512de0f3835363b97ddd7498d66fa19e73dcd
parent6a673d46eefe78c5c5698aa395238b746edf37eb
sb/intel/lynxpoint/fadt: Fill extended FADT after populating lengths

Commit 88decca14f84 ("ACPI: Add helper fill_fadt_extended_pm_io()")
moved the population of the extended FADT to a separate function, but
incorrectly placed that function call before various length fields were
populated, leading to spurious validation errors in the cbmem boot log.

Correct this by moving the call to fill_fadt_extended_pm_io() after
the required fields are populated.

TEST=build/boot google/slippy (wolf), verify no FADT errors in cbmem
console log.

Change-Id: I1f8522e4813e6071692206f2b7ad2a2f5086071e
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83035
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/southbridge/intel/lynxpoint/fadt.c