diff options
author | Roland Dreier <roland@topspin.com> | 2005-04-17 02:26:21 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-17 02:26:21 +0400 |
commit | 4ad81174edfc22528b845a27620db7542c1ce9a6 (patch) | |
tree | 7e5caee73509af83e61524c5c418a5f25e705fb9 /drivers/infiniband/hw/mthca/mthca_main.c | |
parent | 2714eb5a4fb2b461b452fb8a2f65c8caacdd12d5 (diff) | |
download | linux-4ad81174edfc22528b845a27620db7542c1ce9a6.tar.xz |
[PATCH] IB/mthca: print assigned IRQ when interrupt test fails
Print IRQ number when NOP command interrupt test fails to help debugging.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_main.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c index 8bd2e3af016d..144aed417faa 100644 --- a/drivers/infiniband/hw/mthca/mthca_main.c +++ b/drivers/infiniband/hw/mthca/mthca_main.c @@ -672,7 +672,10 @@ static int __devinit mthca_setup_hca(struct mthca_dev *dev) err = mthca_NOP(dev, &status); if (err || status) { - mthca_err(dev, "NOP command failed to generate interrupt, aborting.\n"); + mthca_err(dev, "NOP command failed to generate interrupt (IRQ %d), aborting.\n", + dev->mthca_flags & MTHCA_FLAG_MSI_X ? + dev->eq_table.eq[MTHCA_EQ_CMD].msi_x_vector : + dev->pdev->irq); if (dev->mthca_flags & (MTHCA_FLAG_MSI | MTHCA_FLAG_MSI_X)) mthca_err(dev, "Try again with MSI/MSI-X disabled.\n"); else |