Skip to content

Commit 0aba496

Browse files
Shaohua Lijbarnes993
authored andcommitted
x86/PCI: select direct access mode for mmconfig option
Direct access is needed in mmconf mode too. There are two reasons: 1. we need it to access first 256 bytes. We have bug before that using mmconf to access pci config space hangs system (when resizing BARs), so we use type1 config for legacy config space. 2. when doing mmconfg bar checking, we need access ACPI _CRS, which might access PCI config space. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent efe6d72 commit 0aba496

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ config PCI_BIOS
19051905
# x86-64 doesn't support PCI BIOS access from long mode so always go direct.
19061906
config PCI_DIRECT
19071907
def_bool y
1908-
depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC))
1908+
depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC || PCI_GOMMCONFIG))
19091909

19101910
config PCI_MMCONFIG
19111911
def_bool y

0 commit comments

Comments
 (0)