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

Fdt x86 arm64 #6458

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Fdt x86 arm64 #6458

wants to merge 12 commits into from

Conversation

AjanZhong
Copy link

Description

<Include a description of the change and why this change was made.>

<For each item, place an "x" in between [ and ] if true. Example: [x] (you can also check items in GitHub UI)>

<Create the PR as a Draft PR if it is only created to run CI checks.>

<Delete lines in <> tags before creating the PR.>

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

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

Integration Instructions

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

amosbu and others added 12 commits October 17, 2024 12:09
Add fundamental AARCH64 architecture FIT image support, introduce
new dsc and fdf files for AARCH64 architecture, and introduce new
PCD: PcdUseUniversalPayloadSerialPort to indicate which serial
port component is used due to some serial port parameters are fixed
for ARM SoC and Platform.

Use following command to build AARCH64 UPL FIT image:
"
 export GCC5_AARCH64_PREFIX=aarch64-linux-gnu-
 python UefiPayloadPkg/UniversalPayloadBuild.py -a AARCH64 -t GCC5
   -b DEBUG -c UefiPayloadPkg/UefiPayloadPkg_aarch64.dsc --Fit
"

Signed-off-by: Amos Bu <amos.bu@newfw.com>
Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
Serial port and Graphic device nodes will be parsed only when 'pci-rb'
node is compatible to 'pci-rb' type in current logic, this logic limits
bootloader to provide informations of all Host PCI Root Bridges.

However, PciHostBridgeLib library in UefiPayloadPkg provides support
to scan Host PCI Root Bridges dynamically. Bootloader can utilizes
Root Bridges scanning feature, and provides Serial Port and Graphic
device information in a 'pci-rb' node without providing informations
about all Host PCI Root Bridges.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>

refine gaphic and serial
Add Red/Green/Blue mask and pixelsperscanline properties parse
when constructing GraphicInfo HoB, these properties are required
during flash Framebuffer data to Graphic device.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
Add ARM64 support on FdtParserLib when FDT is enabled.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
If unaligned check has been enabled in ARM64 platform, FDT parser might
dereference unaligned address to get 64-bit data. Use unaligned data
read to avoid triggering unaligned data access

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
According to ACPI Specification, 64 bit physical address of the XSDT
provides indentical functionality to the RSDT but accommodates phiscal
address of description headers that are larger than 32 bits.

In this case physical address of XSDT table is 64 bit aligned, however
size of ACPI description tabled header is not 64 bit alinged. It leads
to the entry of other description headers are not 64 bit aligned. In
ARM64 architecture, deference not 64 bit aligned address to get 64 bit
data will trigger unaligned data access fault. Use ReadUnaligned64
method to fix this unaligned data access issue.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
ARM64 CpuDxe takes charge of constructing Translation tables with
memory map information provided by bootloader, and enabling MMU,
set correct EOIMode to adapt ARM GiC V3 implementation.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
SR-IOV is enabled for NVME device, it is impossible to disable
controller for the first node, so we need to wait till timeout.

During this timeout period, prompt message to indicate status.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants