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 5CE40C433EF for ; Sat, 14 May 2022 01:42:52 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XCTuv4SDv2S9bmwZMXLRdCQfulfitp9gMxN0pWFCwUU=; b=YbRgSvLWe8VEhA PQh4cza7oL20yEXwSeL33ez52D5CFrFO8c58DRwrt5FyUdC6/myY9KPNmGIhICHM4lgcBTfTzl2lU oiFwY8OL8VFDPKhiYvSvKIBDMrFcY86eYU2UfYOSapn4//cFYsh86QyPUJQCuN0iesmLAknLkm3ms ayE2HcDUOZkambz158EGc4NxYWMTIHZebFUeyf6WfRghCp0q7znXKsH7xYtqavVkdqaKTm/acarz6 L/j0uhVNALNNgz7q9W4td4AxQmdqULd42ApLDlXmBNhyJ4GP3UWEbyCsm8im6IGrHyGu8LBMp3Srp jp82H6aLAHWRKwyA3DsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npgmp-000VK9-EF; Sat, 14 May 2022 01:41:39 +0000 Received: from out199-16.us.a.mail.aliyun.com ([47.90.199.16]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1npgml-000VI7-MZ for linux-arm-kernel@lists.infradead.org; Sat, 14 May 2022 01:41:37 +0000 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R151e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04357; MF=baolin.wang@linux.alibaba.com; NM=1; PH=DS; RN=11; SR=0; TI=SMTPD_---0VD5SDVr_1652492488; Received: from 30.236.14.33(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VD5SDVr_1652492488) by smtp.aliyun-inc.com(127.0.0.1); Sat, 14 May 2022 09:41:29 +0800 Message-ID: <30e805ba-cf4d-c13c-8d34-e1b2d9e77dae@linux.alibaba.com> Date: Sat, 14 May 2022 09:42:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2 1/2] arm64/hugetlb: Use ptep_get() to get the pte value of a huge page To: Anshuman Khandual , catalin.marinas@arm.com, will@kernel.org Cc: mike.kravetz@oracle.com, akpm@linux-foundation.org, songmuchun@bytedance.com, willy@infradead.org, christophe.leroy@csgroup.eu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <88e02de3-c87e-2728-d980-da0e70a58102@arm.com> From: Baolin Wang In-Reply-To: <88e02de3-c87e-2728-d980-da0e70a58102@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_184136_020802_437573E1 X-CRM114-Status: UNSURE ( 9.43 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/13/2022 6:50 PM, Anshuman Khandual wrote: > > > On 5/13/22 09:07, Baolin Wang wrote: >> The original huge_ptep_get() on ARM64 is just a wrapper of ptep_get(), > > Right, as arm64 does not enable __HAVE_ARCH_HUGE_PTEP_GET. > >> which will not take into account any contig-PTEs dirty and access bits. > > As expected being operating on a single table entry. > >> Meanwhile we will implement a new ARM64-specific huge_ptep_get() >> interface in following patch, which will take into account any contig-PTEs >> dirty and access bits. To keep the same efficient logics to get the pte > > s/logics/logic Will fix. > >> value, change to use ptep_get() as a preparation. >> >> Signed-off-by: Baolin Wang >> Reviewed-by: Muchun Song > > LGTM > > Reviewed-by: Anshuman Khandual Thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel