
13 Apr
2022
13 Apr
'22
6:30 p.m.
diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index 47cd074aa1..fd2203420c 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -67,6 +67,13 @@ config PCI_SRIOV if available on a PCI Physical Function device and probe for applicable drivers.
+config PCI_ENHANCED_ALLOCATION
bool "Enable support for Enhanced Allocation of resources"
default y
help
Enable support for Enhanced Allocation which can be used by supported
devices in place of traditional BARS for allocation of resources.
Why do we need a config option for EA as it can be figured out in the run time?
I wanted to have the option to disable the logic for handling EA at runtime. A glance at the code suggested there's a whole other rabbit hole of missing safety checks that I've opted to leave for another day.