]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/infiniband/hw/mthca/mthca_qp.c
drivers: Remove explicit invocations of mmiowb()
[linux.git] / drivers / infiniband / hw / mthca / mthca_qp.c
index 7a5b25d13faa8d79427db32ba622ae92c7902202..d65b189f20ead4e448d11039193ba0233e0c0f1c 100644 (file)
@@ -1809,11 +1809,6 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
                              (qp->qpn << 8) | size0,
                              dev->kar + MTHCA_SEND_DOORBELL,
                              MTHCA_GET_DOORBELL_LOCK(&dev->doorbell_lock));
-               /*
-                * Make sure doorbells don't leak out of SQ spinlock
-                * and reach the HCA out of order:
-                */
-               mmiowb();
        }
 
        qp->sq.next_ind = ind;
@@ -1924,12 +1919,6 @@ int mthca_tavor_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
        qp->rq.next_ind = ind;
        qp->rq.head    += nreq;
 
-       /*
-        * Make sure doorbells don't leak out of RQ spinlock and reach
-        * the HCA out of order:
-        */
-       mmiowb();
-
        spin_unlock_irqrestore(&qp->rq.lock, flags);
        return err;
 }
@@ -2164,12 +2153,6 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
                              MTHCA_GET_DOORBELL_LOCK(&dev->doorbell_lock));
        }
 
-       /*
-        * Make sure doorbells don't leak out of SQ spinlock and reach
-        * the HCA out of order:
-        */
-       mmiowb();
-
        spin_unlock_irqrestore(&qp->sq.lock, flags);
        return err;
 }