Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3564028pxb; Mon, 24 Jan 2022 12:18:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7TJLDESDJ4Bj5USZJP06adjhRsjR0iC6ht8jCnxhw70ULXYiBgtcPLMgQRTN5KBFCEsR1 X-Received: by 2002:a05:6a00:17a4:b0:4c9:a178:22f8 with SMTP id s36-20020a056a0017a400b004c9a17822f8mr5036580pfg.0.1643055437311; Mon, 24 Jan 2022 12:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055437; cv=none; d=google.com; s=arc-20160816; b=hWDbPf6ng02xwFB6fKBNuDzSAJhHghOTGmhP2fkDjyPxmS5gYyiTIrvRzDQq5tmdET XqTd8QaL2hi+T1HzHixfEFtbFi8J788IVfCs1a80/eyxuum9NdsTNo3i2i/W2mI41IO3 yTec4odryVS8sENPpy54KKxayiGBgL60mC/rS4iXfckWRfjrhsjAp8QhLjQiYQCl+ww6 iSLNMaHAx8w5zjUu44/SSrdif7KxvLC+LUSwLO3DVAeXws1F3xb+suvGR8+CaZWLC9iv 3NSxis83gn/W5Py2xL7XF0M8g+cgRkmKK2ZZQ4dP4kpwdvbqPpLAvz/4JpYPoqEeNeZC N2KQ== 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=ONcA1wFWmEe+w1xoyyW/fuLtUdNEkIhgF03yKIQmV00=; b=A+a8k5COBgXj/XQh0UwUl8ovDxPbrGy5CCINfSUj8O7dEYSKudVDSkx3/pKSRk7YxV NpgwDlGaP5uV/XCFq9lyKdmvGKXKBtgjDkTd3fiDfqNGs7c8zRmCcczHT1+4vyD9VpB+ HCDJscYPF+eQLoyjMDmzcWuwBURfaZrQDeMKKqY9mhsevrsPzlfNnYGZ74HT4RYRAulC vetJh2jeBnxIg5lEu0y0A5cOwXyBzZOAa3VD4ViVfmrOU2MPrG2Op/ALpZNzG8DlH4Qm EJnGT3Ih2GoGtzQZX6oZlCDzTupIBJs0BWHCkjHfUdrKSQwH/dIC9390/rScdTWSvlNr SmcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UvANOJRi; 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 k6si15561679pgs.247.2022.01.24.12.17.04; Mon, 24 Jan 2022 12:17:17 -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=UvANOJRi; 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 S1348687AbiAXTTb (ORCPT + 99 others); Mon, 24 Jan 2022 14:19:31 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:37040 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347480AbiAXTKg (ORCPT ); Mon, 24 Jan 2022 14:10:36 -0500 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 3CBA1B8121C; Mon, 24 Jan 2022 19:10:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67D68C340E5; Mon, 24 Jan 2022 19:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051434; bh=bhP8cYmcF+oa1LaEN1EYwyqQkc2Wenjwi4rB4DKehC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UvANOJRingdiHjjywDkjJtUivzT/gB0Qt9dVHz2qWgvnwwBYn0HM/B0wdYj/y2Rn7 ThNxCvNCFLQ44Tgnj1472pnL0Zroblvc/RPVGZbyQnNACjOCvVIC2DHTrIq7S77MLN NojF7TvJJvMi11KacYf0RXMoqw6rxgcc0BDfLYp8= 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 4.14 161/186] RDMA/hns: Modify the mapping attribute of doorbell to device Date: Mon, 24 Jan 2022 19:43:56 +0100 Message-Id: <20220124183942.275906961@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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 @@ -377,7 +377,7 @@ static int hns_roce_mmap(struct ib_ucont 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))