From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01190439F62; Wed, 22 Jul 2026 20:30:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784752241; cv=none; b=DwLz3tLyjT2F/Ydl8H39bFRK03aRdHa3NVyGxzQOPRVqgMsJZtkUTYWl2m6plvtcVDCl9uuM0t4TGiNLyjjPACAUgFfXnWJhVchGX4MJShjKNzR0ldT6bsbUVywsQ7RgsGkR1J1hadQWefucIsDTvCMJOaLVq3BgqRZBb9wI5/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784752241; c=relaxed/simple; bh=HZenVVn2FbCkGx5eN7DH3cc/7/vouTK11eR/A2iTBKg=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=FJEm2ysK2GO0opv8ICzhpdtxC+LkoOS9uTAGHCx7h0D9ZRQ5QR4T6UEbnTzngp19livzvcWpDGk9sC1lZC26ZZ/U4VL/knrnambHrUIwrgofsaWklVcSyxPZTic487HB36gXzaNsgdhoWg3htAFvRyoexm53U1v8A93KSOEguvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=mW/pv4H7; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="mW/pv4H7" Received: from ehlo.thunderbird.net (c-76-133-66-138.hsd1.ca.comcast.net [76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 66MKSjqC1278121 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 22 Jul 2026 13:28:45 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 66MKSjqC1278121 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2026062701; t=1784752128; bh=HZenVVn2FbCkGx5eN7DH3cc/7/vouTK11eR/A2iTBKg=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=mW/pv4H7D68XMTeHNm3fkahmI1TOoQEIJW+FwVE9P9RGRCZMU1yzbf00780LWbIf5 lMWCsDDWgkZ3mQzVdUbc+FUFxB7JHa3IfHG5IbCuO8SZA6RTlV+u0eNfDswjtkOwJJ Y2hRrVSp1jdcROOVerDK5arOVeJfRBuUCw2mWnH5UEIVqM4Sfocn/bTEIR/tUd1smD Zaxm0lLCm7G7q63HYdxg5RWgzqqc51+h+OCNW7g0YR4tmW0S5bxHte7PAw5QRC4Ie0 FNPgy+3wnQSj+WodmlD6kmUH+2AJq2gPFIl3XR7z52JBDBgAbc8SIQ4cGUTO4UriAI ZJk0nTNhjK4sQ== Date: Wed, 22 Jul 2026 13:28:40 -0700 From: "H. Peter Anvin" To: Dave Hansen , Yeoreum Yun CC: Russell King , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Catalin Marinas , Will Deacon , Arnd Bergmann , Andrew Morton , Kairui Song , Qi Zheng , Shakeel Butt , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Johannes Weiner , David Hildenbrand , Michal Hocko , Lorenzo Stoakes , Tianrui Zhao , Bibo Mao , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jonas Bonn , Stefan Kristiansson , Stafford Horne , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-openrisc@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_RFC_v2_14/20=5D_x86=3A_mm=3A_skip_pud_setup?= =?US-ASCII?Q?_when_using_generic_compile-time_folded_pagetable?= User-Agent: K-9 Mail for Android In-Reply-To: <3620750c-54d7-45a0-b067-bc813dd3cd9b@intel.com> References: <20260722-dummy_ptxp3-v2-0-d9e4bad31e0a@arm.com> <20260722-dummy_ptxp3-v2-14-d9e4bad31e0a@arm.com> <0ea931f1-4801-4d32-b6ce-4787a8d3daa9@intel.com> <6f5060a7-0a64-49fc-81a3-ae88729ef794@intel.com> <3620750c-54d7-45a0-b067-bc813dd3cd9b@intel.com> Message-ID: <1064CF47-9371-4D9C-B2AD-1457CA41CDB2@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On July 22, 2026 1:22:04 PM PDT, Dave Hansen wr= ote: >On 7/22/26 13:18, Yeoreum Yun wrote: >> Sorry=2E But do you mean check with cpu_feature_enabled() not with >> boot_cpu_has()? >> IIRC, the boot_cpu_has() doesn't use the DISABLE_MASK_BIT_SET() but >> uses REQUIRED_MASK_BIT_SET() and I don't expect it wouldn't make >> an optimisation to constant check which is contrast to DISABLE_MASK_BIT= _SET()=2E > >Ahh, yes=2E I forgot about that nuance! Moving to cpu_feature_enabled() >would be great! It is supposed to=2E That's the point of the required mask=2E