Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UefiPayloadPkg: Align base address for ACPI region #10566

Merged
merged 2 commits into from
Dec 25, 2024

Conversation

AjanZhong
Copy link
Contributor

@AjanZhong AjanZhong commented Dec 24, 2024

Description

In platform which support ACPI 2.0 only, the base address of ACPI region is not page aligned. This unalinged base address leads to failure at BuildMemoryAllocationHob when parsing ACPI node in FdtParserLib, before building gUniversalPayloadAcpiTableGuid GUID HOB.

Align base address of ACPI region down to EFI_PAGE_SIZE to make sure base address always aligned.

FYI. These is log snippet read from Bare Metal hardware platform which supports ACPI 2.0:
efi: SMBIOS 3.0=0xf7e90000 ACPI 2.0=0xf472f018

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • N/A
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • N/A
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • N/A

How This Was Tested

<Describe the test(s) that were run to verify the changes.>

Validated at both QEMU and Bare Metal platform which support ACPI 2.0 only.

<Describe how these changes should be integrated. Use N/A if nothing is required.>

@AjanZhong AjanZhong force-pushed the edk2-upstream branch 2 times, most recently from 59da910 to 2946b98 Compare December 24, 2024 08:45
In platform which support ACPI 2.0 only, the base address of ACPI region
is not page aligned. This unalinged base address leads to failure at
BuildMemoryAllocationHob when parsing ACPI node in FdtParserLib, before
building gUniversalPayloadAcpiTableGuid GUID HOB.

Align base address of ACPI region down to EFI_PAGE_SIZE to make sure
base address always aligned.

Signed-off-by: Ajan Zhong <[email protected]>
@LinusvPelt LinusvPelt added the push Auto push patch series in PR if all checks pass label Dec 25, 2024
@mergify mergify bot merged commit f39b121 into tianocore:master Dec 25, 2024
126 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants