]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/hns: Fix mapping error of zero-hop WQE buffer
authorwenglianfa <wenglianfa@huawei.com>
Fri, 20 Dec 2024 05:52:46 +0000 (13:52 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 23 Dec 2024 14:58:30 +0000 (09:58 -0500)
commit8673a6c2d9e483dfeeef83a1f06f59e05636f4d1
tree375e06f328ddbc28cb24664865a9dbe1b1931fef
parent9272cba0ded71b5a2084da3004ec7806b8cb7fd2
RDMA/hns: Fix mapping error of zero-hop WQE buffer

Due to HW limitation, the three region of WQE buffer must be mapped
and set to HW in a fixed order: SQ buffer, SGE buffer, and RQ buffer.

Currently when one region is zero-hop while the other two are not,
the zero-hop region will not be mapped. This violate the limitation
above and leads to address error.

Fixes: 38389eaa4db1 ("RDMA/hns: Add mtr support for mixed multihop addressing")
Signed-off-by: wenglianfa <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20241220055249.146943-2-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_mr.c