]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: properly check atomic capabilities
authorAmrani, Ram <Ram.Amrani@cavium.com>
Thu, 27 Apr 2017 10:35:32 +0000 (13:35 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 16:47:57 +0000 (12:47 -0400)
commit16ee0a5e828a6ff4f0b3ac4887b17193866ef132
treeeae558f6c79e85d00c07a43e867e40940bdcc14d
parent222f73d83e411bddbf38ccb1442c4b2a931addd5
RDMA/qedr: properly check atomic capabilities

After checking the path upwards towards root complex, actualy check
root complex atomic_req capability, and not our own NIC.
Verify that the PCIe device control register's atomic egress block
is cleared in the path.
Verify that the PCIe version is at least 2.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/main.c
include/uapi/linux/pci_regs.h