aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mlx4/cq.c10
-rw-r--r--drivers/infiniband/hw/mlx4/main.c14
-rw-r--r--drivers/infiniband/hw/mlx4/mr.c2
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c22
-rw-r--r--drivers/infiniband/hw/mlx4/srq.c2
5 files changed, 25 insertions, 25 deletions
diff --git a/drivers/infiniband/hw/mlx4/cq.c b/drivers/infiniband/hw/mlx4/cq.c
index 77c8cb4c5073..34ac0e2e97ee 100644
--- a/drivers/infiniband/hw/mlx4/cq.c
+++ b/drivers/infiniband/hw/mlx4/cq.c
@@ -50,7 +50,7 @@ static void mlx4_ib_cq_event(struct mlx4_cq *cq, enum mlx4_event type)
50 struct ib_cq *ibcq; 50 struct ib_cq *ibcq;
51 51
52 if (type != MLX4_EVENT_TYPE_CQ_ERROR) { 52 if (type != MLX4_EVENT_TYPE_CQ_ERROR) {
53 printk(KERN_WARNING "mlx4_ib: Unexpected event type %d " 53 pr_warn("Unexpected event type %d "
54 "on CQ %06x\n", type, cq->cqn); 54 "on CQ %06x\n", type, cq->cqn);
55 return; 55 return;
56 } 56 }
@@ -463,7 +463,7 @@ static void dump_cqe(void *cqe)
463{ 463{
464 __be32 *buf = cqe; 464 __be32 *buf = cqe;
465 465
466 printk(KERN_DEBUG "CQE contents %08x %08x %08x %08x %08x %08x %08x %08x\n", 466 pr_debug("CQE contents %08x %08x %08x %08x %08x %08x %08x %08x\n",
467 be32_to_cpu(buf[0]), be32_to_cpu(buf[1]), be32_to_cpu(buf[2]), 467 be32_to_cpu(buf[0]), be32_to_cpu(buf[1]), be32_to_cpu(buf[2]),
468 be32_to_cpu(buf[3]), be32_to_cpu(buf[4]), be32_to_cpu(buf[5]), 468 be32_to_cpu(buf[3]), be32_to_cpu(buf[4]), be32_to_cpu(buf[5]),
469 be32_to_cpu(buf[6]), be32_to_cpu(buf[7])); 469 be32_to_cpu(buf[6]), be32_to_cpu(buf[7]));
@@ -473,7 +473,7 @@ static void mlx4_ib_handle_error_cqe(struct mlx4_err_cqe *cqe,
473 struct ib_wc *wc) 473 struct ib_wc *wc)
474{ 474{
475 if (cqe->syndrome == MLX4_CQE_SYNDROME_LOCAL_QP_OP_ERR) { 475 if (cqe->syndrome == MLX4_CQE_SYNDROME_LOCAL_QP_OP_ERR) {
476 printk(KERN_DEBUG "local QP operation err " 476 pr_debug("local QP operation err "
477 "(QPN %06x, WQE index %x, vendor syndrome %02x, " 477 "(QPN %06x, WQE index %x, vendor syndrome %02x, "
478 "opcode = %02x)\n", 478 "opcode = %02x)\n",
479 be32_to_cpu(cqe->my_qpn), be16_to_cpu(cqe->wqe_index), 479 be32_to_cpu(cqe->my_qpn), be16_to_cpu(cqe->wqe_index),
@@ -576,7 +576,7 @@ repoll:
576 576
577 if (unlikely((cqe->owner_sr_opcode & MLX4_CQE_OPCODE_MASK) == MLX4_OPCODE_NOP && 577 if (unlikely((cqe->owner_sr_opcode & MLX4_CQE_OPCODE_MASK) == MLX4_OPCODE_NOP &&
578 is_send)) { 578 is_send)) {
579 printk(KERN_WARNING "Completion for NOP opcode detected!\n"); 579 pr_warn("Completion for NOP opcode detected!\n");
580 return -EINVAL; 580 return -EINVAL;
581 } 581 }
582 582
@@ -606,7 +606,7 @@ repoll:
606 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev, 606 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev,
607 be32_to_cpu(cqe->vlan_my_qpn)); 607 be32_to_cpu(cqe->vlan_my_qpn));
608 if (unlikely(!mqp)) { 608 if (unlikely(!mqp)) {
609 printk(KERN_WARNING "CQ %06x with entry for unknown QPN %06x\n", 609 pr_warn("CQ %06x with entry for unknown QPN %06x\n",
610 cq->mcq.cqn, be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK); 610 cq->mcq.cqn, be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK);
611 return -EINVAL; 611 return -EINVAL;
612 } 612 }
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index b948b6dd5d55..a739d2738331 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -789,7 +789,7 @@ static int mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
789 list_del(&ge->list); 789 list_del(&ge->list);
790 kfree(ge); 790 kfree(ge);
791 } else 791 } else
792 printk(KERN_WARNING "could not find mgid entry\n"); 792 pr_warn("could not find mgid entry\n");
793 793
794 mutex_unlock(&mqp->mutex); 794 mutex_unlock(&mqp->mutex);
795 795
@@ -902,7 +902,7 @@ static void update_gids_task(struct work_struct *work)
902 902
903 mailbox = mlx4_alloc_cmd_mailbox(dev); 903 mailbox = mlx4_alloc_cmd_mailbox(dev);
904 if (IS_ERR(mailbox)) { 904 if (IS_ERR(mailbox)) {
905 printk(KERN_WARNING "update gid table failed %ld\n", PTR_ERR(mailbox)); 905 pr_warn("update gid table failed %ld\n", PTR_ERR(mailbox));
906 return; 906 return;
907 } 907 }
908 908
@@ -913,7 +913,7 @@ static void update_gids_task(struct work_struct *work)
913 1, MLX4_CMD_SET_PORT, MLX4_CMD_TIME_CLASS_B, 913 1, MLX4_CMD_SET_PORT, MLX4_CMD_TIME_CLASS_B,
914 MLX4_CMD_NATIVE); 914 MLX4_CMD_NATIVE);
915 if (err) 915 if (err)
916 printk(KERN_WARNING "set port command failed\n"); 916 pr_warn("set port command failed\n");
917 else { 917 else {
918 memcpy(gw->dev->iboe.gid_table[gw->port - 1], gw->gids, sizeof gw->gids); 918 memcpy(gw->dev->iboe.gid_table[gw->port - 1], gw->gids, sizeof gw->gids);
919 event.device = &gw->dev->ib_dev; 919 event.device = &gw->dev->ib_dev;
@@ -1084,10 +1084,10 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
1084 int err; 1084 int err;
1085 struct mlx4_ib_iboe *iboe; 1085 struct mlx4_ib_iboe *iboe;
1086 1086
1087 printk_once(KERN_INFO "%s", mlx4_ib_version); 1087 pr_info_once("%s", mlx4_ib_version);
1088 1088
1089 if (mlx4_is_mfunc(dev)) { 1089 if (mlx4_is_mfunc(dev)) {
1090 printk(KERN_WARNING "IB not yet supported in SRIOV\n"); 1090 pr_warn("IB not yet supported in SRIOV\n");
1091 return NULL; 1091 return NULL;
1092 } 1092 }
1093 1093
@@ -1253,7 +1253,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
1253 1253
1254err_notif: 1254err_notif:
1255 if (unregister_netdevice_notifier(&ibdev->iboe.nb)) 1255 if (unregister_netdevice_notifier(&ibdev->iboe.nb))
1256 printk(KERN_WARNING "failure unregistering notifier\n"); 1256 pr_warn("failure unregistering notifier\n");
1257 flush_workqueue(wq); 1257 flush_workqueue(wq);
1258 1258
1259err_reg: 1259err_reg:
@@ -1288,7 +1288,7 @@ static void mlx4_ib_remove(struct mlx4_dev *dev, void *ibdev_ptr)
1288 ib_unregister_device(&ibdev->ib_dev); 1288 ib_unregister_device(&ibdev->ib_dev);
1289 if (ibdev->iboe.nb.notifier_call) { 1289 if (ibdev->iboe.nb.notifier_call) {
1290 if (unregister_netdevice_notifier(&ibdev->iboe.nb)) 1290 if (unregister_netdevice_notifier(&ibdev->iboe.nb))
1291 printk(KERN_WARNING "failure unregistering notifier\n"); 1291 pr_warn("failure unregistering notifier\n");
1292 ibdev->iboe.nb.notifier_call = NULL; 1292 ibdev->iboe.nb.notifier_call = NULL;
1293 } 1293 }
1294 iounmap(ibdev->uar_map); 1294 iounmap(ibdev->uar_map);
diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c
index dca55b19a6f1..bbaf6176f207 100644
--- a/drivers/infiniband/hw/mlx4/mr.c
+++ b/drivers/infiniband/hw/mlx4/mr.c
@@ -338,7 +338,7 @@ int mlx4_ib_unmap_fmr(struct list_head *fmr_list)
338 338
339 err = mlx4_SYNC_TPT(mdev); 339 err = mlx4_SYNC_TPT(mdev);
340 if (err) 340 if (err)
341 printk(KERN_WARNING "mlx4_ib: SYNC_TPT error %d when " 341 pr_warn("SYNC_TPT error %d when "
342 "unmapping FMRs\n", err); 342 "unmapping FMRs\n", err);
343 343
344 return 0; 344 return 0;
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 /*
diff --git a/drivers/infiniband/hw/mlx4/srq.c b/drivers/infiniband/hw/mlx4/srq.c
index 39542f3703b8..60c5fb025fc7 100644
--- a/drivers/infiniband/hw/mlx4/srq.c
+++ b/drivers/infiniband/hw/mlx4/srq.c
@@ -59,7 +59,7 @@ static void mlx4_ib_srq_event(struct mlx4_srq *srq, enum mlx4_event type)
59 event.event = IB_EVENT_SRQ_ERR; 59 event.event = IB_EVENT_SRQ_ERR;
60 break; 60 break;
61 default: 61 default:
62 printk(KERN_WARNING "mlx4_ib: Unexpected event type %d " 62 pr_warn("Unexpected event type %d "
63 "on SRQ %06x\n", type, srq->srqn); 63 "on SRQ %06x\n", type, srq->srqn);
64 return; 64 return;
65 } 65 }