audk/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe
Ard Biesheuvel 1a3bee2082 MdeModulePkg/NonDiscoverablePciDeviceDxe: expose unique B/D/F identifiers
Currently, the implementation of EFI_PCI_IO_PROTOCOL::GetLocation()
in NonDiscoverablePciDeviceDxe returns the same set of dummy values
for each instance of the NON_DISCOVERABLE_DEVICE protocol that it
attaches itself to. However, this turns out to be causing problems
in cases where software (such as the ARM Compliance Test Suite [ACS])
attempts to use these values to uniquely identify controllers, since
the collisions create ambiguity in this regard.

So let's modify GetLocation() to return an arbitrary bus/device tuple
on segment 0xff instead. This is guaranteed not to clash with other
non-discoverable PCI devices, and highly unlikely to clash with real
PCIe devices.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2018-10-10 11:14:29 +02:00
..
ComponentName.c MdeModulePkg/NonDiscoverablePciDeviceDxe: Add comments for functions 2016-12-19 09:19:54 +08:00
NonDiscoverablePciDeviceDxe.c MdeModulePkg/NonDiscoverablePciDeviceDxe: expose unique B/D/F identifiers 2018-10-10 11:14:29 +02:00
NonDiscoverablePciDeviceDxe.inf MdeModulePkg/NonDiscoverablePciDeviceDxe: Add comments for functions 2016-12-19 09:19:54 +08:00
NonDiscoverablePciDeviceIo.c MdeModulePkg/NonDiscoverablePciDeviceDxe: expose unique B/D/F identifiers 2018-10-10 11:14:29 +02:00
NonDiscoverablePciDeviceIo.h MdeModulePkg/NonDiscoverablePciDeviceDxe: expose unique B/D/F identifiers 2018-10-10 11:14:29 +02:00