Re: partitions / ib_read_bw

2013-06-21 Thread Jason Gunthorpe
On Fri, Jun 21, 2013 at 09:48:31PM +, Coulter, Susan K wrote: > The server shows it is populating ibv_qp_attr with the pkey(s) of any full > partition it is a member of, > but the client does not get that same pkey in ibv_wc. See the man page for ibv_poll_cq: uint16_t

partitions / ib_read_bw

2013-06-21 Thread Coulter, Susan K
One of my test clusters is running with multiple partitions. The partitions look correct (using "smpquery pkey") and the path records look correct (using "saquery pr"). I'd like a simple user-level test to validate who is allowed to talk to who; and hoped to use ib_read_bw. Alas, ib_read_bw doe

RE: [PATCH V2] libibverbs: Allow arbitrary int values for MTU.

2013-06-21 Thread Hefty, Sean
> > I'm ready for a new project. I already had one in mind, > > but it required some changes to libibverbs that are pretty deep changes. > > Instead of doing that deep work in libibverbs, I can start here and > > move on to my next project when this is up and running. > > That would be amazing

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU.

2013-06-21 Thread Jason Gunthorpe
On Fri, Jun 21, 2013 at 04:57:09PM -0400, Doug Ledford wrote: > > I disagree, *verbs* needs to expose the HW capabilities, efficiently. > > What we need is an efficient RDMA API (of which verbs is a candidate for > the underlying implementation). It need not expose HW capabilities in > its base

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU.

2013-06-21 Thread Doug Ledford
On 06/21/2013 02:26 PM, Jason Gunthorpe wrote: > On Fri, Jun 21, 2013 at 01:36:01PM -0400, Doug Ledford wrote: > > The new transports have new requirements, and the apps have new > required behaviors - the API simply can't hide all this in every > case. The changes before had nothing t

[PATCH] ibsim: Set issm flag on connect when SIM_SET_ISSM set

2013-06-21 Thread Albert Chu
When the SIM_SET_ISSM environment variable is set, ibsim did not set the issm bit until after an ibsim connection was complete. This allowed multiple SMs to actively run as the SM on the same port. Signed-off-by: Albert L. Chu --- umad2sim/sim_client.c |5 - 1 files changed, 4 insertion

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU.

2013-06-21 Thread Jason Gunthorpe
On Fri, Jun 21, 2013 at 01:36:01PM -0400, Doug Ledford wrote: > >>> The new transports have new requirements, and the apps have new > >>> required behaviors - the API simply can't hide all this in every > >>> case. The changes before had nothing to do with MTU, FWIW. > >> > >> It demonstrates what

Re: [PATCH V2] libibverbs: Allow arbitrary int values for MTU.

2013-06-21 Thread Doug Ledford
On 06/21/2013 02:36 AM, Jason Gunthorpe wrote: > On Thu, Jun 20, 2013 at 08:31:07PM -0400, Doug Ledford wrote: > >>> The new transports have new requirements, and the apps have new >>> required behaviors - the API simply can't hide all this in every >>> case. The changes before had nothing to do w

RE: linux-next: Tree for Jun 21 (infiniband: qib)

2013-06-21 Thread Marciniszyn, Mike
I just submitted a fix for this. > -Original Message- > From: Randy Dunlap [mailto:rdun...@infradead.org] > Sent: Friday, June 21, 2013 11:30 AM > To: Stephen Rothwell > Cc: linux-n...@vger.kernel.org; linux-ker...@vger.kernel.org; infinipath; > linux- > r...@vger.kernel.org > Subject: R

Re: linux-next: Tree for Jun 21 (infiniband: qib)

2013-06-21 Thread Randy Dunlap
On 06/21/13 01:17, Stephen Rothwell wrote: > Hi all, > > Happy solstice! > > Changes since 20130620: > on x86_64: when CONFIG_SMP is not enabled: (from qib.h:) #ifdef CONFIG_INFINIBAND_QIB_DCA struct qib_irq_notify { int rcv; void *arg; struct irq_affinity_notify not

[PATCH 1/2] IB/qib: build issues with qib DCA and some config files

2013-06-21 Thread Mike Marciniszyn
The Kconfig needed some extra tests to avoid: drivers/built-in.o: In function `qib_irq_notifier_notify': (.text+0x561510): undefined reference to `dca3_get_tag' and: In file included from drivers/infiniband/hw/qib/qib_diag.c:53:0: drivers/infiniband/hw/qib/qib.h:436:29: error: field 'notify' h

[PATCH 2/2] IB/qib; fix static sparse warnings

2013-06-21 Thread Mike Marciniszyn
From: Fengguang Wu This patch corrects the following sparse warnings: qib_iba7322.c:2746:6: warning: symbol 'qib_irq_notifier_notify' was not declared. Should it be static? qib_iba7322.c:2762:6: warning: symbol 'qib_irq_notifier_release' was not declared. Should it be static? Signed-off-by: Fen

Re: [PATCH] mm: Revert pinned_vm braindamage

2013-06-21 Thread Christoph Lameter
On Thu, 20 Jun 2013, Roland Dreier wrote: > Christoph, your argument would be a lot more convincing if you stopped > repeating this nonsense. Sure, in a strict sense, it might be true Well this is regarding tracking of pages that need to stay resident and since the kernel does the pinning throug

Re: [PATCH 07/14] scsi_transport_srp: Add transport layer error handling

2013-06-21 Thread Jack Wang
On 06/19/2013 05:27 PM, Bart Van Assche wrote: > On 06/19/13 15:44, Jack Wang wrote: >>> +/* >>> + * It can occur that after fast_io_fail_tmo expired and before >>> + * dev_loss_tmo expired that the SCSI error handler has >>> + * offlined one or more devices. doesn'

[PATCH 10/15 ibacm] Add the ability to preload the destination GID and LID caches

2013-06-21 Thread Hal Rosenstock
Preloading of these caches is supported via a file which is produced by OpenSM by the dump_pr plugin which contains sufficient SA PathRecord information. Details on this file format and configuring OpenSM for this are found in dump_pr_notes.txt in dump_pr. File format is specified in ibacm_opts.c

[PATCH 11/15 ibacm] Add description of preloading GID and LID destination caches to acm_notes.txt

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- acm_notes.txt | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/acm_notes.txt b/acm_notes.txt index 99eaf9a..5c20129 100644 --- a/acm_notes.txt +++ b/acm_notes.txt @@ -128,3 +128,14 @@ The current implementation of the IB ACM ha

[PATCH 12/15 ibacm] Increase buffer space for inet_ntop from 32 to INET6_ADDRSTRLEN

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- linux/acme_linux.c |2 +- src/acm.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/acme_linux.c b/linux/acme_linux.c index 1039645..ef5b107 100644 --- a/linux/acme_linux.c +++ b/linux/acme_linux.c @@ -149,7 +149,7

[PATCH 09/15 ibacm] Update ib_acme.1 and ibacm.1 man pages

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- man/ib_acme.1 | 21 +++-- man/ibacm.1 | 20 +--- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/man/ib_acme.1 b/man/ib_acme.1 index d5ac269..6485858 100644 --- a/man/ib_acme.1 +++ b/man/ib_acme.1 @@ -1,13 +1

[PATCH 13/15 ibacm] ib_acme.c: Support IPv6 addressing in resolve_ip

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- src/acme.c | 33 - 1 files changed, 28 insertions(+), 5 deletions(-) diff --git a/src/acme.c b/src/acme.c index ea44eb94..db47faa 100644 --- a/src/acme.c +++ b/src/acme.c @@ -471,29 +471,52 @@ static int resolve_ip(struct ibv_p

[PATCH 08/15 ibacm] man: Change DOS formatting to unix formatting

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- man/ib_acme.1 | 162 man/ibacm.7 | 62 +++--- 2 files changed, 112 insertions(+), 112 deletions(-) diff --git a/man/ib_acme.1 b/man/ib_acme.1 index c4915cb..d5ac269 100644 --- a/man/i

[PATCH 15/15 ibacm] Add option to allow for ACM cache lookup performance measurement

2013-06-21 Thread Hal Rosenstock
-C option is added for resolution repetition count Signed-off-by: Hal Rosenstock --- man/ib_acme.1 |8 ++-- src/acme.c| 52 +++- src/libacm.c | 20 +++- src/libacm.h |7 +-- 4 files changed, 53 insertions(

[PATCH 14/15 ibacm] Add support for preloading IPv4 and IPv6 ACM caches

2013-06-21 Thread Hal Rosenstock
A hosts file (ibacm_hosts.cfg) is configured with tuples of IP addresses (either IPv4 or IPv6) and IB GID. This information in conjunction with the path record preloading allows for the IPv4 and IPv6 ACM caches to be preloaded. IPv4 was tested with both rping and ucmatose as well as acme. IPv6 wa

[PATCH 03/15 ibacm] acm.c: Cosmetic formatting change to acm log message

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- src/acm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acm.c b/src/acm.c index e956b09..a124e93 100644 --- a/src/acm.c +++ b/src/acm.c @@ -1277,7 +1277,7 @@ static void acm_process_acm_recv(struct acm_ep *ep, struct ibv_wc *wc

[PATCH 01/15 ibacm] acm_notes.txt: Change DOS formatting to unix formatting

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- acm_notes.txt | 260 1 files changed, 130 insertions(+), 130 deletions(-) diff --git a/acm_notes.txt b/acm_notes.txt index ed519ab..99eaf9a 100644 --- a/acm_notes.txt +++ b/acm_notes.txt @@ -1,130 +1,130

[PATCH 02/15 ibacm] ibacm_opts.cfg: Fix commentary typo

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- ibacm_opts.cfg |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ibacm_opts.cfg b/ibacm_opts.cfg index 7147fe2..c078aee 100644 --- a/ibacm_opts.cfg +++ b/ibacm_opts.cfg @@ -21,7 +21,7 @@ log_file /var/log/ibacm.log # Indicates the amount

[PATCH 04/15 ibacm] ibacm*.cfg: Change DOS formatting to unix formatting

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- ibacm_addr.cfg | 46 +- ibacm_opts.cfg | 260 2 files changed, 153 insertions(+), 153 deletions(-) diff --git a/ibacm_addr.cfg b/ibacm_addr.cfg index cfb17de..dd2bd6e 100644 --- a/ibacm_addr.cf

[PATCH 00/15 ibacm] ACM Cache Preloading (and some cosmetic cleanups)

2013-06-21 Thread Hal Rosenstock
This patch series has 2 purposes: cleanups of documentation and configuration files, and cache preloading. Cache preloading eliminates even the first network query when the destination is found in the cache. In order to accomplish this, there are 2 new static configuration files added as options.

[PATCH 07/15 ibacm] More cosmetic changes for consistency between acme and config files

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- ibacm_addr.cfg |2 +- ibacm_opts.cfg |2 +- src/acme.c |4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ibacm_addr.cfg b/ibacm_addr.cfg index c8f7f68..584419c 100644 --- a/ibacm_addr.cfg +++ b/ibacm_addr.cfg @@ -1,6 +1,6 @@

[PATCH 06/15 ibacm] ibacm_opts.cfg: Sync default options file with generated output

2013-06-21 Thread Hal Rosenstock
from: ib_acme -D . -O Signed-off-by: Hal Rosenstock --- ibacm_opts.cfg | 29 ++--- 1 files changed, 22 insertions(+), 7 deletions(-) diff --git a/ibacm_opts.cfg b/ibacm_opts.cfg index 58069b8..6f260da 100644 --- a/ibacm_opts.cfg +++ b/ibacm_opts.cfg @@ -30,7 +30,7 @@

[PATCH 05/15 ibacm] ibacm*.cfg: Fix commentary typos

2013-06-21 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- ibacm_addr.cfg |4 ++-- ibacm_opts.cfg |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ibacm_addr.cfg b/ibacm_addr.cfg index dd2bd6e..c8f7f68 100644 --- a/ibacm_addr.cfg +++ b/ibacm_addr.cfg @@ -1,7 +1,7 @@ # InfiniBand Communicati