IB/mlx4: Eliminate duplicate barriers on weakly-ordered archs
authorSinan Kaya <okaya@codeaurora.org>
Tue, 20 Mar 2018 02:47:44 +0000 (22:47 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Mar 2018 19:51:41 +0000 (13:51 -0600)
commit97d82a48d7a7eca6f20b100ae19811134509406e
treec748fec9d12b873df810c1cf787bdc94b625c7d3
parent185899ee8d00460a305e07ed2df178dbf7455227
IB/mlx4: Eliminate duplicate barriers on weakly-ordered archs

Code includes wmb() followed by writel(). 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>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/qp.c