[ofa-general] Re: [PATCH] libibmad: initialize sm portid in ib_resolve_smlid()

akepner at sgi.com akepner at sgi.com
Fri Dec 21 08:42:10 PST 2007


On Fri, Dec 21, 2007 at 04:30:37PM +0000, Sasha Khapyorsky wrote:
> 
> Initialize sm portid in ib_resolve_smlid() - likely it fixes crash when
> in debug mode uninitialized direct path array printed.
> 
> Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>

Tested by: Arthur Kepner <akepner at sgi.com>

Sasha - seems to fix things up when using the debug flags, 
furthermore, it seems to make the original problem (the 
failure of "smpquery -G ...") go away:

Before, I'd get:

# ./smpquery_1.3_rc1 -G nodeinfo  0x00066a01a000737c
ibwarn: [7459] _do_madrpc: recv failed: Connection timed out
ibwarn: [7459] ib_path_query: sa call path_query failed
smpquery_1.3_rc1: iberror: failed: can't resolve destination port 0x00066a01a000737c

But if I link against the patched library, I get:
# ./smpquery_1.3_rc1 -G nodeinfo  0x00066a01a000737c
# Node info: Lid 3
BaseVers:........................1
ClassVers:.......................1
NodeType:........................Channel Adapter
NumPorts:........................2
SystemGuid:......................0x00066a009800737c
Guid:............................0x00066a009800737c
PortGuid:........................0x00066a01a000737c
PartCap:.........................64
DevId:...........................0x6278
Revision:........................0x000000a0
LocalPort:.......................2
VendorId:........................0x00066a

Thanks!

-- 
Arthur




More information about the general mailing list