]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Add missing memory barriers
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 3 Oct 2017 16:11:49 +0000 (11:11 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 19:28:49 +0000 (15:28 -0400)
commit93f0019281b21b021b401768ddfe91669051612e
tree2c517f9fd1e17c9304c2b82069b2051420c7390c
parent3e9da1a12a809d155cd909104a047983ad3e42dc
i40iw: Add missing memory barriers

Remove duplicate set_64bit_val call to offset 24.
Replace some instances of set_64bit_val with
i40iw_insert_wqe_hdr as valid bit needs a write
barrier and should be the last write operation for the WQE.

Fixes: ab0872a9ed88 ("i40iw: add puda code")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c
drivers/infiniband/hw/i40iw/i40iw_p.h
drivers/infiniband/hw/i40iw/i40iw_puda.c