@@ -1144,11 +1144,20 @@ static void pci_enable_dev_caps(struct pci_dev *dev)
* tolerance for snooped & unsnooped memory transactions.
*/
pci_enable_ltr(dev);
+
+ /*
+ * OBFF (optimized buffer flush/fill), where supported,
+ * can help improve energy efficiency by giving devices
+ * information about when interrupts and other activity
+ * will have a reduced power impact.
+ */
+ pci_enable_obff(dev, PCI_EXP_OBFF_SIGNAL_L0);
}
static void pci_disable_dev_caps(struct pci_dev *dev)
{
pci_disable_ltr(dev);
+ pci_disable_obff(dev);
}
static int do_pci_enable_device(struct pci_dev *dev, int bars)
Enable OBFF(optimized buffer flush/fill) in pci_enable_device() function, make sure this feature is enabled before device is used by driver. Signed-off-by: Xudong Hao <xudong.hao@intel.com> --- drivers/pci/pci.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)