Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3331412iob; Mon, 16 May 2022 19:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrsXzXVSIawoKALtQFXFy1iBM44kKMLLggAU0v2cNs84Foa/IL6k80KMhJsyg6qNuTIvXj X-Received: by 2002:a50:ed16:0:b0:425:f420:e51a with SMTP id j22-20020a50ed16000000b00425f420e51amr16690939eds.23.1652755272329; Mon, 16 May 2022 19:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652755272; cv=none; d=google.com; s=arc-20160816; b=QHwX8hD9pNZkxp8tnJP9uShTCbmNFHMx5zu2Jh5taYr7JxPymGgGgAvIS2YAe8+hXx Xw7UWa0qE3GGK6BwXuoqOooL3M5DST/pwMdJ1SOurqMcJip+UKMaC4UxKRNFOfvpvP3v MvQqnSrmGSSwnlLaYblw6cO2Obc15hszU66sM8EmzT5Mmm9GFfealQ2dLT7gDebu/lnC uoy1KgsbcU+hsMEaypE+wLeM6Lgimhw/MWfY8c8VyBHnxID8vV3Zc14tgkR15pC1K6DK xA9xg2lu7UztzPGPt9wbj17cqSrtTWrVsAfT0R8UEiAB5nNYv1r0Fg6Fc/OeetVZApa4 Lxtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pwHtafVOoGFKriPGnj5a06IBapfzBAPZUDrhoYBS44U=; b=LsQJRa5rcTq2jp1dkZO24kj1JBVKN3jMIF7QoBRca8F942CSNbrTZZXC61qQzywSAn JOE3I8v2TVri+z25wEYrNzYzGdPnntg4UVrIBAtWY2anGhUEn6a/+oAFWPsBxRkRGvEb ZjJjWHr5dawokAWLYrGDJjt8L78l89M1i138iKTTV554uRdRGu5XHw7MznKSG7QBGK6v 5RK9UgbEImvbVzYYYJ5DPneKBcUqMueCWCIaSnkQh6MdhC+d9NgxhdOFt2IUFDwhelW8 dR5QF4F+2erJj/wlo+f+zWib09zfU7I0bTGv/gaQ9LUHhuXosLibL/XQIPnciIgBAzMc au+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd17-20020a056402389100b0042ab4438764si3519244edb.621.2022.05.16.19.40.46; Mon, 16 May 2022 19:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349815AbiEPWtZ (ORCPT + 99 others); Mon, 16 May 2022 18:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349871AbiEPWsv (ORCPT ); Mon, 16 May 2022 18:48:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD6934132F for ; Mon, 16 May 2022 15:48:43 -0700 (PDT) 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 79744B81681 for ; 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> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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