Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 842c1dde authored by Jon Mason's avatar Jon Mason Committed by Greg Kroah-Hartman
Browse files

NTB: correct memory barrier



mmiowb is not sufficient to flush the data and is causing data
corruption.  Change to wmb and the data corruption is no more.

Signed-off-by: default avatarJon Mason <jon.mason@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8222b402
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1009,7 +1009,7 @@ static void ntb_tx_copy_task(struct ntb_transport_qp *qp,
	hdr->ver = qp->tx_pkts;

	/* Ensure that the data is fully copied out before setting the flag */
	mmiowb();
	wmb();
	hdr->flags = entry->flags | DESC_DONE_FLAG;

	ntb_ring_sdb(qp->ndev, qp->qp_num);