Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 46b4606ba23498d3d0e66b53e498eb3d5d592586
      
https://github.com/tianocore/edk2/commit/46b4606ba23498d3d0e66b53e498eb3d5d592586
  Author: xueshengfeng <xueshengf...@byosoft.com.cn>
  Date:   2021-09-26 (Sun, 26 Sep 2021)

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

  Log Message:
  -----------
  MdeModulePkg/PciBusDxe: Improve the flow of testing support attributes

https://bugzilla.tianocore.org/show_bug.cgi?id=3635

Currently, in order to test the supported attributes,
the PciTestSupportedAttribute() will set the command register
to 0x27 (EFI_PCI_COMMAND_IO_SPACE, EFI_PCI_COMMAND_MEMORY_SPACE,
EFI_PCI_COMMAND_BUS_MASTER, EFI_PCI_COMMAND_VGA_PALETTE_SNOOP) firstly,
and then read back to check whether these attributes are
set successfully in the device.
This will cause the other enabled bits
 (other than EFI_PCI_COMMAND_IO_SPACE,EFI_PCI_COMMAND_MEMORY_SPACE,
 EFI_PCI_COMMAND_BUS_MASTER,EFI_PCI_COMMAND_VGA_PALETTE_SNOOP)
 be cleared for a short of time
 This patch fixes this issue by keeping the origina
 enabled bits when setting 0x27.

Signed-off-by: xueshengfeng <xueshengf...@byosoft.com.cn>
Reviewed-by: Ray <ray...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to