diff options
| author | Yixing Liu <liuyixing1@huawei.com> | 2021-12-06 21:36:52 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-27 09:04:32 +0100 |
| commit | bf5f98355a9e3109426bdc39f94fd22fd9225fc1 (patch) | |
| tree | e5366b4a890c1a51ce6820643b26d49fa23d927b /drivers | |
| parent | 08d7a0495a9fcff94f5ec2e4cde0ce6132c66369 (diff) | |
| download | linux-bf5f98355a9e3109426bdc39f94fd22fd9225fc1.tar.gz linux-bf5f98355a9e3109426bdc39f94fd22fd9225fc1.tar.bz2 linux-bf5f98355a9e3109426bdc39f94fd22fd9225fc1.zip | |
RDMA/hns: Modify the mapping attribute of doorbell to device
commit 39d5534b1302189c809e90641ffae8cbdc42a8fc upstream.
It is more general for ARM device drivers to use the device attribute to
map PCI BAR spaces.
Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
Link: https://lore.kernel.org/r/20211206133652.27476-1-liangwenpeng@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 5e60a2596d2b..456c622d7c5c 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -432,7 +432,7 @@ static int hns_roce_mmap(struct ib_ucontext *context, return -EINVAL; if (vma->vm_pgoff == 0) { - vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); + vma->vm_page_prot = pgprot_device(vma->vm_page_prot); if (io_remap_pfn_range(vma, vma->vm_start, to_hr_ucontext(context)->uar.pfn, PAGE_SIZE, vma->vm_page_prot)) |
