[ofw] RE: Fix for mthca bug on mad layer

Smith, Stan stan.smith at intel.com
Tue Sep 9 08:57:00 PDT 2008


________________________________
From: Tzachi Dar [mailto:tzachid at mellanox.co.il]
Sent: Tuesday, September 09, 2008 5:47 AM
To: Reuven Amitai; Leonid Keller; Smith, Stan
Cc: ofw at lists.openfabrics.org
Subject: RE: Fix for mthca bug on mad layer

Applied to both trunk and branch on 1574/5.

Stan, you can create the new build.

OK, will do so.

At this point in time, should the trunk and branches\WOF2-0 match?
If not, I would think the trunk version would be the correct version - yes?

thanks.

Thanks
Tzachi

________________________________
From: Reuven Amitai
Sent: Monday, September 08, 2008 7:26 PM
To: Leonid Keller; Tzachi Dar
Cc: ofw at lists.openfabrics.org
Subject:

Hi,

The patch disable av port checking (part of check-in 1538).
The problem of checking av port happen with mthca card (ConnectX cards are OK).
OpenSM (runs on one machine) sends MAD request to another at the beginning.
During request processing an av is created with mad svc port num. This field is taken from qp_attr.primary_port
after query on the qp, but mthca set primary_port attr to be zero (among other fields in qp_attr).
That will cause the av creation to fail and in consequence opensm fails to recognize the remote machine.

Thanks, Reuven.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Index: core/al/al_av.c
===================================================================
--- core/al/al_av.c (revision 1545)
+++ core/al/al_av.c (working copy)
@@ -153,12 +153,17 @@
   return IB_INVALID_PD_HANDLE;
  }

+ /*
+ This check is disabled due to mthca problem. When registering mad svc, port num is zero
+ because ibv_query_qp retrun '0' as primary port.
+
  status = __check_av_port(h_pd->obj.p_ci_ca, p_av_attr);
  if( status != IB_SUCCESS )
  {
   AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR, ("IB_INVALID_PORT\n") );
   return status;
  }
+ */

  /* Get an AV tracking structure. */
  h_av = alloc_av();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080909/f8798238/attachment.html>


More information about the ofw mailing list