changeset 4908:8859c7dc9328

6584668 Need visibility of InfiniBand "connection established"
author hiremath
date Mon, 20 Aug 2007 14:50:08 -0700
parents a4c8fe4ba841
children cd6a6ae37732
files usr/src/uts/common/io/ib/ibtl/ibtl_qp.c usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
diffstat 3 files changed, 22 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/ib/ibtl/ibtl_qp.c	Mon Aug 20 13:43:28 2007 -0700
+++ b/usr/src/uts/common/io/ib/ibtl/ibtl_qp.c	Mon Aug 20 14:50:08 2007 -0700
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -185,7 +185,7 @@
 	hca_hdl->ha_qp_cnt++;
 	mutex_exit(&hca_hdl->ha_mutex);
 
-	IBTF_DPRINTF_L3(ibtf_qp, "ibt_alloc_qp: SUCCESS: qp %p owned by '%s'",
+	IBTF_DPRINTF_L2(ibtf_qp, "ibt_alloc_qp: SUCCESS: qp %p owned by '%s'",
 	    chanp, hca_hdl->ha_clnt_devp->clnt_name);
 
 	*ibt_qp_p = chanp;
--- a/usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c	Mon Aug 20 13:43:28 2007 -0700
+++ b/usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c	Mon Aug 20 14:50:08 2007 -0700
@@ -2000,7 +2000,8 @@
 		if (retval != IBT_SUCCESS) {
 			/* Failed to get pkey_index from pkey */
 			IBTF_DPRINTF_L2(cmlog, "ibcm_update_cep_info: "
-			    "Pkey2Index conversion failed: %d", retval);
+			    "Pkey2Index (PKey = %X) conversion failed: %d",
+			    prec_resp->P_Key, retval);
 			return (ibt_get_module_failure(IBT_FAILURE_IBSM, 0));
 		}
 		cep_p->cep_adds_vect.av_sgid_ix = hport->hp_sgid_ix;
@@ -2019,7 +2020,8 @@
 					/* Failed to get pkey_index from pkey */
 					IBTF_DPRINTF_L2(cmlog,
 					    "ibcm_update_cep_info: Pkey2Index "
-					    "conversion failed: %d", retval);
+					    "(PKey = %X) conversion failed: %d",
+					    prec_resp->P_Key, retval);
 					return (ibt_get_module_failure(
 					    IBT_FAILURE_IBSM, 0));
 				}
@@ -2073,9 +2075,9 @@
 	/* CEP Timeout is NOT filled in by PATH routines. */
 	cep_p->cep_timeout = 0;
 
-	IBTF_DPRINTF_L3(cmlog, "ibcm_update_cep_info: Done.  Port[%d]\n"
-	    "SGID=%llX:%llX DGID=%llX:%llX",
-	    cep_p->cep_adds_vect.av_port_num,
+	IBTF_DPRINTF_L2(cmlog, "ibcm_update_cep_info: Done. Port=%d, PKey=%X\n"
+	    "SGID=%llX:%llX DGID=%llX:%llX", cep_p->cep_adds_vect.av_port_num,
+	    prec_resp->P_Key,
 	    prec_resp->SGID.gid_prefix, prec_resp->SGID.gid_guid,
 	    prec_resp->DGID.gid_prefix, prec_resp->DGID.gid_guid);
 
--- a/usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c	Mon Aug 20 13:43:28 2007 -0700
+++ b/usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c	Mon Aug 20 14:50:08 2007 -0700
@@ -2205,7 +2205,7 @@
 		return;
 	}
 
-	IBTF_DPRINTF_L2(cmlog, "ibcm_process_rej_msg: statep 0x%p",
+	IBTF_DPRINTF_L2(cmlog, "ibcm_process_rej_msg: statep 0x%p INCOMING_REJ",
 	    statep);
 	ibcm_insert_trace(statep, IBCM_TRACE_INCOMING_REJ);
 	if (ibcm_enable_trace & 2)
@@ -2916,6 +2916,9 @@
 		ibcm_insert_trace(statep, IBCM_TRACE_OUTGOING_REJ);
 		if (ibcm_enable_trace & 2)
 			ibcm_dump_conn_trace(statep);
+		else
+			IBTF_DPRINTF_L2(cmlog, "ibcm_resend_rej_mad statep %p "
+			    "OUTGOING_REJ", statep);
 
 		ibcm_post_rc_mad(statep, statep->stored_msg,
 		    ibcm_post_rej_complete, statep);
@@ -3051,6 +3054,9 @@
 	ibcm_insert_trace(statep, IBCM_TRACE_OUTGOING_REJ);
 	if (ibcm_enable_trace & 2)
 		ibcm_dump_conn_trace(statep);
+	else
+		IBTF_DPRINTF_L2(cmlog, "ibcm_post_rej_mad statep %p "
+		    "OUTGOING_REJ", statep);
 
 	ibcm_post_rc_mad(statep, statep->stored_msg, ibcm_post_rej_complete,
 	    statep);
@@ -7020,6 +7026,9 @@
 	ibcm_insert_trace(statep, IBCM_TRACE_RET_CONN_EST_EVENT);
 	if (ibcm_enable_trace & 4)
 		ibcm_dump_conn_trace(statep);
+	else
+		IBTF_DPRINTF_L2(cmlog, "ibcm_cep_state_rtu CONN_EST Channel %p",
+		    statep->channel);
 
 	/* unblock any pending DREQ threads */
 	mutex_enter(&statep->state_mutex);
@@ -7065,6 +7074,9 @@
 	}
 	if (ibcm_enable_trace & 4)
 		ibcm_dump_conn_trace(statep);
+	else
+		IBTF_DPRINTF_L2(cmlog, "ibcm_cep_send_rtu CONN_EST Channel %p",
+		    statep->channel);
 
 	/* unblock any pending DREQ threads */
 	mutex_enter(&statep->state_mutex);