Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3729621pxb; Mon, 24 Jan 2022 16:32:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2Y0P1Aaxd4LrWBsqB3DpdjD5pcxSeyRwa7Q3djZnaX0tsyiFnQHObUrYkgqeLQi3WIezq X-Received: by 2002:a63:81c8:: with SMTP id t191mr13643042pgd.135.1643070741874; Mon, 24 Jan 2022 16:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643070741; cv=none; d=google.com; s=arc-20160816; b=k1OBZRLV/nVNkSfRN4bWV/TUy1buq6phP2fvSiQZTIqgcRqQKwMEldRIYb8C1CFTmB GsCNME8chylN44+RfkVbgFGIKrEh6Qwnh1LqnFWQ+hpHYPiBhwx5WxSrwlRBW+9WyFbT j9rpoEfnk9M+PX/R7W6Bp0gLRX3MXTp7rB8c+ViYVPXVgVw9MOt0+z6Mt/FSVzQ2hTlv 6tho3bPnh5tRoL6g40B1NZD5f/ZWQyvSH8rVaVE8vmgE/pLswSFMrpxmnEVuscNnP2df 0JZfM0yMiV9eQdwulx9wJOB1Y+0if1WKYXcmfrTKvFcp9LixBF/scV8qhhL2FqDWE6Ik Yh8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sgIDGLPGQPronDI1Sse+EAbkhozdAfpd6bAgxDc5/ew=; b=DZ2buC0q8cBBRn+LklNatxi9zEY7smxTyqAWY/U/Q3RGJzN7DrOhj1QnZLy04YHfx3 84Jk9FTlsqj3B+JsNaTbT0ZRtdL0/DZ+gXc+3FNT5YzQ5cPqNsSgweW+yjQq8KfJQxgw KBwcXGKwc1y3QzgkcAP1e+2cu1BoxA6eHhR+1kRuzqyjbXrA8dEwBpo2Yrc49UbROudp fpFvzPs4MlihNCN1NPC6oafjSBT46YU82U/Wf4FiOtV36NRomvUD0IDvI/8wYCLNzegZ mKH3h+GefJuLXh5f+9qdjgFPbDU25VwIIUmSMJiLx9HGuZetmjVUBg4JfEDQ90/k0K89 nn5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WHW7zCek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si14019346plr.259.2022.01.24.16.32.09; Mon, 24 Jan 2022 16:32:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WHW7zCek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389725AbiAYA3w (ORCPT + 99 others); Mon, 24 Jan 2022 19:29:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2363514AbiAXXop (ORCPT ); Mon, 24 Jan 2022 18:44:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4935C05A19B; Mon, 24 Jan 2022 13:39:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 835F0614DC; Mon, 24 Jan 2022 21:39:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ED46C340E4; Mon, 24 Jan 2022 21:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060369; bh=YlEiyxyqTNYwmSha/fJ9ajhtW4rM+zQ7a+BoGfI6+YY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHW7zCekR8ZIBPgNNZf60JqymO0IIKAM3DCEJAQMTwIGNPVLoVtk4o4uOZaNatWCn ezW6lgbAajHErGRCSICyyr3YwrX17RkWFKjgTDqX2VRTzMle/Y0tbUNEZTai5COETu KmykzZZrzirohQffqVZnRueQbdMK5C6q+0i9FK+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yixing Liu , Wenpeng Liang , Jason Gunthorpe Subject: [PATCH 5.16 0925/1039] RDMA/hns: Modify the mapping attribute of doorbell to device Date: Mon, 24 Jan 2022 19:45:14 +0100 Message-Id: <20220124184156.385374522@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yixing Liu 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 Signed-off-by: Wenpeng Liang Signed-off-by: Jason Gunthorpe Signed-off-by: Greg Kroah-Hartman --- 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);