[openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-11 Thread Ralph Campbell
I tested this and it works for me. On Tue, 2006-01-10 at 17:51, Hal Rosenstock wrote: Hi Ralph, On Tue, 2006-01-10 at 17:47, Ralph Campbell wrote: I understand. Maybe it should be the first active, if none, then the first UP, and if none, the first !disabled. Exactly. I think

Re: [openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-11 Thread Hal Rosenstock
On Wed, 2006-01-11 at 13:33, Ralph Campbell wrote: I tested this and it works for me. Thanks. Applied. -- Hal ___ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit

[openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-10 Thread Ralph Campbell
If opensm is started with no arguments, the default algorithm for finding a port to bind to will skip ports which are present but the link is DOWN. If there is only one port in the system, no port is selected and opensm tries the default HCA name mthca0 which, if not present, confuses opensm and

Re: [openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-10 Thread Hal Rosenstock
Hi Ralph, On Tue, 2006-01-10 at 13:31, Ralph Campbell wrote: If opensm is started with no arguments, the default algorithm for finding a port to bind to will skip ports which are present but the link is DOWN. If there is only one port in the system, no port is selected and opensm tries the

Re: [openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-10 Thread Ralph Campbell
I understand. Maybe it should be the first active, if none, then the first UP, and if none, the first !disabled. Mostly I was trying to get something that picked ipath0 port 1 when it was the only port in the system even if the link is down. On Tue, 2006-01-10 at 17:12 -0500, Hal Rosenstock

Re: [openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-10 Thread Hal Rosenstock
Hi Ralph, On Tue, 2006-01-10 at 17:47, Ralph Campbell wrote: I understand. Maybe it should be the first active, if none, then the first UP, and if none, the first !disabled. Exactly. I think one more loop (first checking physical state for linkup and then checking for not disabled) will take

Re: [openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-10 Thread Hal Rosenstock
On Tue, 2006-01-10 at 13:31, Ralph Campbell wrote: If opensm is started with no arguments, the default algorithm for finding a port to bind to will skip ports which are present but the link is DOWN. If there is only one port in the system, no port is selected and opensm tries the default HCA

Re: [openib-general] [PATCH] opensm fails to find HCA if port is down.

2006-01-10 Thread Hal Rosenstock
On Tue, 2006-01-10 at 17:51, Hal Rosenstock wrote: Hi Ralph, On Tue, 2006-01-10 at 17:47, Ralph Campbell wrote: I understand. Maybe it should be the first active, if none, then the first UP, and if none, the first !disabled. Exactly. I think one more loop (first checking physical state