linux_dsm_epyc7002/drivers/infiniband/hw/cxgb4
Raju Rangoju 11a27e2121 iw_cxgb4: complete the cached SRQ buffers
If TP fetches an SRQ buffer but ends up not using it before the connection
is aborted, then it passes the index of that SRQ buffer to the host in
ABORT_REQ_RSS or ABORT_RPL CPL message.

But, if the srqidx field is zero in the received ABORT_RPL or
ABORT_REQ_RSS CPL, then we need to read the tcb.rq_start field to see if
it really did have an RQE cached. This works around a case where HW does
not include the srqidx in the ABORT_RPL/ABORT_REQ_RSS CPL.

The final value of rq_start is the one present in TCB with the
TF_RX_PDU_OUT bit cleared. So, we need to read the TCB, examine the
TF_RX_PDU_OUT (bit 49 of t_flags) in order to determine if there's a rx
PDU feedback event pending.

Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-02-08 17:02:05 -07:00
..
cm.c iw_cxgb4: complete the cached SRQ buffers 2019-02-08 17:02:05 -07:00
cq.c iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs 2018-09-25 14:37:17 -06:00
device.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
ev.c rdma/cxgb4: Add support for 64Byte cqes 2018-07-13 11:52:55 -06:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h iw_cxgb4: complete the cached SRQ buffers 2019-02-08 17:02:05 -07:00
Kconfig iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency 2018-06-04 09:35:24 -06:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
mem.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
provider.c RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
qp.c Merge branch 'devx-async' into k.o/for-next 2019-01-29 13:49:31 -07:00
resource.c rdma/cxgb4: Add support for kernel mode SRQ's 2018-07-25 21:08:04 -06:00
restrack.c iw_cxgb4: provide detailed driver-specific MR information 2018-05-24 09:39:25 -06:00
t4.h iw_cxgb4: complete the cached SRQ buffers 2019-02-08 17:02:05 -07:00
t4fw_ri_api.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00