Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118870
b: refs/heads/master
c: 5880ff1
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and Roland Dreier committed Nov 3, 2008
1 parent d3fa9aa commit 55ea63c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f3abf5c7c9a9febdd643b9d4005382144525475
refs/heads/master: 5880ff19fa29466cb9d7e293710e6aebecfecdd1
1 change: 0 additions & 1 deletion trunk/drivers/infiniband/hw/mlx4/mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ struct ib_mr *mlx4_ib_alloc_fast_reg_mr(struct ib_pd *pd,
goto err_mr;

mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
mr->umem = NULL;

return &mr->ibmr;

Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/infiniband/hw/nes/nes_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ static int nes_bind_mw(struct ib_qp *ibqp, struct ib_mw *ibmw,
if (nesqp->ibqp_state > IB_QPS_RTS)
return -EINVAL;

spin_lock_irqsave(&nesqp->lock, flags);
spin_lock_irqsave(&nesqp->lock, flags);

head = nesqp->hwqp.sq_head;
qsize = nesqp->hwqp.sq_tail;

/* Check for SQ overflow */
if (((head + (2 * qsize) - nesqp->hwqp.sq_tail) % qsize) == (qsize - 1)) {
spin_unlock_irqrestore(&nesqp->lock, flags);
spin_unlock_irqrestore(&nesqp->lock, flags);
return -EINVAL;
}

Expand Down Expand Up @@ -269,7 +269,7 @@ static int nes_bind_mw(struct ib_qp *ibqp, struct ib_mw *ibmw,
nes_write32(nesdev->regs+NES_WQE_ALLOC,
(1 << 24) | 0x00800000 | nesqp->hwqp.qp_id);

spin_unlock_irqrestore(&nesqp->lock, flags);
spin_unlock_irqrestore(&nesqp->lock, flags);

return 0;
}
Expand Down Expand Up @@ -3212,7 +3212,7 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
if (nesqp->ibqp_state > IB_QPS_RTS)
return -EINVAL;

spin_lock_irqsave(&nesqp->lock, flags);
spin_lock_irqsave(&nesqp->lock, flags);

head = nesqp->hwqp.sq_head;

Expand Down Expand Up @@ -3337,7 +3337,7 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
(counter << 24) | 0x00800000 | nesqp->hwqp.qp_id);
}

spin_unlock_irqrestore(&nesqp->lock, flags);
spin_unlock_irqrestore(&nesqp->lock, flags);

if (err)
*bad_wr = ib_wr;
Expand Down Expand Up @@ -3368,7 +3368,7 @@ static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
if (nesqp->ibqp_state > IB_QPS_RTS)
return -EINVAL;

spin_lock_irqsave(&nesqp->lock, flags);
spin_lock_irqsave(&nesqp->lock, flags);

head = nesqp->hwqp.rq_head;

Expand Down Expand Up @@ -3421,7 +3421,7 @@ static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
nes_write32(nesdev->regs+NES_WQE_ALLOC, (counter<<24) | nesqp->hwqp.qp_id);
}

spin_unlock_irqrestore(&nesqp->lock, flags);
spin_unlock_irqrestore(&nesqp->lock, flags);

if (err)
*bad_wr = ib_wr;
Expand Down Expand Up @@ -3453,7 +3453,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)

nes_debug(NES_DBG_CQ, "\n");

spin_lock_irqsave(&nescq->lock, flags);
spin_lock_irqsave(&nescq->lock, flags);

head = nescq->hw_cq.cq_head;
cq_size = nescq->hw_cq.cq_size;
Expand Down Expand Up @@ -3562,7 +3562,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
nes_debug(NES_DBG_CQ, "Reporting %u completions for CQ%u.\n",
cqe_count, nescq->hw_cq.cq_number);

spin_unlock_irqrestore(&nescq->lock, flags);
spin_unlock_irqrestore(&nescq->lock, flags);

return cqe_count;
}
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/net/mlx4/mlx4.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,19 @@ enum {

#ifdef CONFIG_MLX4_DEBUG
extern int mlx4_debug_level;
#else /* CONFIG_MLX4_DEBUG */
#define mlx4_debug_level (0)
#endif /* CONFIG_MLX4_DEBUG */

#define mlx4_dbg(mdev, format, arg...) \
do { \
if (mlx4_debug_level) \
dev_printk(KERN_DEBUG, &mdev->pdev->dev, format, ## arg); \
} while (0)

#else /* CONFIG_MLX4_DEBUG */

#define mlx4_dbg(mdev, format, arg...) do { (void) mdev; } while (0)

#endif /* CONFIG_MLX4_DEBUG */

#define mlx4_err(mdev, format, arg...) \
dev_err(&mdev->pdev->dev, format, ## arg)
#define mlx4_info(mdev, format, arg...) \
Expand Down

0 comments on commit 55ea63c

Please sign in to comment.