Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3555386pxb; Mon, 24 Jan 2022 12:07:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbWlq9nzOmuk1JhorJc7HPuUwUq9JGE84KiIAbeyD9EfoZgInt8cUGFwVSinYRUEc2+qu2 X-Received: by 2002:a63:2a44:: with SMTP id q65mr12767637pgq.479.1643054841681; Mon, 24 Jan 2022 12:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054841; cv=none; d=google.com; s=arc-20160816; b=Q2o9yxDlFC0gYc2wUM5dsZCUmYgm2UXqHvryN6HO/ZLxvebpw8tYlZfXBgNhqzKeM1 b7zbePO/T7EYN02Vs+Jyjc8a9gIPAucy6LYwvOJePY36xOo4oHGgimHr7JWoTIWi6Eyx y4EDkOjd7fLKm5Uu/IyYNZS5reHJePAoAllD4NbKnyKYyCcmMAPC/KVJyF6kf5xWQ3x3 SssSkS+YgHd07GYZW1okPLbUbitx2luiyVGp3rGroeWfP0B0r2DAg/b24Kff3ArjmaNL YsevqJxJUmClDlttnh3YiUK5qtc79Er6xf0M1SVajx/o5oNkTpl5WbcSLFvxsCAvFKV/ DqIA== 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=iK0Ea7hWKx+TaJrfCNBerwPOzfolyPBiNFxOaZOO1CM=; b=lys5DKHy+jDykuF7Rs5z39HCAX9K6c5cZ2WXWh7Si22Ew376HHv/uzbX90Vd7kimes LbFzDJjbqA7fCCsosep3JNDqw39CSO934cNwI69StcUxsj3e02ViY1ivJM9O7vX1MLUq uLaDC/kllGTd72bHPz3J9U+/sTMiawlLAspbF38l/PmxI3XB/o015cKlMki3+3pqL/XY aPq/CIQsTvylduZT+owNZ5uS8iIpbb5LIrYQ/7NOIc7M/S3tPwECtkfLROR1bnJuxsxL jVpViNQlzPOaFStz9ipCXdWglvES1NryRioMJfWMauMmHSjtrObPK3eblgI0vVQsMdMq ALwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TlGhDn4E; 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 z13si5529056pfj.269.2022.01.24.12.07.09; Mon, 24 Jan 2022 12:07: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=TlGhDn4E; 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 S245463AbiAXTFf (ORCPT + 99 others); Mon, 24 Jan 2022 14:05:35 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:57612 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345594AbiAXTAi (ORCPT ); Mon, 24 Jan 2022 14:00:38 -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 2F04FB8122C; Mon, 24 Jan 2022 19:00:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E4CDC340E5; Mon, 24 Jan 2022 19:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050835; bh=PgUbgX6ANUFRXQ8ngiqtS0bdZs9c8PBcaUhoUtYw8X4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TlGhDn4EMAUbnZTfbDAdkt9c4h1qJRofCXvjgYQq96TYIptJoJtWOsDf+Z7V0mbV+ KQkWBlXTPybIo9SlMxlwio73zG2XyH5AAsVxwOcmAYqpwbCuaUjKq2gdQ/CRd08o4h iPRWL8sXxGXsW6B8nhXhtjmJVDRtR9RDCRCyJ/Ug= 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.9 128/157] RDMA/hns: Modify the mapping attribute of doorbell to device Date: Mon, 24 Jan 2022 19:43:38 +0100 Message-Id: <20220124183936.838628466@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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 @@ -556,7 +556,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))