[PATCH] IB/mthca: print assigned IRQ when interrupt test fails
authorRoland Dreier <roland@topspin.com>
Sat, 16 Apr 2005 22:26:21 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:26:21 +0000 (15:26 -0700)
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>
drivers/infiniband/hw/mthca/mthca_main.c

index 8bd2e3af016dd6328e2938bda0bd37a65bdd2830..144aed417faacf94d60ebff34067e71553c86bb4 100644 (file)
@@ -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