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

UniversalPayload: Add serial and graphic parse in pci-rb node which is non-compatible to 'pci-rb' property #6239

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AjanZhong
Copy link

Description

Serial port and Graphic device nodes are sub nodes of PCI Root Bridge node, they will be parsed only when 'pci-rb'
node is compatible to 'pci-rb' type in current logic. Add support to parse both Serial device and Graphic device node
and utilize Host PCI Root Bridge scanning feature in pci-rb node which does not compatible to 'pci-rb' property type.

Also we need to parse more options for GOP to ensure framebuffer can be flashed to Graphic device correctly

  • Breaking change?
  • Impacts security?
  • Includes tests?

How This Was Tested

Validated with x86 kernel with FB_EFI/DRM_BOCHS configurations enabled on top QEMU environment.

Integration Instructions

N/A

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 <[email protected]>
Add Red/Green/Blue mask and pixelsperscanline properties parsing
when constructing GraphicInfo HoB, these properties are required
during flash Framebuffer data to Graphic device.

Signed-off-by: Ajan Zhong <[email protected]>
@LeanSheng
Copy link
Contributor

@AjanZhong For the graphic part: would you mind to create a PR at the UPL spec as well? The changes have to be alligned to the spec.
https://github.com/UniversalPayload/spec/blob/0fa7aa68b5e612482dc76157780c2b67d0ef6209/docs/chapter4-payload-handoff-format.rst#L769

@AjanZhong
Copy link
Author

@AjanZhong For the graphic part: would you mind to create a PR at the UPL spec as well? The changes have to be alligned to the spec. https://github.com/UniversalPayload/spec/blob/0fa7aa68b5e612482dc76157780c2b67d0ef6209/docs/chapter4-payload-handoff-format.rst#L769

@LeanSheng Appreciate for your response and guide, patch for UPL SPEC has been submitted: UniversalPayload/spec#17, please help review when you are available.

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