Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3600751pxb; Mon, 24 Jan 2022 13:14:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJysyMuAzJ+2jf3kAogzfNjqePLq7n0zGhg/wa6J4JLDzzUkWKvaPFO2+1uRqG85FKROhJY0 X-Received: by 2002:a17:90b:1883:: with SMTP id mn3mr114606pjb.153.1643058846936; Mon, 24 Jan 2022 13:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058846; cv=none; d=google.com; s=arc-20160816; b=pWyO5P2TH09N12YYozhBWrFZOVKfst3mEpSaaR/GhXhxNU3eWvGMXcZOMhy9JD925k SS1EKwrMsQT+MAcbr06dl7PDnwEL+N5n2OplBY3XEQOrNbphMfGIhLHcrcnWwtc5lIn5 bq1fUpNvCod3m22DfjWFkAjr+qk0kTC6TCnMLOhSurcmwdqstOMIwbTsj0J+FWW5Qd8o ptL4BrQY8YdnmOMxsVnifU9VPoU1Y+wOSssTk9ibNwWk357Ch/IDdN1hCg84z8IMTfAK qpcNrSW1fhjzX4ED76pLOOxOcLBJkhXfglsMeeiWoHXc4MdiJ3bZ2K4FM7jeGm8B7fum 2Esw== 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=iBxpYbVNFeELIuKYb0kU7LgImXqkTECtLV3DmWPxZHA=; b=g1p4UACkXeE9qbDROSco/xUKE7yrG6ditg6Wiuqd9cOejMq+1zZTmKU68UvD8B5CGE IppitxBopJhHHPiNt5W5WSA6B8uqvLPOyVfIMAFQEYIf78AU7KlZ7hR/hAvgMS0OI4sq omyNUa0RNTWbrOl3w03Bo0FFaZxd+vjgiXMC0lZNGjyFFg7sPLzK9GEqr69Nas2E3vVC 3OMARftUBgtnb0DhR7bL2NWUYelY3VI42/MXwQ1MOlUCKEM6D2P7WeoNWLigi5bWv8KN s1xVo5h16970VeTcgKQLgqkxbd8kI5E2nlNL2naVzVAV+KWidbD4Sw3G2irLY0ZOO8GA 6tmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NJ2AIF4o; 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 u189si2396179pgd.582.2022.01.24.13.13.53; Mon, 24 Jan 2022 13:14:06 -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=NJ2AIF4o; 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 S1388941AbiAXUkQ (ORCPT + 99 others); Mon, 24 Jan 2022 15:40:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348246AbiAXUTP (ORCPT ); Mon, 24 Jan 2022 15:19:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545D5C07595F; Mon, 24 Jan 2022 11:38:38 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0F692B8122F; Mon, 24 Jan 2022 19:38:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36B99C340E7; Mon, 24 Jan 2022 19:38:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643053115; bh=M9oIfxmAlJKoa8Khik9yGYB1gk0CI7pD+tdr8Mbg2A0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NJ2AIF4oq4sPy+F0jD+7+roKg4PlcJPmUPPhMhvzvHRxx0bMrjrlr8g/pmTMwp2t7 GRkaZ4ytHH6/3QF0AOioUSapQ9RUsvM8R5kHs/sn2OgASz5beQeXErJtJtfirGDqAL xL6yZUc9mrhTRcBoSl1O9EyqFcxjfRtujP3YnR2g= 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.4 282/320] RDMA/hns: Modify the mapping attribute of doorbell to device Date: Mon, 24 Jan 2022 19:44:26 +0100 Message-Id: <20220124184003.567963329@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 @@ -362,7 +362,7 @@ static int hns_roce_mmap(struct ib_ucont return rdma_user_mmap_io(context, vma, to_hr_ucontext(context)->uar.pfn, PAGE_SIZE, - pgprot_noncached(vma->vm_page_prot)); + pgprot_device(vma->vm_page_prot)); /* vm_pgoff: 1 -- TPTR */ case 1: