]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:29:59 +0000 (13:29 +0100)
commit5a824c30df9260db3f266660981965040476aff6
tree277a47c8aae805e8505ae28b164d5f720034216b
parentb32e9f4a7825fc9e995b8e01b5aaa5249d8527b1
RDMA/hns: Fix mapping error of zero-hop WQE buffer

[ Upstream commit 8673a6c2d9e483dfeeef83a1f06f59e05636f4d1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_mr.c