Files
android_kernel_xiaomi_sm8450/drivers/infiniband/hw/hfi1
Mike Marciniszyn fa8dac3968 IB/hfi1: Fix another case where pq is left on waitlist
The commit noted below fixed a case where a pq is left on the sdma wait
list.

It however missed another case.

user_sdma_send_pkts() has two calls from hfi1_user_sdma_process_request().

If the first one fails as indicated by -EBUSY, the pq will be placed on
the waitlist as by design.

If the second call then succeeds, the pq is still on the waitlist setting
up a race with the interrupt handler if a subsequent request uses a
different SDMA engine

Fix by deleting the first call.

The use of pcount and the intent to send a short burst of packets followed
by the larger balance of packets was never correctly implemented, because
the two calls always send pcount packets no matter what.  A subsequent
patch will correct that issue.

Fixes: 9a293d1e21 ("IB/hfi1: Ensure pq is not left on waitlist")
Link: https://lore.kernel.org/r/20200504130917.175613.43231.stgit@awfm-01.aw.intel.com
Cc: <stable@vger.kernel.org>
Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-05-12 11:47:48 -03:00
..
2019-06-28 22:34:26 -03:00
2019-06-28 22:34:26 -03:00
2018-05-24 09:39:25 -06:00
2020-03-18 19:53:47 -03:00
2020-03-18 19:53:47 -03:00
2020-01-10 10:57:17 -04:00
2019-02-05 18:07:43 -05:00
2019-04-24 11:31:49 -03:00
2019-02-05 18:07:44 -05:00
2020-01-03 19:13:59 -04:00
2019-03-28 11:03:49 -03:00
2019-11-27 07:44:25 +01:00
2019-11-27 07:44:25 +01:00
2019-01-31 11:37:40 -05:00
2019-07-22 16:10:48 -03:00
2019-12-09 10:36:44 -08:00
2019-07-30 14:21:32 -07:00