Skip to content

Add EdidDiscovered protocol - #2073

Open
the-shank wants to merge 3 commits into
rust-osdev:mainfrom
the-shank:shank-edid-discovered-protocol
Open

the-shank wants to merge 3 commits into
rust-osdev:mainfrom
the-shank:shank-edid-discovered-protocol

Conversation

@the-shank

Copy link
Copy Markdown
Contributor
  • Adds EdidDiscoveredProtocol bindings in uefi-raw.
  • Adds safe wrapper EdidDiscovered in uefi.
  • Adds test for EdidDiscovered protocol.

reference:

Closes #2072

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Adds the raw `EdidDiscoveredProtocol` struct and GUID for
`EFI_EDID_DISCOVERED_PROTOCOL` (UEFI Spec 2.10, section 12.9), which
exposes the raw EDID discovered for the display device backing a
`GraphicsOutput` handle.
Adds a safe wrapper around `EdidDiscoveredProtocol` in
`uefi::proto::console::gop`, alongside `GraphicsOutput`.
Adds an integration test for `EdidDiscovered`. Also renames `gop::test` to
`gop::gop_test` to disambiguate it from the new `gop::test_edid_discovered`.
@the-shank

Copy link
Copy Markdown
Contributor Author

The display drivers that are bundled in the ovmf-prebuilt image that we use for our qemu tests do not install EFI_EDID_DISCOVERED_PROTOCOL on any backend (for e.g. the QemuVideoDxe has a TODO for this). Due to this, the test skips early. I couldnt think of a way where in we still use our ovmf-prebuilt and still get to add the protocol to test it. Any thoughts @phip1611

image

@phip1611

Copy link
Copy Markdown
Member

I can run it tomorrow on real hardware and test it; i was planning to do a UEFI test on real hardware anyway :)

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.

Add support for EFI_EDID_DISCOVERED_PROTOCOL

2 participants