diff options
author | Vipul Pandya <vipul@chelsio.com> | 2013-01-07 08:11:54 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-02-14 18:51:56 -0500 |
commit | 04236df2a5b1e9881c90f2d1f63fbee3659297a7 (patch) | |
tree | 434496184e039dd8cc2c31fdcc4dbc2a9904d4ab /drivers/infiniband | |
parent | 325abead6cc7ef50572c53b1adc4d2442234b50f (diff) |
RDMA/cxgb4: Always log async errors
Log AEs even if the QP isn't in RTS. It is useful information.
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/ev.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index ebcdb3ff0cf4..5989991e31a1 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -1419,9 +1419,9 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb) | |||
1419 | BUG_ON(!ep->com.qp); | 1419 | BUG_ON(!ep->com.qp); |
1420 | if (ep->com.qp->attr.state == C4IW_QP_STATE_RTS) | 1420 | if (ep->com.qp->attr.state == C4IW_QP_STATE_RTS) |
1421 | pr_err("%s Unexpected streaming data." \ | 1421 | pr_err("%s Unexpected streaming data." \ |
1422 | " ep %p state %d tid %u status %d\n", | 1422 | " qpid %u ep %p state %d tid %u status %d\n", |
1423 | __func__, ep, state_read(&ep->com), | 1423 | __func__, ep->com.qp->wq.sq.qid, ep, |
1424 | ep->hwtid, status); | 1424 | state_read(&ep->com), ep->hwtid, status); |
1425 | attrs.next_state = C4IW_QP_STATE_ERROR; | 1425 | attrs.next_state = C4IW_QP_STATE_ERROR; |
1426 | c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, | 1426 | c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, |
1427 | C4IW_QP_ATTR_NEXT_STATE, &attrs, 1); | 1427 | C4IW_QP_ATTR_NEXT_STATE, &attrs, 1); |
diff --git a/drivers/infiniband/hw/cxgb4/ev.c b/drivers/infiniband/hw/cxgb4/ev.c index cf2f6b47617a..1a840b2211dd 100644 --- a/drivers/infiniband/hw/cxgb4/ev.c +++ b/drivers/infiniband/hw/cxgb4/ev.c | |||
@@ -46,9 +46,11 @@ static void post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp, | |||
46 | 46 | ||
47 | if ((qhp->attr.state == C4IW_QP_STATE_ERROR) || | 47 | if ((qhp->attr.state == C4IW_QP_STATE_ERROR) || |
48 | (qhp->attr.state == C4IW_QP_STATE_TERMINATE)) { | 48 | (qhp->attr.state == C4IW_QP_STATE_TERMINATE)) { |
49 | PDBG("%s AE received after RTS - " | 49 | pr_err("%s AE after RTS - qpid 0x%x opcode %d status 0x%x "\ |
50 | "qp state %d qpid 0x%x status 0x%x\n", __func__, | 50 | "type %d wrid.hi 0x%x wrid.lo 0x%x\n", |
51 | qhp->attr.state, qhp->wq.sq.qid, CQE_STATUS(err_cqe)); | 51 | __func__, CQE_QPID(err_cqe), CQE_OPCODE(err_cqe), |
52 | CQE_STATUS(err_cqe), CQE_TYPE(err_cqe), | ||
53 | CQE_WRID_HI(err_cqe), CQE_WRID_LOW(err_cqe)); | ||
52 | return; | 54 | return; |
53 | } | 55 | } |
54 | 56 | ||