We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1d540 commit d8dedceCopy full SHA for d8dedce
drivers/pci/pci.c
@@ -3719,6 +3719,14 @@ int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask)
3719
struct pci_dev *bridge;
3720
u32 cap, ctl2;
3721
3722
+ /*
3723
+ * Per PCIe r5.0, sec 9.3.5.10, the AtomicOp Requester Enable bit
3724
+ * in Device Control 2 is reserved in VFs and the PF value applies
3725
+ * to all associated VFs.
3726
+ */
3727
+ if (dev->is_virtfn)
3728
+ return -EINVAL;
3729
+
3730
if (!pci_is_pcie(dev))
3731
return -EINVAL;
3732
0 commit comments