public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* SR-IOV setup in edk2
@ 2021-03-21 12:46 Jon Nettleton
  2021-03-22 19:04 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Nettleton @ 2021-03-21 12:46 UTC (permalink / raw)
  To: devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-25 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-21 12:46 SR-IOV setup in edk2 Jon Nettleton
2021-03-22 19:04 ` [edk2-devel] " Laszlo Ersek
2021-03-25  8:02   ` Jon Nettleton
2021-03-25 17:48     ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox