Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109013
b: refs/heads/master
c: 45dd75d
h: refs/heads/master
i:
  109011: ad36b79
v: v3
  • Loading branch information
Roland Dreier committed Aug 19, 2008
1 parent ae6c27d commit be6916a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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: a77a57a1a22afc31891d95879fe3cf2ab03838b0
refs/heads/master: 45dd75d83cef8c4e4a8d78bc8ed072a01196d30c
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_iba7220.c
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ static void ipath_7220_put_tid(struct ipath_devdata *dd, u64 __iomem *tidptr,
"not 2KB aligned!\n", pa);
return;
}
if (pa >= (1UL << IBA7220_TID_SZ_SHIFT)) {
if (chippa >= (1UL << IBA7220_TID_SZ_SHIFT)) {
ipath_dev_err(dd,
"BUG: Physical page address 0x%lx "
"larger than supported\n", pa);
Expand Down
8 changes: 6 additions & 2 deletions trunk/drivers/infiniband/hw/ipath/ipath_ud.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ int ipath_make_ud_req(struct ipath_qp *qp)
u16 lrh0;
u16 lid;
int ret = 0;
int next_cur;

spin_lock_irqsave(&qp->s_lock, flags);

Expand All @@ -290,8 +291,9 @@ int ipath_make_ud_req(struct ipath_qp *qp)
goto bail;

wqe = get_swqe_ptr(qp, qp->s_cur);
if (++qp->s_cur >= qp->s_size)
qp->s_cur = 0;
next_cur = qp->s_cur + 1;
if (next_cur >= qp->s_size)
next_cur = 0;

/* Construct the header. */
ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr;
Expand All @@ -315,6 +317,7 @@ int ipath_make_ud_req(struct ipath_qp *qp)
qp->s_flags |= IPATH_S_WAIT_DMA;
goto bail;
}
qp->s_cur = next_cur;
spin_unlock_irqrestore(&qp->s_lock, flags);
ipath_ud_loopback(qp, wqe);
spin_lock_irqsave(&qp->s_lock, flags);
Expand All @@ -323,6 +326,7 @@ int ipath_make_ud_req(struct ipath_qp *qp)
}
}

qp->s_cur = next_cur;
extra_bytes = -wqe->length & 3;
nwords = (wqe->length + extra_bytes) >> 2;

Expand Down

0 comments on commit be6916a

Please sign in to comment.