]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/hns: Support SRQ record doorbell
authorYangyang Li <liyangyang20@huawei.com>
Tue, 26 Sep 2023 13:00:26 +0000 (21:00 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 2 Oct 2023 08:47:08 +0000 (11:47 +0300)
commitc9813b0b9992eab01a47ad8d10f0add13f898692
treee09e97292ca45a57782417aa21a5a105948455fe
parent8dc0fd2f5693ab71f84fb16339c483999a909ab0
RDMA/hns: Support SRQ record doorbell

Compared with normal doorbell, using record doorbell can shorten the
process of ringing the doorbell and reduce the latency.

Add a flag HNS_ROCE_CAP_FLAG_SRQ_RECORD_DB to allow FW to
enable/disable SRQ record doorbell.

If the flag above is set, allocate the dma buffer for SRQ record
doorbell and write the buffer address into SRQC during SRQ creation.

For userspace SRQ, add a flag HNS_ROCE_RSP_SRQ_CAP_RECORD_DB to notify
userspace whether the SRQ record doorbell is enabled.

Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20230926130026.583088-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_srq.c
include/uapi/rdma/hns-abi.h