]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/hns: Optimize MTR level-0 addressing to access huge page
authorXi Wang <wangxi11@huawei.com>
Tue, 30 Jun 2020 14:01:36 +0000 (22:01 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 7 Jul 2020 16:15:10 +0000 (13:15 -0300)
commitcc33b23e1e1cf54bcb9e5c193e3888a3b17a5479
treebf74dc10e2f4f4bb81b8e0b0c1d23cbeb83eff2e
parent5c99274be8864519328aa74bc550ba410095bc1c
RDMA/hns: Optimize MTR level-0 addressing to access huge page

If hns ROCEE is set to level-0 addressing, the length of the entire buffer
can be used as the page size. The driver needn't to split the buffer into
small units because all pages are continuous.

Link: https://lore.kernel.org/r/1593525696-12570-1-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_mr.c