Skip to content
Snippets Groups Projects
Commit 88586071 authored by Yixing Liu's avatar Yixing Liu Committed by Greg Kroah-Hartman
Browse files

RDMA/hns: Modify the mapping attribute of doorbell to device

commit 39d5534b upstream.

It is more general for ARM device drivers to use the device attribute to
map PCI BAR spaces.

Fixes: 9a443537 ("IB/hns: Add driver files for hns RoCE driver")
Link: https://lore.kernel.org/r/20211206133652.27476-1-liangwenpeng@huawei.com


Signed-off-by: default avatarYixing Liu <liuyixing1@huawei.com>
Signed-off-by: default avatarWenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 57cd8597
No related branches found
No related tags found
2 merge requests!33Integrate changes of 5.10.116 version from ST,!16Upgrade v5.10-ktn branch to latest release 5.10.95
...@@ -359,7 +359,7 @@ static int hns_roce_mmap(struct ib_ucontext *context, ...@@ -359,7 +359,7 @@ static int hns_roce_mmap(struct ib_ucontext *context,
return rdma_user_mmap_io(context, vma, return rdma_user_mmap_io(context, vma,
to_hr_ucontext(context)->uar.pfn, to_hr_ucontext(context)->uar.pfn,
PAGE_SIZE, PAGE_SIZE,
pgprot_noncached(vma->vm_page_prot), pgprot_device(vma->vm_page_prot),
NULL); NULL);
/* vm_pgoff: 1 -- TPTR */ /* vm_pgoff: 1 -- TPTR */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment