[Openib-windows] Re: [openib-general] Re: IB Diagnositic Tools

Bernhard Fischer rep.nop at aon.at
Mon Jul 4 13:44:10 PDT 2005


On Tue, Jun 28, 2005 at 09:22:00AM -0400, Hal Rosenstock wrote:
>On Mon, 2005-06-27 at 17:30, Hal Rosenstock wrote: 
>> On Mon, 2005-06-27 at 17:13, Bernhard Fischer wrote:
>> > Hal,
>> > 
>> > This is kinda offtopic, 
>> 
>> Yes, this is different topic(s).
>> 
>> > but (iirc) i once stumbled over the issue of
>> > "port" vs. "mgmt port" [back then i had access to two 2-port cards]
>> > where you may have said something along the lines of
>> > \"There is clearly a bug for multi HCAs in osm_vendor_get_all_port_attr
>> > which is in the vendor layer. This needs to be fixed and is our problem.
>> > So I am close to being able to commit what I now have for this and fix
>> > this later (as there are other multi HCA issues).\"
>> > Just curious.. did somebody already have a chance to touch those or not?
>> 
>> I don't think it has been fixed :-( I will need to refresh myself on
>> this again.
>
>Just tried the diags and OpenSM on a multi HCA machine and they appear
>to run fine. I will need to dig out from my notes as that comment came
>from back on 2/16.

Please note that that specific occurance was *not* triggered in a strict
\"multi HCA\" setup but with two-port HCA(s e.g. opensm'd) back-to_back.

Back then, i saw (can't reproduce it now since i do not have access to
an appropriate setup; can't reproduce since even if i would have access
to such a setup i most likely wouldn't have root access) a listing akin
to :
phy-port 1
phy-port 1
phy-port 2
e-o-f

Please mail me the output of
opensm -g
[with opensm as primary SM -- but i guess it does literally everywhere,
be it hosts or switches] with the attached patch.

PS: Hal, if the moved question is true, please point me to a document
and section where this is defined. I may be a pita, but i'd like to
know that answer. TIA and .....

..sorry for the noise
-- 
Bernhard
-------------- next part --------------
diff -X excl -rduNp gen2.2780.osm-local-port.oorig/trunk/src/userspace/management/osm/opensm/main.c gen2.2780.osm-local-port/trunk/src/userspace/management/osm/opensm/main.c
--- gen2.2780.osm-local-port.oorig/trunk/src/userspace/management/osm/opensm/main.c	2005-04-26 20:58:16.000000000 +0200
+++ gen2.2780.osm-local-port/trunk/src/userspace/management/osm/opensm/main.c	2005-07-04 22:27:47.000000000 +0200
@@ -252,7 +252,8 @@ print_all_guids(
   }
 
   printf("\nListing GUIDs:\n");
-  for (i = 1; i < num_ports; i++) { /* excluding logical mgmt port */
+/* "local ports" is(?) phys, shouldn't this exclude port 0 then ? */
+  for (i = 0; i < num_ports; i++) { /* excluding logical mgmt port */
     printf("Port %i: 0x%"PRIx64"\n", i, cl_hton64(attr_array[i].port_guid));
   }
 }
@@ -272,7 +273,7 @@ get_port_guid(
 		Call the transport layer for a list of local port
 		GUID values.
 	*/
-/* "local ports" is(?) phys, shouldn't this exclude port 0 then ? */
+
 	status = osm_vendor_get_all_port_attr(p_osm->p_vendor, attr_array, &num_ports );
 	if ( status != IB_SUCCESS )
 	{


More information about the general mailing list