RE: [ofa-general] What are the valid values for SM LID ?
Hal, Thanks a lot for the information. Regards, Ram -Original Message- From: Hal Rosenstock [mailto:[EMAIL PROTECTED] Sent: Fri 7/13/2007 8:30 PM To: Kuchimanchi, Ramachandra Cc: [email protected] Subject: RE: [ofa-general] What are the valid values for SM LID ? Ram, On Fri, 2007-07-13 at 10:58, Kuchimanchi, Ramachandra wrote: > Hal, > > > Where ? In ibsrpdm ? > > Yes or in general any one who is reading the SM LID value. > > Put another way, how do you know when the SM LID value in > /sys/infiniband/.../sm_lid is the correct value ? Is it > better to check that the value is neither 0x0 nor 0x ? > > Or do you go by the state of the port (armed or beyond as you > mentioned) > and then read the sm_lid value ? I think there are multiple algorithms that work: 1. If port state > armed (e.g. armed or active), SMLID is required to be valid 2. If (SMLID != 0x) && (SMLID != 0x0), SMLID is valid Maybe other algorithms too. (Same for LID too) -- Hal > Regards, > Ram > > > > ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
RE: [ofa-general] What are the valid values for SM LID ?
Ram, On Fri, 2007-07-13 at 10:58, Kuchimanchi, Ramachandra wrote: > Hal, > > > Where ? In ibsrpdm ? > > Yes or in general any one who is reading the SM LID value. > > Put another way, how do you know when the SM LID value in > /sys/infiniband/.../sm_lid is the correct value ? Is it > better to check that the value is neither 0x0 nor 0x ? > > Or do you go by the state of the port (armed or beyond as you > mentioned) > and then read the sm_lid value ? I think there are multiple algorithms that work: 1. If port state > armed (e.g. armed or active), SMLID is required to be valid 2. If (SMLID != 0x) && (SMLID != 0x0), SMLID is valid Maybe other algorithms too. (Same for LID too) -- Hal > Regards, > Ram > > > > ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
RE: [ofa-general] What are the valid values for SM LID ?
Hal, > Where ? In ibsrpdm ? Yes or in general any one who is reading the SM LID value. Put another way, how do you know when the SM LID value in /sys/infiniband/.../sm_lid is the correct value ? Is it better to check that the value is neither 0x0 nor 0x ? Or do you go by the state of the port (armed or beyond as you mentioned) and then read the sm_lid value ? Regards, Ram ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
RE: [ofa-general] What are the valid values for SM LID ?
Ram, On Fri, 2007-07-13 at 10:22, Kuchimanchi, Ramachandra wrote: > Hal, > > > Those local values indicate the SM has not yet initialized the SMLID > on > > those ports. Is your SM running ? Are those ports active when you > run > > ibsrpdm ? > > Yes the SM is running. I guess I am running ibsrpdm even before the > port > is active and thats why it is getting an invalid SM LID value. If I > run > it a little later, ibsrpdm works fine. > > So I guess there should be a check to see that the port state is > active before > reading the SM LID value. Where ? In ibsrpdm ? I think the IB spec requirement is that the SMLID needs to be there at armed (so I think if there is a check it should be armed or beyond). Some SMs may do it sooner (like INIT) but that is not a requirement. -- Hal > Regards, > Ram > ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
RE: [ofa-general] What are the valid values for SM LID ?
Hal, > Those local values indicate the SM has not yet initialized the SMLID on > those ports. Is your SM running ? Are those ports active when you run > ibsrpdm ? Yes the SM is running. I guess I am running ibsrpdm even before the port is active and thats why it is getting an invalid SM LID value. If I run it a little later, ibsrpdm works fine. So I guess there should be a check to see that the port state is active before reading the SM LID value. Regards, Ram ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
Re: [ofa-general] What are the valid values for SM LID ?
Ram, On Fri, 2007-07-13 at 06:41, Kuchimanchi, Ramachandra wrote: > Hi, > > If the sm_lid value from /sys/class/infiniband/mthca0/ports/1/sm_lid > is 0x0 (or /sys/class/infiniband/ipath0/ports/1/sm_lid is 0x) > should > it be considered as an invalid value for an SM LID and should one wait > till it changes to some other value before using that SM LID value in > MADs ? > The IB spec says that LID 0x0 is reserved and 0x is a permissive > DLID > value. Does this mean that the SM can never have either 0x0 or 0x > as > an LID ? > > Sometimes I have noticed this issue with ibsrpdm when the sm_lid value > is > set after some delay. If I run ibsrpdm immediately after doing a > "service openibd start", ibsrpdm does not give any output. This > is because, when ibsrpdm reads the sm_lid value it gets the value to > be 0x0 on > mthca (0x on ipath) and when it uses it in the MADs, the MADs > timeout. Those local values indicate the SM has not yet initialized the SMLID on those ports. Is your SM running ? Are those ports active when you run ibsrpdm ? -- Hal > Regards, > Ram > > > > __ > > ___ > general mailing list > [email protected] > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general > > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
