]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Protect the doorbell BAR with the write barriers.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Tue, 28 Jun 2016 11:46:03 +0000 (07:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 12:12:45 +0000 (08:12 -0400)
commit5c938f4769bd13ff43e9d1115b877f63a64389a4
tree8ca04fdbb5fa7ee021f95e5d7250eb79b6193d77
parent9cda6a920112ebd3c67d0b7e2d22d8cae387de4d
qed: Protect the doorbell BAR with the write barriers.

SPQ doorbell is currently protected with the compilation barrier. Under the
stress scenarios, we may get into a state where (due to the weak ordering)
several ramrod doorbells were written to the BAR with an out-of-order
producer values. Need to change the barrier type to a write barrier to make
sure that the write buffer is flushed after each doorbell.

Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_spq.c