From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 8F97617F4F2 for ; Fri, 10 Jan 2025 20:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736541292; cv=none; b=YL2O40ZELAZdZyCRhcZUMAIB7cvGqarJK1zLO/Uf3+PSvRt6GWptPrqVnZFOmS8vVEfSxTFd+Pc15JtxJ+ytWyH6K4sF08+CO8aumUDXiYmYLj5Dy2EerbbLcTBFIXhh0XAtUvUus9tH7zW9xiH39dHhLYuvvUbzWVIiwd9mfKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736541292; c=relaxed/simple; bh=+0V6dklRl7hYSMmE7WrCcTDNwiAzmKr0UXT12MWR9lA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FHOv4NYwJ/Odk+PjmSvmNm7n186fP6hB8q2jyAXoKS7yjIhgJpPIAzoX0oBtk8o+otfVs+e8L71/3794C/RQefKTCUI5deqdu8829RyPW+uAtWeXHUJMkSbHKnF+z2ZYUUcI5vCXpk8naUMtw/yPNUinrRw1JKgJ9K97kGUgvE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=J8ic6/Bd; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="J8ic6/Bd" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 2133840E02C1; Fri, 10 Jan 2025 20:34:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xO-BrtjKeasc; Fri, 10 Jan 2025 20:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1736541282; bh=u7i3NQ/s7AMwVbdyQc8voQ7Xuei4+KotkjV1bO4fQsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J8ic6/Bd0tlegM4zHZZcbpHE0XiwmJJOlwWQ+BTwJEqGvrGpdyXvBDiujUF6PERXX 9QikNGM9mSNwGzvK+GqddE86EzgfPEDNuqK6CFvijybHY381AUHY2pBjJmc4BLLQ2D u4rfPnbfYqDGvxuD9ax0XoQVDIp/TMRVcVsYnFgfhA0z9T9Uh4fz/6cbSLNUXHhwGa phjt6PvVK01Xq3vo8IfQSCnolItvovnH6NKpiM56ZNJfcLSrhUHqSn7RJgRdYvQH4a 7ZmKXommZKiCKrvgqaV/8s4KtXuvTL+EcZC+PuG2UApKvYgHMfOvppsOJsZeqdrp6a /pqpCcvSFaUznc/GPnK6zmBh+FHyNWZr3mG8RLCAm0K3aC3DMFlBtbw7HPG60JbKeD 1G/G8VYHk97ZEaUBzgMtg71u9y9g14CavZvTzts1RcKD12P/LatGFdPpQXf+9nagUP 6QoY+YfmAYB5yJrjTDV6qSOfdgST6HroKa6hh7g196rkxAp9CHoXDcj1idp2IqZRl/ tOmRmtxrXmhS6v8SDBFnz2lvalZ7JLh2dihMnC6YdXvBKCP/njP/9YSRiSfj62LT7s hE0tvHIrnutGAG/6fcRSvh+ssgCrpTr6nYvcHfB7d5q4rZ3Wvw7ECaWARgVxPlT/wP Tjtoigafi5N63u5arJs4ICUQ= Received: from zn.tnic (p200300ea971f9337329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971f:9337:329c:23ff:fea6:a903]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4A15840E02C0; Fri, 10 Jan 2025 20:34:27 +0000 (UTC) Date: Fri, 10 Jan 2025 21:34:20 +0100 From: Borislav Petkov To: Rik van Riel Cc: Tom Lendacky , x86@kernel.org, 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, hpa@zytor.com, akpm@linux-foundation.org, nadav.amit@gmail.com, zhengqi.arch@bytedance.com, linux-mm@kvack.org Subject: Re: [PATCH 04/12] x86/mm: get INVLPGB count max from CPUID Message-ID: <20250110203420.GGZ4GETAo2HPUKaPgH@fat_crate.local> References: <20241230175550.4046587-1-riel@surriel.com> <20241230175550.4046587-5-riel@surriel.com> <3bf6f37a386ef8afeefee54202283023c0581f58.camel@surriel.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-Disposition: inline In-Reply-To: <3bf6f37a386ef8afeefee54202283023c0581f58.camel@surriel.com> On Fri, Jan 10, 2025 at 03:27:37PM -0500, Rik van Riel wrote: > I don't see X86_FEATURE_TLBI defined in the tip > tree. Which CPUID bit does that need to be? It should be added as: #define X86_FEATURE_INVLPGB (13*32+ 3) /* INVLPGB and TLBSYNC instruction supported. */ in arch/x86/include/asm/cpufeatures.h -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette