]> www.infradead.org Git - users/jedix/linux-maple.git/log
users/jedix/linux-maple.git
9 years agoSDP: Don't allow destruct socket when having sdp_destroy_work in workqueue
Amir Vadai [Wed, 23 Jul 2008 11:30:31 +0000 (14:30 +0300)]
SDP: Don't allow destruct socket when having sdp_destroy_work in workqueue

in error flow, sdp_destroy_work is placed in workqueue and sometimes the
user application call close() that destruct the socket before sdp_destroy_work
is called.

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
9 years agoSDP: do gracefull close instead of always doing abortive close.
Amir Vadai [Thu, 10 Jul 2008 08:53:53 +0000 (01:53 -0700)]
SDP: do gracefull close instead of always doing abortive close.

Main changes:
1.  when a close/shutdown syscall is called, instead of sending a DREQ, put
    last socket ref count and go to TCP_CLOSE state do:
    - take a socket reference count
    - set state to TCP_TIME_WAIT
    - start infiniband tear down
    - wait till got RDMA_CM_EVENT_TIMEWAIT_EXIT
    - set socket state to TCP_CLOSE
    - put last socket ref count - this will call sdp_destruct()

2. No need for sdp_time_wait

3. Abortive close will immedietly start infiniband teardown - will finilize the
   socket closing when CM finish.

4. Fixed references accounting + state exchanges

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
9 years agoSDP: Split sdp_handle_wc() to smaller functions
Amir Vadai [Thu, 10 Jul 2008 08:47:49 +0000 (01:47 -0700)]
SDP: Split sdp_handle_wc() to smaller functions

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
9 years agoSDP: Use sdp_set_state()
Amir Vadai [Thu, 10 Jul 2008 08:46:19 +0000 (01:46 -0700)]
SDP: Use sdp_set_state()

use sdp_set_state() instead of modifying sk_state directly

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
9 years agoCommited old fixes from kernel_patches/fixes/cma_established1.patch into git
Amir Vadai [Thu, 22 May 2008 13:10:49 +0000 (16:10 +0300)]
Commited old fixes from kernel_patches/fixes/cma_established1.patch into git

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
9 years agoModifies SDP to support the updated 2.6.26-rc2 kernel APIs.
Amir Vadai [Thu, 22 May 2008 11:35:03 +0000 (14:35 +0300)]
Modifies SDP to support the updated 2.6.26-rc2 kernel APIs.

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
9 years agoSDP - Fix compile problem on 2.6.24 ia64
Jim Mott [Mon, 11 Feb 2008 20:30:45 +0000 (12:30 -0800)]
SDP - Fix compile problem on 2.6.24 ia64

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP: Enable bzcopy by default
Jim Mott [Tue, 5 Feb 2008 16:10:06 +0000 (18:10 +0200)]
SDP: Enable bzcopy by default

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Bug837: executing netperf with TCP_CORK enabled never ends
Jim Mott [Fri, 4 Jan 2008 20:36:50 +0000 (12:36 -0800)]
SDP - Bug837: executing netperf with TCP_CORK enabled never ends

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Bug829: poll() always returns POLLOUT on non-blocking socket
Jim Mott [Fri, 4 Jan 2008 20:32:48 +0000 (12:32 -0800)]
SDP - Bug829: poll() always returns POLLOUT on non-blocking socket

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Bug294: SDP connect() only allows AF_INET (2), not AF_INET_SDP (27)
Jim Mott [Fri, 4 Jan 2008 20:26:25 +0000 (12:26 -0800)]
SDP - Bug294: SDP connect() only allows AF_INET (2), not AF_INET_SDP (27)

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP: various bzcopy fixes V2
Jim Mott [Wed, 5 Dec 2007 09:02:11 +0000 (11:02 +0200)]
SDP: various bzcopy fixes V2

The Mellanox regression tests posted a number of failures when
multiple threads were accessing the same sockets concurrently.  In
addition to test failures, there were log messages of the form:
  sdp_sock(54386:19002): Could not reap -5 in-flight sends

This fix handles all these failures and errors.

The V2 is a fix to handle 2.6.22+ kernels where sk_buffs have
changed.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoApplied 'kernel_patches/fixes/sdp_skbuff_offset.patch'.
Vladimir Sokolovsky [Tue, 4 Dec 2007 13:51:32 +0000 (15:51 +0200)]
Applied 'kernel_patches/fixes/sdp_skbuff_offset.patch'.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
9 years agoApplied 'kernel_patches/fixes/sdp_post_credits.patch'
Vladimir Sokolovsky [Tue, 4 Dec 2007 13:49:25 +0000 (15:49 +0200)]
Applied 'kernel_patches/fixes/sdp_post_credits.patch'

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
9 years agoSDP: Applied 'kernel_patches/fixes/sdp_cq_param.patch'
Vladimir Sokolovsky [Tue, 4 Dec 2007 13:48:11 +0000 (15:48 +0200)]
SDP: Applied 'kernel_patches/fixes/sdp_cq_param.patch'

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
9 years agoSDP: Disable Zcopy.
Jim Mott [Wed, 21 Nov 2007 13:00:46 +0000 (15:00 +0200)]
SDP: Disable Zcopy.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoModifies SDP to support the updated 2.6.24-rc2 kernel APIs.
Jim Mott [Tue, 20 Nov 2007 21:57:07 +0000 (13:57 -0800)]
Modifies SDP to support the updated 2.6.24-rc2 kernel APIs.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP: A better fix of a potential memory leak in the new bzcopy code.
Dotan Barak [Wed, 21 Nov 2007 07:08:25 +0000 (09:08 +0200)]
SDP: A better fix of a potential memory leak in the new bzcopy code.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
9 years agosdp: Fix data corretness regression test failure.
Jim Mott [Sun, 11 Nov 2007 17:20:02 +0000 (19:20 +0200)]
sdp: Fix data corretness regression test failure.

Mellanox regression testing for data correctness started failing
after the recent addition of bzcopy. This was because sdp_sendmsg
returned before all in-flight RC transfers completed.
This allowed user space to modify buffers that had not been sent.

A big oops.

This fixes that bug.  Small frame bandwidth is even worse
now, but small frame latency is lower which is good.  The
default transfer size that triggers bzcopy has been
increased to the bandwidth crossover point found in
MLX4-MLX4 tests.  More work will be required to find the
best value for the release.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Fix reference count locking bug
Jim Mott [Tue, 6 Nov 2007 22:28:05 +0000 (14:28 -0800)]
SDP - Fix reference count locking bug

Add code to fix a problem found by the Mellanox regression group.  When
mlx4_ib driver is unloaded while SDP connections are active, the system
would hang.

The original fix for this problem called an rdma_cm service that can block
with 2 spin locks held.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Make bzcopy defualt for 2K and larger transfer size
Jim Mott [Sat, 3 Nov 2007 02:50:31 +0000 (19:50 -0700)]
SDP - Make bzcopy defualt for 2K and larger transfer size

In order to be sure we test the new bzcopy code it will be enabled by
default.  The 2K threshold is what my testing shows to be the lowest
value that always wins.  We may have to adjust this upward if other
hardware has worse performance.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Fix reference count bug that prevents mlx4_ib and ib_sdp unload
Jim Mott [Sat, 3 Nov 2007 02:45:42 +0000 (19:45 -0700)]
SDP - Fix reference count bug that prevents mlx4_ib and ib_sdp unload

Add code to handle mlx4 device remove call.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Add note on where linux bits in sdp_main come from.
Michael S. Tsirkin [Tue, 23 Oct 2007 17:59:49 +0000 (10:59 -0700)]
SDP - Add note on where linux bits in sdp_main come from.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
9 years agoSDP - Zero copy bcopy support
Jim Mott [Tue, 23 Oct 2007 17:59:13 +0000 (10:59 -0700)]
SDP - Zero copy bcopy support

This patch adds zero copy send support to SDP.  Below 2K transfer size,
it is better to bcopy.  With larger transfers, this is a net win on
bandwidth.  Latency testing is yet to be done.

                     BCOPY        BZCOPY
   1K  TCP_STREAM  3555 Mb/sec  2250 Mb/sec
   2K  TCP_STREAM  3650 Mb/sec  3785 Mb/sec
   4K  TCP_STREAM  3560 Mb/sec  6220 Mb/sec
   8K  TCP_STREAM  3555 Mb/sec  6190 Mb/sec
  16K  TCP_STREAM  5100 Mb/sec  6155 Mb/sec
   1M  TCP_STREAM  4630 Mb/sec  6210 Mb/sec

Performance work still remains.  Open issues include correct setsockopt
defines (use previous SDP values?), code cleanup, performance tuning,
rigorous regression testing, and multi-OS build+test.  Simple testing to
date includes netperf and iperf, ^C recovery, unload/load, and checking
for gross memory leaks on Rhat4u4.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP - Method used to allocate socket buffers may cause node to hang
Jim Mott [Tue, 23 Oct 2007 17:58:27 +0000 (10:58 -0700)]
SDP - Method used to allocate socket buffers may cause node to hang

The problem we are seeing is that if a node is under load, and
a memory allocation fails (say in sock_sendmsg()), the kernel will
use the allocation policy to decide how to proceed with the allocation.
If GFP_KERNEL is specified, then the kernel may attempt to free pages
through the iSCSI block device that is making the socket call, which
would result in a deadlock.  Use of GFP_NOIO should prevent the kernel
from using the IO backend to free memory resources.

Each kernel level socket has an allocation flag to specify the
memory allocation policy for socket buffers, the default is GFP_ATOMIC
(or GFP_KERNEL for SDP).  If the caller creates a socket with the
policy set to GFP_NOFS or GFP_NOIO this should be the allocation
policy used by the SDP layer.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP bug647 - Validate ChRcvBuf range and add comments
Jim Mott [Tue, 23 Oct 2007 17:57:33 +0000 (10:57 -0700)]
SDP bug647 - Validate ChRcvBuf range and add comments

Clean up the buffer resize code to comply with CA4-83:
  Upon receipt of ChRcvBuf message, the remote peer shall not
change the buffer size in the direction opposite of that
requested.

Also add some comments and pretty up the code.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP bug646 - Do not send DisConn if there is only 1 credit
Jim Mott [Tue, 23 Oct 2007 17:51:30 +0000 (10:51 -0700)]
SDP bug646 - Do not send DisConn if there is only 1 credit

Compliance with CA4-82:
  If one credit is available, an implementation shall only send SDP
messages that provide additional credits and also do not contain ULP
payload.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP bug644 - DisConn, ChRcvBuf, and ChRcvBufAck sent solicited
Jim Mott [Tue, 23 Oct 2007 17:50:39 +0000 (10:50 -0700)]
SDP bug644 - DisConn, ChRcvBuf, and ChRcvBufAck sent solicited

This patch brings the implementation into compliance with A4.11.2 which
says that these messages are not to be sent as solicited.

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoSDP: Add keepalive support
Jim Mott [Thu, 11 Oct 2007 16:33:09 +0000 (09:33 -0700)]
SDP: Add keepalive support

Signed-off-by: Jim Mott <jim@mellanox.com>
9 years agoFix SDP build issue in 2.6.22-rc7 kernel. There are skbuff.h changes.
Jim Mott [Mon, 16 Jul 2007 12:27:12 +0000 (05:27 -0700)]
Fix SDP build issue in 2.6.22-rc7 kernel. There are skbuff.h changes.

9 years agoIB/sdp: move the socket to accept queue
Ami Perlmutter [Tue, 29 May 2007 14:32:31 +0000 (17:32 +0300)]
IB/sdp: move the socket to accept queue

Move socket to accept queue if RTU is dropped and DREQ is recieved
(bugzilla 645)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: resize data should be added to skb via skb_put (bugzilla 620)
Ami Perlmutter [Tue, 15 May 2007 11:55:31 +0000 (14:55 +0300)]
IB/sdp: resize data should be added to skb via skb_put (bugzilla 620)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: fix problem with sles9 backport (bugzilla 621)
Ami Perlmutter [Tue, 15 May 2007 06:08:13 +0000 (09:08 +0300)]
IB/sdp: fix problem with sles9 backport (bugzilla 621)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: slow start recv buffer sizes, and try to resize if out of credits (bugzilla...
Ami Perlmutter [Thu, 10 May 2007 12:23:13 +0000 (15:23 +0300)]
IB/sdp: slow start recv buffer sizes, and try to resize if out of credits (bugzilla 556)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: print queued rx and tx status to proc_fs implement SIOCOUTQ ioctl
Ami Perlmutter [Wed, 9 May 2007 09:16:08 +0000 (12:16 +0300)]
IB/sdp: print queued rx and tx status to proc_fs implement SIOCOUTQ ioctl

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: Cleanup compilation warnings.
Michael S. Tsirkin [Sun, 6 May 2007 08:18:56 +0000 (11:18 +0300)]
IB/sdp: Cleanup compilation warnings.

workqueue function gets passed work_struct sizeof should be printed with %zd

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
9 years agoIB/sdp: Fix to be compliant with CA4-119 (bugzilla 596)
Ami Perlmutter [Wed, 2 May 2007 12:26:17 +0000 (15:26 +0300)]
IB/sdp: Fix to be compliant with CA4-119 (bugzilla 596)

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: adjust module parameter to improve 8K message BW
Ami Perlmutter [Thu, 26 Apr 2007 07:13:23 +0000 (10:13 +0300)]
IB/sdp: adjust module parameter to improve 8K message BW

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: prevent removal of ib device before cleanup
Ami Perlmutter [Wed, 25 Apr 2007 14:19:07 +0000 (17:19 +0300)]
IB/sdp: prevent removal of ib device before cleanup

Should cleanup  all related resources (bugzzila num. 579)

Signed-off-by: Ami Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: fix dma mapping direction (bugzzila num. 556)
Ami Perlmutter [Sun, 22 Apr 2007 10:31:47 +0000 (13:31 +0300)]
IB/sdp: fix dma mapping direction (bugzzila num. 556)

Signed-off-by: Amiram Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp - use the ib_dma interface
Ami Perlmutter [Thu, 29 Mar 2007 08:28:01 +0000 (10:28 +0200)]
IB/sdp - use the ib_dma interface

The SDP module should be using the ib_dma_* interface, not the dma_*
interface directly.  This fixes a crash on InfiniPath hardware.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Robert Walsh <robert.walsh@qlogic.com>
9 years agoIB/sdp: cm disconnect should wake up any sleeping processes (bugzzila num. 492)
Ami Perlmutter [Sun, 25 Mar 2007 14:48:04 +0000 (16:48 +0200)]
IB/sdp: cm disconnect should wake up any sleeping processes (bugzzila num. 492)

Signed-off-by: Amiram Perlmutter <amip@dev.mellanox.co.il>
9 years agoIB/sdp: add uid and inode to proc_fs info
Amiram Perlmutter [Wed, 14 Mar 2007 12:34:08 +0000 (14:34 +0200)]
IB/sdp: add uid and inode to proc_fs info

Signed-off-by: Amiram Perlmutter <amip@dev.mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
9 years agoIB/sdp: fix dma leak
Ami Parlmuter [Tue, 27 Feb 2007 14:08:27 +0000 (16:08 +0200)]
IB/sdp: fix dma leak

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fix BSDH len field for HH/HAH login messages.
Amiram Perlmutter [Sun, 25 Feb 2007 09:57:47 +0000 (11:57 +0200)]
IB/sdp: fix BSDH len field for HH/HAH login messages.

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: try to send after push mark is set
Ami Parlmuter [Wed, 21 Feb 2007 09:55:38 +0000 (11:55 +0200)]
IB/sdp: try to send after push mark is set

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: allow users via module parameter to bound SDP's memory use
Amiram Perlmutter [Thu, 25 Jan 2007 09:53:25 +0000 (11:53 +0200)]
IB/sdp: allow users via module parameter to bound SDP's memory use

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fix NULL pointer dereference
Amiram Perlmutter [Mon, 22 Jan 2007 15:03:58 +0000 (17:03 +0200)]
IB/sdp: fix NULL pointer dereference

introduced by patch "IB/sdp: handle shutdown recv on listening socket"

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: add proc_fs support
Amiram Perlmutter [Mon, 22 Jan 2007 12:00:04 +0000 (14:00 +0200)]
IB/sdp: add proc_fs support

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: handle shutdown recv on listening socket
Amiram Perlmutter [Thu, 18 Jan 2007 16:50:30 +0000 (18:50 +0200)]
IB/sdp: handle shutdown recv on listening socket

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoUpdate for API changes merged for 2.6.20.
Michael S. Tsirkin [Sun, 17 Dec 2006 09:39:05 +0000 (11:39 +0200)]
Update for API changes merged for 2.6.20.

9 years agoIB/sdp: fill required login fields
Amiram Perlmutter [Thu, 30 Nov 2006 16:49:41 +0000 (18:49 +0200)]
IB/sdp: fill required login fields

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: poll cq in sendmsg only when sent size is larger than
Amiram Perlmutter [Thu, 16 Nov 2006 13:48:33 +0000 (15:48 +0200)]
IB/sdp: poll cq in sendmsg only when sent size is larger than

threshold to improve small message BW

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fixed compilation error
Amiram Perlmutter [Thu, 16 Nov 2006 09:54:43 +0000 (11:54 +0200)]
IB/sdp: fixed compilation error

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fixed typo in module parameter description
Amiram Perlmutter [Mon, 13 Nov 2006 14:46:29 +0000 (16:46 +0200)]
IB/sdp: fixed typo in module parameter description

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: merge small skbs on receive side into larger ones.
Amiram Perlmutter [Mon, 13 Nov 2006 13:38:22 +0000 (15:38 +0200)]
IB/sdp: merge small skbs on receive side into larger ones.

For now, only do this if both skbs are linear.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: modify buffer use calculation to eliminate credit starvation
Amiram Perlmutter [Mon, 13 Nov 2006 09:43:06 +0000 (11:43 +0200)]
IB/sdp: modify buffer use calculation to eliminate credit starvation

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: handle immediate errors on post_send/post_receive
Michael S. Tsirkin [Sun, 17 Sep 2006 14:22:16 +0000 (17:22 +0300)]
IB/sdp: handle immediate errors on post_send/post_receive

could happen if cma has moved the QP to error asynchronously

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: disable timewait on close if socket has been disconnected
Michael S. Tsirkin [Mon, 11 Sep 2006 13:00:21 +0000 (16:00 +0300)]
IB/sdp: disable timewait on close if socket has been disconnected

State should move to CLOSE or CLOSE_WAIT etc on disconnect.
Since it currently doesn't, do it in sdp_close to avoid timewait.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: emulate completion with error if packet queued after disconnect.
Michael S. Tsirkin [Mon, 11 Sep 2006 05:24:22 +0000 (08:24 +0300)]
IB/sdp: emulate completion with error if packet queued after disconnect.

In TCP packet is sent, and we get RST from the remote. Emulate this in SDP.

9 years agoIB/sdp: add receive buffer size scale factor
Michael S. Tsirkin [Mon, 11 Sep 2006 05:17:22 +0000 (08:17 +0300)]
IB/sdp: add receive buffer size scale factor

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: improve urgent data latency
Amiram Perlmutter [Sun, 10 Sep 2006 07:43:22 +0000 (10:43 +0300)]
IB/sdp: improve urgent data latency

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: fix data corruption on SLES10 (should affect other systems as well).
Michael S. Tsirkin [Mon, 4 Sep 2006 15:18:07 +0000 (18:18 +0300)]
IB/sdp: fix data corruption on SLES10 (should affect other systems as well).

9 years agoIB/sdp: fix a crash when child is disconnected while parent is being destroyed
Michael S. Tsirkin [Mon, 4 Sep 2006 07:58:13 +0000 (10:58 +0300)]
IB/sdp: fix a crash when child is disconnected while parent is being destroyed

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoCMA should check backlog_queue, not accept_queue, since accept_queue could be changed...
Michael S. Tsirkin [Tue, 29 Aug 2006 10:13:11 +0000 (13:13 +0300)]
CMA should check backlog_queue, not accept_queue, since accept_queue could be changed by accept().

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: request notification only if CQ exists.
Michael S. Tsirkin [Sun, 27 Aug 2006 12:28:09 +0000 (15:28 +0300)]
IB/sdp: request notification only if CQ exists.

Further, poll after request for notification, as required by IB spec.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: do not kill the child socket in accept queue
Michael S. Tsirkin [Sun, 27 Aug 2006 09:13:18 +0000 (12:13 +0300)]
IB/sdp: do not kill the child socket in accept queue

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: implement SIOCINQ (FIONREAD)
Michael S. Tsirkin [Thu, 24 Aug 2006 04:55:21 +0000 (07:55 +0300)]
IB/sdp: implement SIOCINQ (FIONREAD)

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: set inet's daddr and dport on active side as part of connect
Amiram Perlmutter [Tue, 22 Aug 2006 15:59:10 +0000 (18:59 +0300)]
IB/sdp: set inet's daddr and dport on active side as part of connect

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: Fix skb truesize calculation for the RX skb
Michael S. Tsirkin [Sun, 20 Aug 2006 15:30:20 +0000 (18:30 +0300)]
IB/sdp: Fix skb truesize calculation for the RX skb

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: increment seq in case of fin
Amiram Perlmutter [Sun, 20 Aug 2006 09:20:14 +0000 (12:20 +0300)]
IB/sdp: increment seq in case of fin

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: do not reset offsets on disconnect
Amiram Perlmutter [Sun, 20 Aug 2006 09:15:17 +0000 (12:15 +0300)]
IB/sdp: do not reset offsets on disconnect

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: Use inet_sk for portability.
Michael S. Tsirkin [Thu, 17 Aug 2006 14:26:00 +0000 (17:26 +0300)]
IB/sdp: Use inet_sk for portability.

9 years agoIB/sdp: fill in source address in inet_sock when it is available
Amiram Perlmutter [Thu, 17 Aug 2006 12:31:56 +0000 (15:31 +0300)]
IB/sdp: fill in source address in inet_sock when it is available

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
(cherry picked from c5858a33c5df475a544ad53c1e629e91cc2eb9f4 commit)

9 years agoIB/sdp: add support for MSG_OOB
Ami Parlmuter [Wed, 16 Aug 2006 13:09:33 +0000 (16:09 +0300)]
IB/sdp: add support for MSG_OOB

Signed-off-by: Amiram Perlmutter <amip@mellanox.co.il>
9 years agoIB/sdp: Add CQ polling, weight configurable globally.
Michael S. Tsirkin [Tue, 8 Aug 2006 05:38:19 +0000 (08:38 +0300)]
IB/sdp: Add CQ polling, weight configurable globally.

9 years agoIB/sdp: Three bugfixes in SDP sockets.
Michael S. Tsirkin [Thu, 3 Aug 2006 09:53:07 +0000 (12:53 +0300)]
IB/sdp: Three bugfixes in SDP sockets.

1. reset socket on cma error
2. move head/tail init to where we init the ring buffers
3. poll to handle DREQ bypassing disconn

9 years agoIB/sdp: remove unused include
Michael S. Tsirkin [Wed, 2 Aug 2006 13:56:55 +0000 (16:56 +0300)]
IB/sdp: remove unused include

9 years agoIB/sdp: Two bugfixes in SDP
Michael S. Tsirkin [Wed, 2 Aug 2006 07:05:59 +0000 (10:05 +0300)]
IB/sdp: Two bugfixes in SDP

1. Do not mark socket as closed on flushed with error events
2. Simplify locking and reduce code duplication for poll code

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
9 years agoIB/sdp: Change PFN_INDEX -> PAGE_INDEX
Michael S. Tsirkin [Thu, 27 Jul 2006 14:37:47 +0000 (17:37 +0300)]
IB/sdp: Change PFN_INDEX -> PAGE_INDEX

9 years agoIB/sdp: Thinko fix: must update nr frags.
Michael S. Tsirkin [Thu, 27 Jul 2006 09:03:43 +0000 (12:03 +0300)]
IB/sdp: Thinko fix: must update nr frags.

9 years agoIB/sdp:Free unused pages.
Michael S. Tsirkin [Tue, 25 Jul 2006 15:37:54 +0000 (18:37 +0300)]
IB/sdp:Free unused pages.

9 years agoIB/sdp: set sport on autobind
Michael S. Tsirkin [Mon, 24 Jul 2006 15:42:57 +0000 (18:42 +0300)]
IB/sdp: set sport on autobind

9 years agoIB/sdp: Use high memory for receive buffers
Michael S. Tsirkin [Mon, 24 Jul 2006 15:40:47 +0000 (18:40 +0300)]
IB/sdp: Use high memory for receive buffers

(reduce low memory pressure on 32 bit systems).

9 years agoIB/sdp: Fix typo in code
Michael S. Tsirkin [Thu, 20 Jul 2006 15:45:08 +0000 (18:45 +0300)]
IB/sdp: Fix typo in code

9 years agoIB/sdp: Implement Nagle algorithm.
Michael S. Tsirkin [Wed, 19 Jul 2006 08:46:11 +0000 (11:46 +0300)]
IB/sdp: Implement Nagle algorithm.

9 years agoIB/sdp:Split data path debug from not
Michael S. Tsirkin [Wed, 19 Jul 2006 11:54:50 +0000 (14:54 +0300)]
IB/sdp:Split data path debug from not

(cherry picked from d7d5948842ab93dca50c0f38c9abf03489829d91 commit)

9 years agoIB/sdp: Fix error handling for case when mr allocation fails
Michael S. Tsirkin [Sun, 16 Jul 2006 11:42:26 +0000 (14:42 +0300)]
IB/sdp: Fix error handling for case when mr allocation fails

9 years agoIB/sdp: Comment out gso_seg initialization.
Michael S. Tsirkin [Mon, 10 Jul 2006 12:58:07 +0000 (15:58 +0300)]
IB/sdp: Comment out gso_seg initialization.

TCP has it but we don't seem to use.
This field name recently changed from tso_seg.

9 years agoIB/sdp: Fix memory leak in SDP
Michael S. Tsirkin [Tue, 4 Jul 2006 07:20:42 +0000 (10:20 +0300)]
IB/sdp: Fix memory leak in SDP

9 years agosdp: Add SDP - lone SDP from SVN 8227
Michael S. Tsirkin [Tue, 27 Jun 2006 09:34:18 +0000 (12:34 +0300)]
sdp: Add SDP - lone SDP from SVN 8227

10 years agoLinux 4.1 v4.1 v4.1test
Linus Torvalds [Mon, 22 Jun 2015 05:05:43 +0000 (22:05 -0700)]
Linux 4.1

10 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Linus Torvalds [Sun, 21 Jun 2015 00:26:01 +0000 (17:26 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending

Pull scsi target fixes from Nicholas Bellinger:
 "Apologies for the late pull request.

  Here are the outstanding target-pending fixes for v4.1 code.

  The series contains three patches from Sagi + Co that address a few
  iser-target issues that have been uncovered during recent testing at
  Mellanox.

  Patch #1 has a v3.16+ stable tag, and #2-3 have v3.10+ stable tags"

* git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
  iser-target: Fix possible use-after-free
  iser-target: release stale iser connections
  iser-target: Fix variable-length response error completion

10 years agoMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
Linus Torvalds [Sat, 20 Jun 2015 20:54:22 +0000 (13:54 -0700)]
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

Pull drm fixes from Dave Airlie:
 "A smattering of fixes,

  mgag200:
      don't accept modes that aren't aligned properly as hw can't do it

  i915:
      two regression fixes

  radeon:
      one query to allow userspace fixes
      one oops fixer for older hw with new options enabled"

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm/radeon: don't probe MST on hw we don't support it on
  drm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query
  drm/mgag200: Reject non-character-cell-aligned mode widths
  Revert "drm/i915: Don't skip request retirement if the active list is empty"
  drm/i915: Always reset vma->ggtt_view.pages cache on unbinding

10 years agoMerge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Fri, 19 Jun 2015 17:36:50 +0000 (07:36 -1000)]
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux

Pull clk fixes from Michael Turquette:
 "Very late clk regression fixes for the ARM-based AT91 platform.

  These went unnoticed by me until recently, hence the late pull
  request"

* tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
  clk: at91: fix h32mx prototype inclusion in pmc header
  clk: at91: trivial: typo in peripheral clock description
  clk: at91: fix PERIPHERAL_MAX_SHIFT definition
  clk: at91: pll: fix input range validity check

10 years agoMerge tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Linus Torvalds [Fri, 19 Jun 2015 17:34:14 +0000 (07:34 -1000)]
Merge tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
 "Nothing looks scary, just a few usual HD-audio regression fixes and
  fixup, in addition to a minor Kconfig dependency fix for the old MIPS
  drivers"

* tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
  ALSA: hda - Fix unused label skip_i915
  ALSA: hda - Fix noisy outputs on Dell XPS13 (2015 model)
  ALSA: mips: let SND_SGI_O2 select SND_PCM
  ALSA: hda - Fix audio crackles on Dell Latitude E7x40
  ALSA: hda - adding a DAC/pin preference map for a HP Envy TS machine

10 years agoMerge branch 'ccf/atmel-fixes-for-4.1' of https://github.com/bbrezillon/linux-at91...
Michael Turquette [Fri, 19 Jun 2015 14:37:14 +0000 (07:37 -0700)]
Merge branch 'ccf/atmel-fixes-for-4.1' of https://github.com/bbrezillon/linux-at91 into clk-fixes

10 years agoclk: at91: fix h32mx prototype inclusion in pmc header
Nicolas Ferre [Thu, 28 May 2015 13:07:21 +0000 (15:07 +0200)]
clk: at91: fix h32mx prototype inclusion in pmc header

Trivial fix that prevents to compile this pmc clock driver if h32mx clock is
present but smd clock isn't.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: bcc5fd49a0fd ("clk: at91: add a driver for the h32mx clock")
Cc: <stable@vger.kernel.org> # 3.18+
10 years agoclk: at91: trivial: typo in peripheral clock description
Nicolas Ferre [Wed, 17 Jun 2015 13:22:51 +0000 (15:22 +0200)]
clk: at91: trivial: typo in peripheral clock description

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
10 years agoclk: at91: fix PERIPHERAL_MAX_SHIFT definition
Boris Brezillon [Thu, 28 May 2015 12:01:08 +0000 (14:01 +0200)]
clk: at91: fix PERIPHERAL_MAX_SHIFT definition

Fix the PERIPHERAL_MAX_SHIFT definition (3 instead of 4) and adapt the
round_rate and set_rate logic accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: "Wu, Songjun" <Songjun.Wu@atmel.com>