RDMA/erdma: Notify the latest PI to FW for reflushing when necessary
authorCheng Xu <chengyou@linux.alibaba.com>
Wed, 16 Nov 2022 02:31:07 +0000 (10:31 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Nov 2022 18:58:52 +0000 (14:58 -0400)
commit0edf42cbcc8690ef349d4432fea74d7791e3c645
tree1dc64832ff737cbdbbfbe4cb077d179c48be1001
parent54d8fffc2a500953ba90ff9462ae06bb05ca2354
RDMA/erdma: Notify the latest PI to FW for reflushing when necessary

Firmware is responsible for flushing WRs in HW, and it's a little
difficult for firmware to get the latest PI of QPs, especially for RQs
after QP state being changed to ERROR. So we introduce a new CMDQ command,
by which driver can notify to latest PI to FW, and then FW can flush all
posted WRs.

Link: https://lore.kernel.org/r/20221116023107.82835-4-chengyou@linux.alibaba.com
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/erdma/erdma_qp.c
drivers/infiniband/hw/erdma/erdma_verbs.h