Files
android_kernel_xiaomi_sm8450/drivers/infiniband/hw/hfi1
Mike Marciniszyn da9de5f852 IB/hfi1: Close PSM sdma_progress sleep window
The call to sdma_progress() is called outside the wait lock.

In this case, there is a race condition where sdma_progress() can return
false and the sdma_engine can idle.  If that happens, there will be no
more sdma interrupts to cause the wakeup and the user_sdma xmit will hang.

Fix by moving the lock to enclose the sdma_progress() call.

Also, delete busycount. The need for this was removed by:
commit bcad29137a ("IB/hfi1: Serve the most starved iowait entry first")

Cc: <stable@vger.kernel.org>
Fixes: 7724105686 ("IB/hfi1: add driver files")
Reviewed-by: Gary Leshner <Gary.S.Leshner@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-06-11 17:06:45 -03:00
..
2019-04-24 11:48:10 -03:00
2018-05-24 09:39:25 -06:00
2019-04-01 13:27:35 -03:00
2019-05-06 12:57:45 -03:00
2019-01-31 11:36:05 -05:00
2019-02-05 18:07:43 -05:00
2019-04-24 11:31:49 -03:00
2019-04-03 15:28:05 -03:00
2019-02-05 18:07:44 -05:00
2019-03-28 11:03:49 -03:00
2019-01-31 11:37:40 -05:00
2019-01-31 11:37:40 -05:00
2019-01-31 11:36:04 -05:00