public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Jon Nettleton" <jon@solid-run.com>
To: devel@edk2.groups.io
Subject: SR-IOV setup in edk2
Date: Sun, 21 Mar 2021 13:46:29 +0100	[thread overview]
Message-ID: <CABdtJHsn8V6ZjZM0_tFkHNzg0gmg0sH81csDA6goHaO0DjM1Wg@mail.gmail.com> (raw)

I am looking for some example code, or direction in how SR-IOV
functions are expected to be picked up by the platform pcie host
library so it can setup required bits like LUTs.  Currently the
HostLib is getting the gEfiPciIoProtocolGuid event and then setting
the controller up based on the BDF.  I see that PciScanBus is
detecting the VF's and calling PciAllocateBusNumber().

PCI-IOV ScanBus - SubBusNumber - 0x2
PciBus: Discovered PPB @ [00|00|00]

However my setup function is only ever triggered with the real device
BDF's...Is it up to me to check for the VFs if SR-IOV is enabled and
set them up manually?  Is there another event I should be listening to
that will be triggered for VF's vs PF's?

Any pointers would be very helpful.

-Jon

             reply	other threads:[~2021-03-21 12:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-21 12:46 Jon Nettleton [this message]
2021-03-22 19:04 ` [edk2-devel] SR-IOV setup in edk2 Laszlo Ersek
2021-03-25  8:02   ` Jon Nettleton
2021-03-25 17:48     ` Laszlo Ersek

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=CABdtJHsn8V6ZjZM0_tFkHNzg0gmg0sH81csDA6goHaO0DjM1Wg@mail.gmail.com \
    --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