summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/InfBuildData.py
diff options
context:
space:
mode:
authorxueshengfeng <xueshengfeng@byosoft.com.cn>2021-09-24 14:30:45 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-09-26 02:43:46 +0000
commit46b4606ba23498d3d0e66b53e498eb3d5d592586 (patch)
treec01285a999c8142da89ff89b147e9a386f89f59a /BaseTools/Source/Python/Workspace/InfBuildData.py
parentd60915b7516c87ec49ad579a1cb8ff9226d85928 (diff)
downloadedk2-46b4606ba23498d3d0e66b53e498eb3d5d592586.tar.gz
edk2-46b4606ba23498d3d0e66b53e498eb3d5d592586.tar.bz2
edk2-46b4606ba23498d3d0e66b53e498eb3d5d592586.zip
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 <xueshengfeng@byosoft.com.cn> Reviewed-by: Ray <ray.ni@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/InfBuildData.py')
0 files changed, 0 insertions, 0 deletions