From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85580C433F5 for ; Mon, 16 May 2022 22:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v/0CRlFcWF493bXF4up3jMTY1E1Vl9c9wjd+a2huJAo=; b=SaThjF+yXI3dgR qgHBZfw6q7B11kcGidoe+hsTgZ5idhEB1qjS2PdtOhi3HF55Ph0tRzhKKaI8t9ZcIYmMvvHaEZNfw FPRbAz+wAVPPS2q+QhMebmuvOyMD70qjJ4qi1Ybcbt2cnTl25zVazDyIGfg/yVy7VVp0JYkmSBbFJ zYIj52Y5rpPB6sV9QkTvUNJKImckSsNBwJEWZN3DXTPaEtlBPFPhQjwlg+TN4Z/k/v2XVsiGbPUDG lLbtsEY3TBRGBaNDiMfubKcFcj82YvqLCDF/FmBgsgZAdAueJBUuIJEz4yGIHN7M6Ee3IiIlB5/CL EbqeTbcwV4eL5/sVArFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqjWD-00AW1Z-KX; Mon, 16 May 2022 22:48:50 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqjW8-00AVxE-Kr for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 22:48:47 +0000 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 7CE63B81696; Mon, 16 May 2022 22:48:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2776C385AA; Mon, 16 May 2022 22:48:39 +0000 (UTC) Date: Mon, 16 May 2022 23:48:36 +0100 From: Catalin Marinas To: Kefeng Wang Cc: will@kernel.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, hch@infradead.org, arnd@arndb.de Subject: Re: [PATCH v2 5/5] arm64: Add HAVE_IOREMAP_PROT support Message-ID: References: <20220429103225.75121-1-wangkefeng.wang@huawei.com> <20220429103225.75121-6-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220429103225.75121-6-wangkefeng.wang@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_154844_881331_C2EEF876 X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 29, 2022 at 06:32:25PM +0800, Kefeng Wang wrote: > With ioremap_prot() defination from generic ioremap, also move > pte_pgprot() from hugetlbpage.c into pgtable.h, then arm64 could > have HAVE_IOREMAP_PROT, which will enable generic_access_phys() > code. > > Signed-off-by: Kefeng Wang Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7BCDC433EF for ; Mon, 16 May 2022 22:48:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A9866B0074; Mon, 16 May 2022 18:48:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7305B6B0075; Mon, 16 May 2022 18:48:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 621086B0078; Mon, 16 May 2022 18:48:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 556C46B0074 for ; Mon, 16 May 2022 18:48:44 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 35A6A32B3B for ; Mon, 16 May 2022 22:48:44 +0000 (UTC) X-FDA: 79473097368.29.8271F48 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf04.hostedemail.com (Postfix) with ESMTP id 41B0B40020 for ; Mon, 16 May 2022 22:48:31 +0000 (UTC) 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 7CE63B81696; Mon, 16 May 2022 22:48:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2776C385AA; Mon, 16 May 2022 22:48:39 +0000 (UTC) Date: Mon, 16 May 2022 23:48:36 +0100 From: Catalin Marinas To: Kefeng Wang Cc: will@kernel.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, hch@infradead.org, arnd@arndb.de Subject: Re: [PATCH v2 5/5] arm64: Add HAVE_IOREMAP_PROT support Message-ID: References: <20220429103225.75121-1-wangkefeng.wang@huawei.com> <20220429103225.75121-6-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429103225.75121-6-wangkefeng.wang@huawei.com> Authentication-Results: imf04.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf04.hostedemail.com: domain of cmarinas@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=cmarinas@kernel.org X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 41B0B40020 X-Rspam-User: X-Stat-Signature: yofxy37q3wmaxq7oaf4ciqxzwk6un4fw X-HE-Tag: 1652741311-115183 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Apr 29, 2022 at 06:32:25PM +0800, Kefeng Wang wrote: > With ioremap_prot() defination from generic ioremap, also move > pte_pgprot() from hugetlbpage.c into pgtable.h, then arm64 could > have HAVE_IOREMAP_PROT, which will enable generic_access_phys() > code. > > Signed-off-by: Kefeng Wang Acked-by: Catalin Marinas