lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.16 0925/1039] RDMA/hns: Modify the mapping attribute of doorbell to device
    Date
    From: Yixing Liu <liuyixing1@huawei.com>

    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>
    ---
    drivers/infiniband/hw/hns/hns_roce_main.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/infiniband/hw/hns/hns_roce_main.c
    +++ b/drivers/infiniband/hw/hns/hns_roce_main.c
    @@ -442,7 +442,7 @@ static int hns_roce_mmap(struct ib_ucont
    prot = vma->vm_page_prot;

    if (entry->mmap_type != HNS_ROCE_MMAP_TYPE_TPTR)
    - prot = pgprot_noncached(prot);
    + prot = pgprot_device(prot);

    ret = rdma_user_mmap_io(uctx, vma, pfn, rdma_entry->npages * PAGE_SIZE,
    prot, rdma_entry);

    \
     
     \ /
      Last update: 2022-01-25 04:10    [W:2.079 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site