mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
GenWQE: Add wmb before DDCB is started
Needed to add wmb() before we send the DDCB for execution. Without the syncronizing it failed on System p. Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5c5e058903
commit
68fe8acc20
1 changed files with 4 additions and 0 deletions
|
@ -305,6 +305,8 @@ static int enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_queue *queue,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
new = (old | DDCB_NEXT_BE32);
|
new = (old | DDCB_NEXT_BE32);
|
||||||
|
|
||||||
|
wmb();
|
||||||
icrc_hsi_shi = cmpxchg(&prev_ddcb->icrc_hsi_shi_32, old, new);
|
icrc_hsi_shi = cmpxchg(&prev_ddcb->icrc_hsi_shi_32, old, new);
|
||||||
|
|
||||||
if (icrc_hsi_shi == old)
|
if (icrc_hsi_shi == old)
|
||||||
|
@ -314,6 +316,8 @@ static int enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_queue *queue,
|
||||||
/* Queue must be re-started by updating QUEUE_OFFSET */
|
/* Queue must be re-started by updating QUEUE_OFFSET */
|
||||||
ddcb_mark_tapped(pddcb);
|
ddcb_mark_tapped(pddcb);
|
||||||
num = (u64)ddcb_no << 8;
|
num = (u64)ddcb_no << 8;
|
||||||
|
|
||||||
|
wmb();
|
||||||
__genwqe_writeq(cd, queue->IO_QUEUE_OFFSET, num); /* start queue */
|
__genwqe_writeq(cd, queue->IO_QUEUE_OFFSET, num); /* start queue */
|
||||||
|
|
||||||
return RET_DDCB_TAPPED;
|
return RET_DDCB_TAPPED;
|
||||||
|
|
Loading…
Add table
Reference in a new issue