public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: pharcellus@hotmail.com
To: devel@edk2.groups.io
Subject: Question regarding changing video adapter selection during pre-boot (PEI/DXE)
Date: Sun, 23 Apr 2023 23:00:21 -0700	[thread overview]
Message-ID: <MHB1.1682316021514864361.f36e@groups.io> (raw)

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

Greetings, all.

I have kind of a general UEFI dev question. I have multiple video adapters in a system in which the BIOS doesn't provide even a hidden means of selecting a particular adapter to use as the default boot adapter. It seems like the heuristic is similar to what vgaarb does in the Linux kernel, where it takes the adapter with the highest available PCI device ID and that one becomes the active boot adapter.

I've read a bit of the UEFI spec about the GOP protocol, but what I wanted to know was where I could look for the code that makes the determination for the heuristic. Does it reside in a DXE driver module, or is it in a different location? If so, could you tell me which one or where might I look to find it?

Also, is there a way without patching a UEFI BIOS to change that heuristic if the BIOS itself doesn't provide a setup option? Like, could I add a DXE driver to change it, or some other driver in the boot EFI partition? (I would tend to think it would be too late at that point, but figured I would ask).

Thank you in advance for any advice,
Talarus Luan

[-- Attachment #2: Type: text/html, Size: 1134 bytes --]

                 reply	other threads:[~2023-04-24  6:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MHB1.1682316021514864361.f36e@groups.io \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox