]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/hns: Fix wrong maximum DMA segment size
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 27 Mar 2025 11:47:24 +0000 (19:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:09 +0000 (07:44 +0200)
commitbb93bd4b99207ffe3c6888d55e00bc76ab2bb25b
treeb13def7734df1759f7952653b87384f43303fb44
parent3af43d7282a866cf2facf1d02fd5e9cdcb83d414
RDMA/hns: Fix wrong maximum DMA segment size

[ Upstream commit 9beb2c91fb86e0be70a5833c6730441fa3c9efa8 ]

Set maximum DMA segment size to 2G instead of UINT_MAX due to HW limit.

Fixes: e0477b34d9d1 ("RDMA: Explicitly pass in the dma_device to ib_register_device")
Link: https://patch.msgid.link/r/20250327114724.3454268-3-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_main.c