[RFC Patch V1 12/30] mm, IB/qib: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[PATCH opensm] osm_subnet.c: Change default for perfmgr_query_cpi option

2014-07-11 Thread Hal Rosenstock
New default for PerfMgr query CPI is TRUE rather than FALSE. More admins need to use this and this was too often being missed during configuration so make admins turn this off rather than on (once enabling perfmgr itself). Signed-off-by: Hal Rosenstock h...@mellanox.com --- diff --git

[PATCH 1/4] iw_cxgb4: Detect Ing. Padding Boundary at run-time

2014-07-11 Thread Hariprasad Shenai
Updates iw_cxgb4 to determine the Ingress Padding Boundary from cxgb4_lld_info, and take subsequent actions. Signed-off-by: Steve Wise sw...@opengridcomputing.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/infiniband/hw/cxgb4/cq.c|4 ++--

[PATCH 0/4] Misc. fixes for iw_cxgb4

2014-07-11 Thread Hariprasad Shenai
This patch series adds support to determine ingress padding boundary at runtime. Advertise a larger max read queue depth for qps, and gather the resource limits from fw and use them to avoid exhausting all the resources and display TPTE on errors and add support for work request logging feature.

[PATCH 4/4] cxgb4/iw_cxgb4: work request logging feature

2014-07-11 Thread Hariprasad Shenai
This commit enhances the iwarp driver to optionally keep a log of rdma work request timining data for kernel mode QPs. If iw_cxgb4 module option c4iw_wr_log is set to non-zero, each work request is tracked and timing data maintained in a rolling log that is 4096 entries deep by default. Module

[PATCH 2/4] cxgb4/iw_cxgb4: use firmware ord/ird resource limits

2014-07-11 Thread Hariprasad Shenai
Advertise a larger max read queue depth for qps, and gather the resource limits from fw and use them to avoid exhaustinq all the resources. Design: cxgb4: Obtain the max_ordird_qp and max_ird_adapter device params from FW at init time and pass them up to the ULDs when they attach. If these

[PATCH 3/4] cxgb4/iw_cxgb4: display TPTE on errors

2014-07-11 Thread Hariprasad Shenai
With ingress WRITE or READ RESPONSE errors, HW provides the offending stag from the packet. This patch adds logic to log the parsed TPTE in this case. cxgb4 now exports a function to read a TPTE entry from adapter memory. Signed-off-by: Steve Wise sw...@opengridcomputing.com Signed-off-by:

Re: [PATCH 2/2] svcrdma: Remove extra writeargs sanity check for NFSv2/3

2014-07-11 Thread J. Bruce Fields
On Thu, Jul 10, 2014 at 04:43:54PM -0400, Chuck Lever wrote: I think the sanity check you pointed out is strictly satisfied by testing against the unaligned number of bytes. Is there a strong reason to do the extra math for that check during each WRITE? I can't think of any good reason why the