Return -EINVAL if pci_enable_atomic_ops_to_root() is called for a VF. Link: https://lore.kernel.org/r/1631354585-16597-1-git-send-email-selvin.xavier@broadcom.com Fixes: 35f5ace ("RDMA/bnxt_re: Enable global atomic ops if platform supports") Fixes: 430a236 ("PCI: Add pci_enable...
!pci_enable_atomic_ops_to_root(pdev, PCI_EXP_DEVCAP2_ATOMIC_COMP32)) cap.flags |= VFIO_PCI_ATOMIC_COMP32;if ((devcap2 & PCI_EXP_DEVCAP2_ATOMIC_COMP64) && !pci_enable_atomic_ops_to_root(pdev, PCI_EXP_DEVCAP2_ATOMIC_COMP64)) ...
Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.102-1-pve root=/dev/mapper/pve-root ro quiet ...
patch:PCI: Re-enable Downstream Port LTR after reset or hotplug 厂商控制器驱动修改 小结 PCI V5.16变更依然延续过去稳健风格,未有大的特性修改点,部分问题修复和重构优化。 参考资料 PCI: Re-enable Downstream Port LTR after reset or hotplug (pci-v5.16-changes) ...
static int __pci_enable_device_flags(struct pci_dev *dev, resource_size_t flags) { int err; int i, bars = 0; //如果enable_cnt 已经大于1.则说明它已经被启用了 if (atomic_add_return(1, &dev->enable_cnt) > 1) return 0; /* already enabled */ ...
static int __pci_enable_device_flags(struct pci_dev *dev, resource_size_t flags) { int err; int i, bars = 0; //如果enable_cnt 已经大于1.则说明它已经被启用了 if (atomic_add_return(1, &dev->enable_cnt) > 1) return 0; /* already enabled */ ...
AtomicOpsCap: 32bit- 64bit- 128bitCAS- DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq+ OBFF Disabled, AtomicOpsCtl: ReqEn- LnkCap2: Supported Link Speeds: 2.5-32GT/s, Crosslink- Retimer- 2Retimers- DRS- ...
atomic_t enable_cnt; /* pci_enable_device has been called */ u32 saved_config_space[16]; /* config space saved at suspend time */ struct hlist_head saved_cap_space; struct bin_attribute *rom_attr; /* attribute descriptor for sysfs ROM entry */ ...
atomic_t enable_cnt; /* pci_enable_device has been called */ u32 saved_config_space[16]; /* config space saved at suspend time */ struct hlist_head saved_cap_space; struct bin_attribute *rom_attr; /* attribute descriptor for sysfs ROM entry */ ...
on a target location in memory space. the 3 atomicops are fetchadd (fetch and add), swap (unconditional swap), and cas (compare and swap). fetchadd and swap support operand sizes of 32 and 64 bits. cas supports operand sizes of 32, 64, and 128 bits. show less 2.x ecn april 17...