<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/infiniband, branch v4.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.7</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2016-07-12T14:46:34Z</updated>
<entry>
<title>i40iw: Enable remote access rights for stag allocation</title>
<updated>2016-07-12T14:46:34Z</updated>
<author>
<name>Shiraz Saleem</name>
<email>shiraz.saleem@intel.com</email>
</author>
<published>2016-06-27T21:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8e0e7aedadb877d91a6e66611464165c969bc0a9'/>
<id>urn:sha1:8e0e7aedadb877d91a6e66611464165c969bc0a9</id>
<content type='text'>
Fix to enable remote access rights when allocating stag.

Fixes: b7aee855d3b9 ("RDMA/i40iw: Add base memory management extensions")
Signed-off-by: Shiraz Saleem &lt;shiraz.saleem@intel.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>i40iw: do not print unitialized variables in error message</title>
<updated>2016-07-12T14:46:34Z</updated>
<author>
<name>Nicolas Iooss</name>
<email>nicolas.iooss_linux@m4x.org</email>
</author>
<published>2016-06-25T15:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b0548cff99ba927730d4f0c306b98cb6b6aa7cf7'/>
<id>urn:sha1:b0548cff99ba927730d4f0c306b98cb6b6aa7cf7</id>
<content type='text'>
i40iw_create_cqp() printed the contents of variables maj_err and min_err
in an error message before they could be initialized (by calling
dev-&gt;cqp_ops-&gt;cqp_create).

Signed-off-by: Nicolas Iooss &lt;nicolas.iooss_linux@m4x.org&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB core: Add port_xmit_wait counter</title>
<updated>2016-07-12T14:46:24Z</updated>
<author>
<name>Christoph Lameter</name>
<email>cl@linux.com</email>
</author>
<published>2016-07-08T15:27:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c5a81d11d756bfa2b7215463b5908006871bd4fa'/>
<id>urn:sha1:c5a81d11d756bfa2b7215463b5908006871bd4fa</id>
<content type='text'>
Add the missing port_xmit_wait counter. This counter is displayed through
some tools like perfquery but is not available via sysfs.

For the PORT_PMA_ATTR macro the _counter field is set to zero
allowing us to specify the offset directly like with PORT_PMA_ATTR_EXT

See also the earlier work in 2008 by Vladimir Skolovsky

https://www.mail-archive.com/general@lists.openfabrics.org/msg20313.html

Signed-off-by: Vladimir Sokolvsky &lt;vlad@mellanox.com&gt;
Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/hfi1: Fix sleep inside atomic issue in init_asic_data</title>
<updated>2016-07-12T14:46:24Z</updated>
<author>
<name>Tadeusz Struk</name>
<email>tadeusz.struk@intel.com</email>
</author>
<published>2016-07-06T21:14:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=98f179a5eaf77eaac49df3d0c217c6eaaba8c0db'/>
<id>urn:sha1:98f179a5eaf77eaac49df3d0c217c6eaaba8c0db</id>
<content type='text'>
The critical section should protect only the list traversal
and dd-&gt;asic_data modification, not the memory allocation.
The fix pulls the allocation out of the critical section.

Reviewed-by: Dennis Dalessandro &lt;dennis.dalessandro@intel.com&gt;
Reviewed-by: Sebastian Sanchez &lt;sebastian.sanchez@intel.com&gt;
Reviewed-by: Dean Luick &lt;dean.luick@intel.com&gt;
Signed-off-by: Tadeusz Struk &lt;tadeusz.struk@intel.com&gt;
Signed-off-by: Dennis Dalessandro &lt;dennis.dalessandro@intel.com&gt;
Signed-off-by: Mike Marciniszyn &lt;mike.marciniszyn@intel.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>IB/hfi1: Correct issues with sc5 computation</title>
<updated>2016-07-12T14:46:24Z</updated>
<author>
<name>Mike Marciniszyn</name>
<email>mike.marciniszyn@intel.com</email>
</author>
<published>2016-07-01T22:57:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=896ce45da2c2f4abc508d443fdecde7de0b3fa7e'/>
<id>urn:sha1:896ce45da2c2f4abc508d443fdecde7de0b3fa7e</id>
<content type='text'>
There are several computatations of the sc in the
ud receive routine.

Besides the code duplication, all are wrong when the
sc is greater than 15.   In that case the code incorrectly
or's a 1 into the computed sc instead of 1 shifted left
by 4.

Fix precomputed sc5 by using an already implemented routine
hdr2sc() and deleting flawed duplicated code.

Cc: Stable &lt;stable@vger.kernel.org&gt; # 4.6+
Reviewed-by: Dennis Dalessandro &lt;dennis.dalessandro@intel.com&gt;
Signed-off-by: Mike Marciniszyn &lt;mike.marciniszyn@intel.com&gt;
Signed-off-by: Dennis Dalessandro &lt;dennis.dalessandro@intel.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge branches '4.7-rc-misc', 'hfi1-fixes', 'i40iw-rc-fixes' and 'mellanox-rc-fixes' into k.o/for-4.7-rc</title>
<updated>2016-06-23T16:22:33Z</updated>
<author>
<name>Doug Ledford</name>
<email>dledford@redhat.com</email>
</author>
<published>2016-06-23T16:22:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9903fd1374e913f5086b58af09d4e3fd6e9e86fe'/>
<id>urn:sha1:9903fd1374e913f5086b58af09d4e3fd6e9e86fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>IB/srpt: Reduce QP buffer size</title>
<updated>2016-06-23T16:04:09Z</updated>
<author>
<name>Bart Van Assche</name>
<email>bart.vanassche@sandisk.com</email>
</author>
<published>2016-06-23T07:35:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c0cf4512a31eb3cec70b066bc36ed55f7d05b8c0'/>
<id>urn:sha1:c0cf4512a31eb3cec70b066bc36ed55f7d05b8c0</id>
<content type='text'>
The memory needed for the send and receive queues associated with
a QP is proportional to the max_sge parameter. The current value
of that parameter is such that with an mlx4 HCA the QP buffer size
is 8 MB. Since DMA is used for communication between HCA and CPU
that buffer either has to be allocated coherently or map_single()
must succeed for that buffer. Since large contiguous allocations
are fragile and since the maximum segment size for e.g. swiotlb
is 256 KB, reduce the max_sge parameter. This patch avoids that
the following text appears on the console after SRP logout and
relogin on a system equipped with multiple IB HCAs:

mlx4_core 0000:05:00.0: swiotlb buffer is full (sz: 8388608 bytes)
swiotlb: coherent allocation failed for device 0000:05:00.0 size=8388608
CPU: 11 PID: 148 Comm: kworker/11:1 Not tainted 4.7.0-rc4-dbg+ #1
Call Trace:
 [&lt;ffffffff812c6d35&gt;] dump_stack+0x67/0x92
 [&lt;ffffffff812efe71&gt;] swiotlb_alloc_coherent+0x141/0x150
 [&lt;ffffffff810458be&gt;] x86_swiotlb_alloc_coherent+0x3e/0x50
 [&lt;ffffffffa03861fa&gt;] mlx4_buf_direct_alloc.isra.5+0x9a/0x120 [mlx4_core]
 [&lt;ffffffffa0386545&gt;] mlx4_buf_alloc+0x165/0x1a0 [mlx4_core]
 [&lt;ffffffffa035053d&gt;] create_qp_common.isra.29+0x57d/0xff0 [mlx4_ib]
 [&lt;ffffffffa03510da&gt;] mlx4_ib_create_qp+0x12a/0x3f0 [mlx4_ib]
 [&lt;ffffffffa031154a&gt;] ib_create_qp+0x3a/0x250 [ib_core]
 [&lt;ffffffffa055dd4b&gt;] srpt_cm_handler+0x4bb/0xcad [ib_srpt]
 [&lt;ffffffffa02c1ab0&gt;] cm_process_work+0x20/0xf0 [ib_cm]
 [&lt;ffffffffa02c3640&gt;] cm_work_handler+0x1ac0/0x2059 [ib_cm]
 [&lt;ffffffff810737ed&gt;] process_one_work+0x19d/0x490
 [&lt;ffffffff81073b29&gt;] worker_thread+0x49/0x490
 [&lt;ffffffff8107a0ea&gt;] kthread+0xea/0x100
 [&lt;ffffffff815b25af&gt;] ret_from_fork+0x1f/0x40

Fixes: b99f8e4d7bcd ("IB/srpt: convert to the generic RDMA READ/WRITE API")
Signed-off-by: Bart Van Assche &lt;bart.vanassche@sandisk.com&gt;
Cc: Laurence Oberman &lt;loberman@redhat.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>i40iw: Enable level-1 PBL for fast memory registration</title>
<updated>2016-06-23T14:35:34Z</updated>
<author>
<name>Shiraz Saleem</name>
<email>shiraz.saleem@intel.com</email>
</author>
<published>2016-06-14T21:54:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7748e4990de42ea796543c0ffd34118c3a5e6a98'/>
<id>urn:sha1:7748e4990de42ea796543c0ffd34118c3a5e6a98</id>
<content type='text'>
Set the chunk_size to enable level-1 PBL support when the fast memory
page count is more than one.

Signed-off-by: Shiraz Saleem &lt;shiraz.saleem@intel.com&gt;
Signed-off-by: Faisal Latif &lt;faisal.latif@intel.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>i40iw: Return correct max_fast_reg_page_list_len</title>
<updated>2016-06-23T14:35:34Z</updated>
<author>
<name>Faisal Latif</name>
<email>faisal.latif@intel.com</email>
</author>
<published>2016-06-14T21:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0477e18145c565f9ca74c6df4112f818f673fcaa'/>
<id>urn:sha1:0477e18145c565f9ca74c6df4112f818f673fcaa</id>
<content type='text'>
Return correct value for max_fast_reg_page_list_len from
i40iw_query_device().

Signed-off-by: Faisal Latif &lt;faisal.latif@intel.com&gt;
Signed-off-by: Shiraz Saleem &lt;shiraz.saleem@intel.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
<entry>
<title>i40iw: Correct status check on i40iw_get_pble</title>
<updated>2016-06-23T14:35:34Z</updated>
<author>
<name>Faisal Latif</name>
<email>faisal.latif@intel.com</email>
</author>
<published>2016-06-14T21:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ee23abd75c5076e51061c275e8f659d754a63c9d'/>
<id>urn:sha1:ee23abd75c5076e51061c275e8f659d754a63c9d</id>
<content type='text'>
i40iw_get_pble returns 0 on success. Correct the check on return
code.

Signed-off-by: Faisal Latif &lt;faisal.latif@intel.com&gt;
Signed-off-by: Shiraz Saleem &lt;shiraz.saleem@intel.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</content>
</entry>
</feed>
