aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/qp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 6da2e9755091..1fca0afd14e3 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -256,7 +256,7 @@ static void mlx4_ib_qp_event(struct mlx4_qp *qp, enum mlx4_event type)
256 event.event = IB_EVENT_QP_ACCESS_ERR; 256 event.event = IB_EVENT_QP_ACCESS_ERR;
257 break; 257 break;
258 default: 258 default:
259 printk(KERN_WARNING "mlx4_ib: Unexpected event type %d " 259 pr_warn("Unexpected event type %d "
260 "on QP %06x\n", type, qp->qpn); 260 "on QP %06x\n", type, qp->qpn);
261 return; 261 return;
262 } 262 }
@@ -715,7 +715,7 @@ static void destroy_qp_common(struct mlx4_ib_dev *dev, struct mlx4_ib_qp *qp,
715 if (qp->state != IB_QPS_RESET) 715 if (qp->state != IB_QPS_RESET)
716 if (mlx4_qp_modify(dev->dev, NULL, to_mlx4_state(qp->state), 716 if (mlx4_qp_modify(dev->dev, NULL, to_mlx4_state(qp->state),
717 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp)) 717 MLX4_QP_STATE_RST, NULL, 0, 0, &qp->mqp))
718 printk(KERN_WARNING "mlx4_ib: modify QP %06x to RESET failed.\n", 718 pr_warn("modify QP %06x to RESET failed.\n",
719 qp->mqp.qpn); 719 qp->mqp.qpn);
720 720
721 get_cqs(qp, &send_cq, &recv_cq); 721 get_cqs(qp, &send_cq, &recv_cq);
@@ -946,7 +946,7 @@ static int mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah,
946 946
947 if (ah->ah_flags & IB_AH_GRH) { 947 if (ah->ah_flags & IB_AH_GRH) {
948 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) { 948 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) {
949 printk(KERN_ERR "sgid_index (%u) too large. max is %d\n", 949 pr_err("sgid_index (%u) too large. max is %d\n",
950 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1); 950 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1);
951 return -1; 951 return -1;
952 } 952 }
@@ -1050,7 +1050,7 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
1050 context->mtu_msgmax = (IB_MTU_4096 << 5) | 12; 1050 context->mtu_msgmax = (IB_MTU_4096 << 5) | 12;
1051 } else if (attr_mask & IB_QP_PATH_MTU) { 1051 } else if (attr_mask & IB_QP_PATH_MTU) {
1052 if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_4096) { 1052 if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_4096) {
1053 printk(KERN_ERR "path MTU (%u) is invalid\n", 1053 pr_err("path MTU (%u) is invalid\n",
1054 attr->path_mtu); 1054 attr->path_mtu);
1055 goto out; 1055 goto out;
1056 } 1056 }
@@ -1266,7 +1266,7 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
1266 if (is_qp0(dev, qp)) { 1266 if (is_qp0(dev, qp)) {
1267 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR) 1267 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR)
1268 if (mlx4_INIT_PORT(dev->dev, qp->port)) 1268 if (mlx4_INIT_PORT(dev->dev, qp->port))
1269 printk(KERN_WARNING "INIT_PORT failed for port %d\n", 1269 pr_warn("INIT_PORT failed for port %d\n",
1270 qp->port); 1270 qp->port);
1271 1271
1272 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && 1272 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR &&
@@ -1460,16 +1460,16 @@ static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_send_wr *wr,
1460 header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf); 1460 header_size = ib_ud_header_pack(&sqp->ud_header, sqp->header_buf);
1461 1461
1462 if (0) { 1462 if (0) {
1463 printk(KERN_ERR "built UD header of size %d:\n", header_size); 1463 pr_err("built UD header of size %d:\n", header_size);
1464 for (i = 0; i < header_size / 4; ++i) { 1464 for (i = 0; i < header_size / 4; ++i) {
1465 if (i % 8 == 0) 1465 if (i % 8 == 0)
1466 printk(" [%02x] ", i * 4); 1466 pr_err(" [%02x] ", i * 4);
1467 printk(" %08x", 1467 pr_cont(" %08x",
1468 be32_to_cpu(((__be32 *) sqp->header_buf)[i])); 1468 be32_to_cpu(((__be32 *) sqp->header_buf)[i]));
1469 if ((i + 1) % 8 == 0) 1469 if ((i + 1) % 8 == 0)
1470 printk("\n"); 1470 pr_cont("\n");
1471 } 1471 }
1472 printk("\n"); 1472 pr_err("\n");
1473 } 1473 }
1474 1474
1475 /* 1475 /*