RDMA/qedr: eliminate duplicate barriers on weakly-ordered archs
authorSinan Kaya <okaya@codeaurora.org>
Wed, 14 Mar 2018 03:20:24 +0000 (23:20 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:35:44 +0000 (15:35 -0600)
commit561e5d48968be22fc71af6a0e13af6edae595dbe
tree7ea473cab206bf1ffbeadcb7de929e1ae58f8eb4
parent7b48221cf41a90cf4bfc36e6d699b7fa4169c970
RDMA/qedr: eliminate duplicate barriers on weakly-ordered archs

Code includes wmb() followed by writel() in multiple places. writel()
already has a barrier on some architectures like arm64.

This ends up CPU observing two barriers back to back before executing the
register write.

Since code already has an explicit barrier call, changing writel() to
writel_relaxed().

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/verbs.c