.num_of_watch_points = 4,
        .mqd_size_aligned = MQD_SIZE_ALIGNED,
        .supports_cwsr = false,
+       .needs_pci_atomics = false,
 };
 
 static const struct kfd_device_info carrizo_device_info = {
        .num_of_watch_points = 4,
        .mqd_size_aligned = MQD_SIZE_ALIGNED,
        .supports_cwsr = true,
+       .needs_pci_atomics = false,
 };
 
 struct kfd_deviceid {
                return NULL;
        }
 
+       if (device_info->needs_pci_atomics) {
+               /* Allow BIF to recode atomics to PCIe 3.0
+                * AtomicOps. 32 and 64-bit requests are possible and
+                * must be supported.
+                */
+               if (pci_enable_atomic_ops_to_root(pdev,
+                               PCI_EXP_DEVCAP2_ATOMIC_COMP32 |
+                               PCI_EXP_DEVCAP2_ATOMIC_COMP64) < 0) {
+                       dev_info(kfd_device,
+                               "skipped device %x:%x, PCI rejects atomics",
+                                pdev->vendor, pdev->device);
+                       return NULL;
+               }
+       }
+
        kfd = kzalloc(sizeof(*kfd), GFP_KERNEL);
        if (!kfd)
                return NULL;