tree 7e5caee73509af83e61524c5c418a5f25e705fb9
parent 2714eb5a4fb2b461b452fb8a2f65c8caacdd12d5
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:21 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:21 -0700

[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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 infiniband/hw/mthca/mthca_main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

Index: drivers/infiniband/hw/mthca/mthca_main.c
===================================================================
--- 
6c40a85c5cb34e4a4f77b5b7274ca56987d9ab70/drivers/infiniband/hw/mthca/mthca_main.c
  (mode:100644 sha1:8bd2e3af016dd6328e2938bda0bd37a65bdd2830)
+++ 
7e5caee73509af83e61524c5c418a5f25e705fb9/drivers/infiniband/hw/mthca/mthca_main.c
  (mode:100644 sha1:144aed417faacf94d60ebff34067e71553c86bb4)
@@ -672,7 +672,10 @@
 
        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
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to