Patchwork [RFC,v2,21/21] x86: enable movable BARs

login
register
mail settings
Submitter Sergey Miroshnichenko
Date Jan. 11, 2019, 3:37 p.m.
Message ID <20190111153707.10140-22-s.miroshnichenko@yadro.com>
Download mbox | patch
Permalink /patch/697853/
State New
Headers show

Comments

Sergey Miroshnichenko - Jan. 11, 2019, 3:37 p.m.
Enable the feature by default. Can be overridden by the command line
argument "pcie_movable_bars=off".

Signed-off-by: Sergey Miroshnichenko <s.miroshnichenko@yadro.com>
---
 arch/x86/pci/init.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/arch/x86/pci/init.c b/arch/x86/pci/init.c
index 5fc617edf108..f93843f702d1 100644
--- a/arch/x86/pci/init.c
+++ b/arch/x86/pci/init.c
@@ -40,6 +40,8 @@  static __init int pci_arch_init(void)
 
 	dmi_check_skip_isa_align();
 
+	pci_add_flags(PCI_MOVABLE_BARS);
+
 	return 0;
 }
 arch_initcall(pci_arch_init);