Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: c70637de12e0d5cee78ebf5a0b5d09cdb1db53c9
      
https://github.com/tianocore/edk2/commit/c70637de12e0d5cee78ebf5a0b5d09cdb1db53c9
  Author: Phil Noh <[email protected]>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    M MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c

  Log Message:
  -----------
  MdeModulePkg/PciBusDxe: Honor SpecificFlag for PMem64 in UpdatePciInfo

When UpdatePciInfo() downgrades a PciBarTypePMem64 BAR to a 32-bit type
via EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL, it unconditionally
assigns PciBarTypePMem32 regardless of SpecificFlag, placing the BAR in
the prefetchable bridge window even when the platform intended the
non-prefetchable window.

The ACPI resource descriptor's SpecificFlag field encodes the intended
prefetchability of the constrained resource, using the bit:
EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE.

Fix this by checking the bit in SpecificFlag to select PciBarTypePMem32 or
PciBarTypeMem32, consistent with DumpPpbPaddingResource() in
PciEnumeratorSupport.c that uses the bit as the sole discriminator
between the two 32-bit BAR types.

Signed-off-by: Phil Noh <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to