staging/rdma/hfi1: Prevent host software lock up
authorVennila Megavannan <vennila.megavannan@intel.com>
Mon, 26 Oct 2015 14:28:30 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:16:54 +0000 (17:16 +0900)
commit25d97dd5a33d79595d1859f01484e51264db8653
treef9bb98f9a228e78ab75e2101ad37623b783fbb9f
parentdc060245a234d7ab1228e25e584208bd9489594c
staging/rdma/hfi1: Prevent host software lock up

If packets stop egressing the hardware link, software can lock up.

Implement a timeout for send context halt recovery.  This patch increases the
timeout for packet egress to 500 us and timer resets to zero if the packet
occupancy changes. Also we bounce the link on time out.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Vennila Megavannan <vennila.megavannan@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/pio.c
drivers/staging/rdma/hfi1/sdma.c