[openib-general] HP ZX1 and HP IB cards...

Roland Dreier roland at topspin.com
Fri Dec 3 10:59:12 PST 2004


    Grant> How can I tell which bits I'm currently testing?  I did the
    Grant> "svn up" about 2h ago.

That's new enough.  Here's a debugging patch that might help me figure
out what's going on; can you reproduce the problem with this applied?

Thanks,
  Roland

Index: infiniband/hw/mthca/mthca_eq.c
===================================================================
--- infiniband/hw/mthca/mthca_eq.c	(revision 1310)
+++ infiniband/hw/mthca/mthca_eq.c	(working copy)
@@ -151,6 +151,8 @@
 {
 	u32 doorbell[2];
 
+	printk(KERN_ERR "Set EQ CI %d/%d\n", eqn, ci);
+
 	doorbell[0] = cpu_to_be32(MTHCA_EQ_DB_SET_CI | eqn);
 	doorbell[1] = cpu_to_be32(ci);
 
@@ -270,6 +272,11 @@
 			break;
 
 		case MTHCA_EVENT_TYPE_CMD:
+		{
+			static int c;
+			++c;
+			printk(KERN_ERR "cmd completion %d\n", c);
+		}
 			mthca_cmd_event(dev,
 					be16_to_cpu(eqe->event.cmd.token),
 					eqe->event.cmd.status,






More information about the general mailing list