]> git.baikalelectronics.ru Git - 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)
commit141fd6936bc81711c07dc142de334b914a89eb48
treebf74dc10e2f4f4bb81b8e0b0c1d23cbeb83eff2e
parent978fb8721c3dd53dc6c45cd4d6af21f26c02e999
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