* [patch 174/198] IB/mthca: fix format of CQ number for CQ events
@ 2005-04-12 10:33 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2005-04-12 10:33 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, akpm, roland
From: Roland Dreier <roland@topspin.com>
CQ numbers are only 24 bits, so only print 6 hex digits and mask off reserved
part when reporting a CQ event.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---
25-akpm/drivers/infiniband/hw/mthca/mthca_eq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/infiniband/hw/mthca/mthca_eq.c~ib-mthca-fix-format-of-cq-number-for-cq-events drivers/infiniband/hw/mthca/mthca_eq.c
--- 25/drivers/infiniband/hw/mthca/mthca_eq.c~ib-mthca-fix-format-of-cq-number-for-cq-events 2005-04-12 03:21:44.893312080 -0700
+++ 25-akpm/drivers/infiniband/hw/mthca/mthca_eq.c 2005-04-12 03:21:44.896311624 -0700
@@ -344,10 +344,10 @@ static int mthca_eq_int(struct mthca_dev
break;
case MTHCA_EVENT_TYPE_CQ_ERROR:
- mthca_warn(dev, "CQ %s on CQN %08x\n",
+ mthca_warn(dev, "CQ %s on CQN %06x\n",
eqe->event.cq_err.syndrome == 1 ?
"overrun" : "access violation",
- be32_to_cpu(eqe->event.cq_err.cqn));
+ be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff);
break;
case MTHCA_EVENT_TYPE_EQ_OVERFLOW:
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-12 18:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-12 10:33 [patch 174/198] IB/mthca: fix format of CQ number for CQ events akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®