From patchwork Mon Dec 23 02:55:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rik van Riel X-Patchwork-Id: 13918384 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 A1611E77188 for ; Mon, 23 Dec 2024 03:02:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3DACF6B007B; Sun, 22 Dec 2024 22:02:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 362EF6B0083; Sun, 22 Dec 2024 22:02:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 203986B0088; Sun, 22 Dec 2024 22:02:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 011DC6B007B for ; Sun, 22 Dec 2024 22:02:19 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id C294C4614E for ; Mon, 23 Dec 2024 03:02:19 +0000 (UTC) X-FDA: 82924723014.09.DA5C261 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by imf02.hostedemail.com (Postfix) with ESMTP id 7F8FC80018 for ; Mon, 23 Dec 2024 03:01:06 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf02.hostedemail.com: domain of riel@shelob.surriel.com designates 96.67.55.147 as permitted sender) smtp.mailfrom=riel@shelob.surriel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734922921; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vu+np97BEOhzxibTxU5s+5i0frH+GWBwAeJ+kY0b4kg=; b=q5b4tBcQpdq9HP9gxV857NfpFEsqGwhCsxA+Y/slRha+lsGYEEkDXXe8054kfphOqHWIiG K1R30DWRHD0+v0zASeGwwB0PDOy477QCD9RXeQ+mY7GihUD7cfRPGoY7ApfXo+lpci5rXR MAJXVtS/shWV9fPwShfLoZQKVwcVa8o= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf02.hostedemail.com: domain of riel@shelob.surriel.com designates 96.67.55.147 as permitted sender) smtp.mailfrom=riel@shelob.surriel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734922921; a=rsa-sha256; cv=none; b=EbgOD/6bLpL8PL6HqlANjSgaNBnVlFiWIXr0PTddrQHW42XKi8EaxctvANvHUKQ8RKanLn mYjLtkwMeZm4mrLvCpPAhUi/UjrSAGU3Y5WAezllCsSNSPbGlAeDYeF766c1hFW8a6wwEO GvAy8yI+domKogXGzCOPfC4K5Weit0k= Received: from fangorn.home.surriel.com ([10.0.13.7]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1tPYdo-000000001Ih-3IcY; Sun, 22 Dec 2024 21:57:56 -0500 From: Rik van Riel To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, akpm@linux-foundation.org, linux-mm@kvack.org, Rik van Riel Subject: [PATCH 02/11] x86/mm: add X86_FEATURE_INVLPGB definition. Date: Sun, 22 Dec 2024 21:55:08 -0500 Message-ID: <20241223025751.3268975-3-riel@surriel.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241223025751.3268975-1-riel@surriel.com> References: <20241223025751.3268975-1-riel@surriel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 7F8FC80018 X-Stat-Signature: 7rm8pkri81wp6i3y8q6eaxbukzkp9u7x X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1734922866-64185 X-HE-Meta: U2FsdGVkX1/FuK63RA7FnQHXkwuhtcLbTGjxkk5hI67pioQTBrf86I3spIfUI4wdb42rQGUriACkDgqENHO76VXmNXJgGsepe+hjiladm55J+nBqAxWjIBMhSjvPTSRELnvhd3EnAzyIAc9xvEMkTQv85/ASDMJvHGi5i4inA1MSoi766K43u4DnsU+KOG0rdoVi1Uw1H3gLMfjmJiLsVGSg6vFDD3GC0gNgo0rlYuo+YbSccI1bm8S0LwxBMyXd6EHcRu6y6PauYbMywFuXfzcbrJY9WOVICk7YBs0Tpl3EEUf90W36PDfJH7wuGLfF+xbnTMv8LogZi8F7p024V4T1EuGnQg8Ryf0pL0PeUkIHBzLKU769/uW4Nnvi4eMrYc4BTGcpyfiRAtVGnzl3iu/nBvcFBJI/0OISkyHKq+14/ocCOz4Yf2hpRwDFh3SQxR6a3UiRNDtGMufYDKdTcLsUy1ypCBCR/LMChwVY60rsaltkBrLSRH2CNSHXNEDxGvel8KDraDHyMS3Vu7EY2pFp7rzaEibIioFBGD1Z2DYtJ32P6fw1+qry2200OoeO+vdqiSmYhojv3DxRx7LKue+BZl3z8Hv6KmxLru4od2XuVhyCEb7/kctffPjdwkTunTikdjSbHot7bhV+vm1UD8OKkcLoZ/syZjN9qFMXtAnlqIdca2rtPMO3KxR1Y57645B/FvJJ2mk56Vs64nxTqZzb2BjLQuGW/F3/PPMtYAaBtV87P2c30n5w+sSYGvAKya9Af6sAwwq0Wt1+QXWf+bvXGnMdTiZlI/Fgyh5FVkQuM4ysKqzkJPWeeTs0Gj9T3BMPTfrNb+X5csceFuIzu/R5xRmS90G1bIEHYTjPv6NwHrTNMD0qFBBG5fE00h01yg1qZRr+LIpZIcc3bhZSUcsvPes1lmFHN6jRy6uW8VXs2UZ3kAqJPy/PtFVFwrt8Nz4W5IKudm4rPLPaMf+ qrgc/cz2 hbQhusUsD/kyMITKzx3a6mGCtpJ8/08qcLtHUWDtGppLykbvvYHKAd67u08JyufmK58lVa5Z1tdjC5yo9gLysTrajZnkOU4iP3dFXL8acbN0rTK+twT2TBt8fS4IfXb/AAZPCnW5i3+dTc9KY6mrWg1ETIAq8xK899yXJxIY2emrbupvcMOwxXHgYxrOIvbtzlJ/h8AMAfISfniYC9eFudaK+fRh2TqaL77HTkX9a/FYhTlHYhr1ajXtXIE7x0iMwgCQih9L5HLnuUxIklKWfdmHdcobyBL6jbWtRhhANxTzH1o4AelazhopNTZBcDA04+u31xw99BtepBwhSUFXbXlECGYucxNQ04HXkd/c8eBhr7j0= 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: List-Subscribe: List-Unsubscribe: Add the INVPLGB CPUID definition, allowing the kernel to recognize whether the CPU supports the INVLPGB instruction. Signed-off-by: Rik van Riel --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 17b6590748c0..b7209d6c3a5f 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -338,6 +338,7 @@ #define X86_FEATURE_CLZERO (13*32+ 0) /* "clzero" CLZERO instruction */ #define X86_FEATURE_IRPERF (13*32+ 1) /* "irperf" Instructions Retired Count */ #define X86_FEATURE_XSAVEERPTR (13*32+ 2) /* "xsaveerptr" Always save/restore FP error pointers */ +#define X86_FEATURE_INVLPGB (13*32+ 3) /* "invlpgb" INVLPGB instruction */ #define X86_FEATURE_RDPRU (13*32+ 4) /* "rdpru" Read processor register at user level */ #define X86_FEATURE_WBNOINVD (13*32+ 9) /* "wbnoinvd" WBNOINVD instruction */ #define X86_FEATURE_AMD_IBPB (13*32+12) /* Indirect Branch Prediction Barrier */