Re: [PATCH v3] opensm: support routing engine update

2009-12-06 Thread Yevgeny Kliteynik
Slava, Slava Strebkov wrote: setup routing engine when in use and delete when failed. setup routing engine before use. delete resources when routing algorithm fails. this will save allocation for routing algorithms that are not used. Suppose a user runs SM with ftree & updn routings (in that o

[PATCH 2/2 v3] opensm SA DB dump/restore: added option to dump SA DB on every sweep

2009-12-06 Thread Yevgeny Kliteynik
Added option 'sa_db_dump' to dump SA DB at every sweep (both heavy and light). The option is not exposed through OSM command line, but only through options file. Signed-off-by: Yevgeny Kliteynik --- Changes since V2: - no changes, just rebased Signed-off-by: Yevgeny Kliteynik --- opensm/inc

[PATCH 1/2 v3] opensm SA DB dump/restore: load SA DB only once

2009-12-06 Thread Yevgeny Kliteynik
Load SA DB only once, at first master heavy sweep. If loading succeeded, do whatever 'no_clients_rereg' option says. If loading failed at some point, turn off the 'no_clients_rereg' option (turn on re-registartion requests). Signed-off-by: Yevgeny Kliteynik --- Changes since V2: - No 'sa_db_lo

[PATCH 0/2 v3] opensm SA DB dump/restore: SA DB persistence

2009-12-06 Thread Yevgeny Kliteynik
Hi Sasha, OSM can dump SA DB, but it is done every heavy sweep, and only when running with high verbosity, which cannot be used in production. OSM can also load SA DB from file, but then it also stays in this static SA configuration. The following patch series improves SA DB persistence: 1/2: Ad

Re: [PATCH 3/3 v2] opensm SA DB dump/restore: dump SA DB only if modified

2009-12-06 Thread Yevgeny Kliteynik
Hi Sasha, Sasha Khapyorsky wrote: On 13:01 Wed 04 Nov , Yevgeny Kliteynik wrote: Optimizing SA DB dump - added "dirty" flag to denote that the SA DB was modified, so that the DB will be dumped only when the flag is on. [v2 - no changes, just rebased and resolved conflicts] Signed-off-by:

Re: [ofa-general] [Bug 14235] New: SRP initiator lockup

2009-12-06 Thread Bart Van Assche
On Sat, Dec 5, 2009 at 10:49 PM, Roland Dreier wrote: > >  > I'm not sure that the non-error path for ordinary SCSI commands is >  > that trivial. If my interpretation of the SRP initiator source code is >  > correct, the statements complete(&target->done) and >  > init_completion(&target->done) c

Re: [PATCH 1/3 v2] opensm SA DB dump/restore: added option to load SA DB once

2009-12-06 Thread Yevgeny Kliteynik
Hi Sasha, Sasha Khapyorsky wrote: Hi Yevgeny, On 13:00 Wed 04 Nov , Yevgeny Kliteynik wrote: Added option to load SA DB once: 'sa_db_load_once'. This will cause OSM to load SA DB once during first master heavy sweep, and then OSM will move to the usual SA mode. It is probably should be d

[PATCH 3/5] drivers/infiniband: correct size computation

2009-12-06 Thread Julia Lawall
From: Julia Lawall The size argument to ioremap_nocache should be the size of desired information, not the pointer to it. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @expression@ expression *x; @@ x = <+... -sizeof(x) +sizeof(*x) ...+>// Signed-

[PATCH] opensm: implement 'connect_roots' option in fat-tree routing

2009-12-06 Thread Yevgeny Kliteynik
Implement 'connect_roots' option in fat-tree routing and mention this fact in all the help/usage/man messages. Signed-off-by: Yevgeny Kliteynik --- opensm/include/opensm/osm_subnet.h |4 +- opensm/man/opensm.8.in |4 +- opensm/opensm/main.c |4 +- opensm/ope

Re: [PATCH 3/3 v2] opensm: connect switches in tree - implemented in up/down

2009-12-06 Thread Yevgeny Kliteynik
Yevgeny Kliteynik wrote: Hi Sasha, Sasha Khapyorsky wrote: On 13:09 Wed 04 Nov , Yevgeny Kliteynik wrote: This patch implements connect_switches option in up/down routing. Also, connect_roots is now handled as a special case of connect_switches. The idea is the following: when clearing ho

Re: [PATCH 2/3 v2] opensm: connect switches in tree - implemented in fat-tree

2009-12-06 Thread Yevgeny Kliteynik
Sasha Khapyorsky wrote: On 13:09 Wed 04 Nov , Yevgeny Kliteynik wrote: This patch implements connect_roots and connect_switches option in fat-tree. Actually, both options mapped to the same implementation. The idea is the following: pick some leaf switch in the fabric. Now go over all the s

Re: [PATCH 3/3 v2] opensm: connect switches in tree - implemented in up/down

2009-12-06 Thread Yevgeny Kliteynik
Hi Sasha, Sasha Khapyorsky wrote: On 13:09 Wed 04 Nov , Yevgeny Kliteynik wrote: This patch implements connect_switches option in up/down routing. Also, connect_roots is now handled as a special case of connect_switches. The idea is the following: when clearing hops, preserve the entries f