[PATCH] libibmad: Conversion specifier; %m is not supported on Solaris

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/rpc.c |4 ++-- src/serv.c |7 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/rpc.c b/src/rpc.c index 6312d42..4fb5a21 100644 --- a/src/rpc.c +++ b/src/rpc.c @@ -153,7 +153,7 @@ _do_madrpc(int port_id, vo

[PATCH] libibmad: Conversion specifier; "%m" is not supported on Solaris

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/rpc.c |4 ++-- src/serv.c |7 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/rpc.c b/src/rpc.c index 6312d42..4fb5a21 100644 --- a/src/rpc.c +++ b/src/rpc.c @@ -153,7 +153,7 @@ _do_madrpc(int port_id, vo

[PATCH] libibmad: To fix compilation warning: need typecasts

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- include/infiniband/mad.h | 12 src/fields.c |8 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/include/infiniband/mad.h b/include/infiniband/mad.h index 02b2353..cefcc54 100644 --- a/incl

[PATCH] libibmad: To handle null dev_name in madrpc_init

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/rpc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/rpc.c b/src/rpc.c index 6312d42..cb224fd 100644 --- a/src/rpc.c +++ b/src/rpc.c @@ -360,7 +360,8 @@ madrpc_init(char *dev_name, int dev_port, int *mgmt_c

[PATCH] libibmad: Fixes for failures when not all ports of HCA are connected

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/resolve.c | 22 ++ src/rpc.c |1 + src/sa.c |2 ++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/resolve.c b/src/resolve.c index f866bf4..ab24c79 100644 --- a/src/resolve.c +++ b/s

[PATCH] libibmad: To fix big endian problem for both 32-bit & 64-bit SPARC

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/dump.c | 66 +++ 1 files changed, 57 insertions(+), 9 deletions(-) diff --git a/src/dump.c b/src/dump.c index 7f3ef7d..e83c363 100644 --- a/src/dump.c +++ b/src/dump.c @@ -46,12 +4

[PATCH] libibmad: To reserve upper 8 bits of tid used by solaris SRIOV driver

2013-03-12 Thread Boris Chiu
From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/mad.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mad.c b/src/mad.c index 70a69dd..fb5f5eb 100644 --- a/src/mad.c +++ b/src/mad.c @@ -62,6 +62,9 @@ uint64_t mad_trid(void) trid = random();

[PATCHv2] opensm: Fix issues causing const warnings for strings

2013-03-12 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- Changes since v1: Change config_file declaration from char * to const char * diff --git a/complib/Makefile.am b/complib/Makefile.am index 3ee90e8..360deab 100644 --- a/complib/Makefile.am +++ b/complib/Makefile.am @@ -9,7 +9,7 @@ else DBGFLAGS = -g endif -li

Re: [PATCH] opensm: Fix issues causing const warnings for strings

2013-03-12 Thread Hal Rosenstock
On 3/12/2013 10:12 AM, Weiny, Ira wrote: >> -Original Message- >> From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- >> ow...@vger.kernel.org] On Behalf Of Hal Rosenstock >> Sent: Tuesday, March 12, 2013 9:45 AM >> To: linux-rdma (linux-rdma@vger.kernel.org) >> Subject: [PATCH] open

Re: [PATCH net-next 05/22] cxgb4: Add T5 write combining support

2013-03-12 Thread Steve Wise
On 3/12/2013 7:19 AM, David Miller wrote: From: Vipul Pandya Date: Tue, 12 Mar 2013 17:16:17 +0530 + writel(n, adap->bar2 + q->udb + 8); +#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) + asm volatile("sfence" : : : "memory"); +#endif

RE: [PATCH] opensm: Fix issues causing const warnings for strings

2013-03-12 Thread Weiny, Ira
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Hal Rosenstock > Sent: Tuesday, March 12, 2013 9:45 AM > To: linux-rdma (linux-rdma@vger.kernel.org) > Subject: [PATCH] opensm: Fix issues causing const warnings for strin

Re: v3.7: Unloading ib_ipoib triggers circular locking dependency complaint

2013-03-12 Thread Bart Van Assche
On 11/26/12 09:00, Or Gerlitz wrote: On Fri, Nov 23, 2012 at 2:10 PM, Bart Van Assche wrote: Apparently unloading the ib_ipoib kernel module triggers a circular locking dependency complaint. Has anyone already been looking into this ? Yes, I see that this happens here e.g when doing hot-unplu

[PATCH] opensm: Fix issues causing const warnings for strings

2013-03-12 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- diff --git a/complib/Makefile.am b/complib/Makefile.am index 3ee90e8..360deab 100644 --- a/complib/Makefile.am +++ b/complib/Makefile.am @@ -9,7 +9,7 @@ else DBGFLAGS = -g endif -libosmcomp_la_CFLAGS = -Wall $(DBGFLAGS) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 +li

Re: [PATCH net-next 05/22] cxgb4: Add T5 write combining support

2013-03-12 Thread David Miller
From: Vipul Pandya Date: Tue, 12 Mar 2013 17:16:17 +0530 > + writel(n, adap->bar2 + q->udb + 8); > +#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) > + asm volatile("sfence" : : : "memory"); > +#endif There is absolutely no way I'm letting an

[PATCH net-next 09/22] cxgb4: Update driver version and description

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxg

[PATCH net-next 10/22] cxgb4: Disable SR-IOV support for PF4-7 for T5

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur All T5 adapters will only support VFs on PF0-3 despite the ability of the hardware to support them on PF4-7. This keeps our T4 and T5 adapters more similar which simplifies host driver software. Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

[PATCH net-next 06/22] cxgb4: Enable doorbell drop recovery only for T4 adapter

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 87 ++ 1 files changed, 71 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/

[PATCH net-next 00/22] Add support for Chelsio T5 adapter

2013-03-12 Thread Vipul Pandya
Hi All, This patch series adds support for Chelsio's T5 adapter. It also adds support for new features of T5. It adds these in cxgb4, cxgb4vf, RDMA/cxgb4 and csiostor drivers. Chelsio's T5 asic moves the architecture into 40GbE speeds. T5 is a 10/40GbE controller with full offload support of a co

[PATCH net-next 01/22] cxgb4: Add register definations for T5

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 94 ++ 1 files changed, 94 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/eth

[PATCH net-next 05/22] cxgb4: Add T5 write combining support

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur This patch implements a low latency Write Combining (aka Write Coalescing) work request path. PCIE maps User Space Doorbell BAR2 region writes to the new interface to SGE. SGE pulls a new message from PCIE new interface and if its a coalesced write work request then pushes

[PATCH net-next 11/22] cxgb4vf: Add support for Chelsio T5 adapter

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4vf/adapter.h |1 + .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 35 ++-- drivers/net/ethernet/chelsio/cxgb4vf/sge.c |8 +++- dr

[PATCH net-next 12/22] RDMA/cxgb4: Add Support for Chelsio T5 adapter

2013-03-12 Thread Vipul Pandya
Adds support for Chelsio T5 adapter. Enables T5's Write Combining feature. Signed-off-by: Vipul Pandya --- drivers/infiniband/hw/cxgb4/cm.c | 64 +++ drivers/infiniband/hw/cxgb4/device.c | 13 -- drivers/infiniband/hw/cxgb4/iw_cxgb4.h |9 driv

[PATCH net-next 20/22] csiostor: Add T5 adapter operations.

2013-03-12 Thread Vipul Pandya
From: Arvind Bhushan This patch creates a new file for T5 adapter operations. Signed-off-by: Arvind Bhushan Signed-off-by: Naresh Kumar Inna --- drivers/scsi/csiostor/csio_hw_t5.c | 397 1 files changed, 397 insertions(+), 0 deletions(-) create mode 1006

[PATCH net-next 21/22] csiostor: Header file modifications for chip support and bug fixes.

2013-03-12 Thread Vipul Pandya
From: Arvind Bhushan This patch defines the common operations to support multiple chips. It includes common header file modifications to support the current chips (T4 and T5). It also includes the following bug fixes: - reconfirms the rnode state after an implicit logo. - corrects the stats array

[PATCH net-next 22/22] csiostor: Cleanup chip specific operations.

2013-03-12 Thread Vipul Pandya
From: Arvind Bhushan This patch removes chip specific operations from the common hardware paths, as well as the Makefile change to accomodate the new files. Signed-off-by: Arvind Bhushan Signed-off-by: Naresh Kumar Inna --- drivers/scsi/csiostor/Makefile|3 +- drivers/scsi/csiostor/cs

[PATCH net-next 19/22] csiostor: Segregate T4 adapter operations.

2013-03-12 Thread Vipul Pandya
From: Arvind Bhushan This patch separates T4 adapter operations into a new file. Signed-off-by: Arvind Bhushan Signed-off-by: Naresh Kumar Inna --- drivers/scsi/csiostor/csio_hw_t4.c | 403 1 files changed, 403 insertions(+), 0 deletions(-) create mode 1

[PATCH net-next 18/22] RDMA/cxgb4: Fix onchip queue support for T5

2013-03-12 Thread Vipul Pandya
T5 adapter does not support onchip queue memory. Present logic fails to allocate QP for T5 and returns an error. Also, if module parameter ocqp_support is zero then we are unable to allocate QP which should not be the case. Ideally if ocqp_support parameter is 0 or onchip queue support is disable t

[PATCH net-next 17/22] RDMA/cxgb4: Bump tcam_full stat and WR reply timeout

2013-03-12 Thread Vipul Pandya
Always bump the tcam_full stat. Also, bump wr reply timeout to 30 seconds. Signed-off-by: Vipul Pandya --- drivers/infiniband/hw/cxgb4/cm.c |2 +- drivers/infiniband/hw/cxgb4/iw_cxgb4.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/cxgb

[PATCH net-next 16/22] RDMA/cxgb4: Map pbl buffers for dma if using DSGL.

2013-03-12 Thread Vipul Pandya
Signed-off-by: Vipul Pandya --- drivers/infiniband/hw/cxgb4/mem.c | 29 +++-- 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 33db9ee..4cb8eb2 100644 --- a/drivers/infiniband/hw/

[PATCH net-next 15/22] RDMA/cxgb4: Use DSGLs for fastreg and adapter memory writes for T5.

2013-03-12 Thread Vipul Pandya
It enables direct DMA by HW to memory region PBL arrays and fast register PBL arrays from host memory, vs the T4 way of passing these arrays in the WR itself. The result is lower latency for memory registration, and larger PBL array support for fast register operations. This patch also updates ULP

[PATCH net-next 14/22] RDMA/cxgb4: Add module_params to enable DB FC & Coalescing on T5

2013-03-12 Thread Vipul Pandya
Both DB Flow-Control and DB Coalescing are disabled by default on T5 Signed-off-by: Vipul Pandya --- drivers/infiniband/hw/cxgb4/device.c | 25 +++-- drivers/infiniband/hw/cxgb4/iw_cxgb4.h |1 + drivers/infiniband/hw/cxgb4/qp.c | 10 ++ 3 files changed

[PATCH net-next 04/22] cxgb4: Dump T5 registers

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 452 ++- 1 files changed, 448 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net

[PATCH net-next 13/22] RDMA/cxgb4: Turn off db coalescing when RDMA QPs are in use.

2013-03-12 Thread Vipul Pandya
Signed-off-by: Vipul Pandya --- drivers/infiniband/hw/cxgb4/qp.c| 20 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 19 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h |3 +++ drivers/net/ethernet/chelsio/cxgb4/t4_regs.h|

[PATCH net-next 07/22] cxgb4: Add T5 debugfs support

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h |3 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 55 +--- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 104 --

[PATCH net-next 03/22] cxgb4: Initialize T5

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 85 ++--- drivers/net/ethernet/chelsio/cxgb4/sge.c| 37 -- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 152 +++

[PATCH net-next 02/22] cxgb4: Add macros, structures and inline functions for T5

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h| 50 - drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 45 ++ drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h |

[PATCH net-next 08/22] cxgb4: Add T5 PCI ids

2013-03-12 Thread Vipul Pandya
From: Santosh Rastapur Signed-off-by: Santosh Rastapur Signed-off-by: Vipul Pandya --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 38 +++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/

[patch] IB/ipath: add a range check before bumping the stats

2013-03-12 Thread Dan Carpenter
My static checker complains that this could corrupt memory. It seems valid to add a range check here. Signed-off-by: Dan Carpenter --- I can't test this. diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.c b/drivers/infiniband/hw/ipath/ipath_verbs.c index 439c35d..f15dd70 100644 --- a/drive