From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 982E6207DF0 for ; Thu, 6 Mar 2025 20:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741294229; cv=none; b=TXNBey3R+gYS32k6DNs/WkqLl5TcMbHLzxD0P3g7JA7gM2UzANUFE8I9K+PMeOmoP7YadgfDxyg6u+meN9qpZHEYeRSdsayFCgoRjWyFGKANyJ9X0iMhlx0XJUFmc5+nou8E84oh+tAHKZg9odTktQ4s6y9SNlscXUng/IsrFbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741294229; c=relaxed/simple; bh=lj/zdMUB/zXUQujBEpe+WVR+k7MIDgNioSQiZ0dB4OA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ce30NT2llUTkwWKDfkiodjd3fBpnMhRT0xxc6w9UI6MT7A2M8rYaipqUWRfkiGp0u7xLn1W1HTrb5Hz9jmcG++hU+3m/DJW0W44GnsFJ9ROMUrM0ochnUQkKQo3yqxKGWzQj8lRBjJF7kj7I1ibQygi9tBNHXboqB6MRzUrxbCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fXkSQTm1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Ob8Mhfv6; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fXkSQTm1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Ob8Mhfv6" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741294219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jv+CLkPXJjOH3lPUk/jYdaQez332Q1CoAyi49LlZOUQ=; b=fXkSQTm1A0FbXpilFtJZ9IE5Mu1GDgiGavuGQTVy1JBX3im1pUaKMPGmydkG1kBGgnM+3V prXqKZnF0z5iutY+kIz/6ws8mltObeXM8T5XNM244GDXYM9bzZ2ittuOOIbcxX4GsJOJNi NxMLStlArsnG0lr4uW/t4k/+2LTNpzpul+1iTE2Ot2JgggqYha9Bmac2RauRw4cRc4pJH3 Ba7BpbHew1ChHyQDPFwtkFsKf2JCdrS2D7BugZ1lZY52IKqNdLoMP8S644+QuUVxtY3eE2 ZqpkQbw4Z4LqXErgOCUWuhcdqFdPsg8Ayi5xcEO/55mlVR7DLqZjGx1QpqIw2g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741294219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jv+CLkPXJjOH3lPUk/jYdaQez332Q1CoAyi49LlZOUQ=; b=Ob8Mhfv6GJFOtTS5HCTh0+iYlyjOWGJSYb/B4JyIpP1id2b5sAsSYsr25sTmGwz/1t81Yq kQ6VmxdwOeYiFlBw== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , "H. Peter Anvin" , x86@kernel.org, John Ogness , x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v1 00/12] tools/x86/kcpuid: x86-cpuid-db v2.2 update Date: Thu, 6 Mar 2025 21:49:48 +0100 Message-ID: <20250306205000.227399-1-darwi@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This series updates kcpuid's CSV file from v1.0 to v2.2, as generated by the x86-cpuid-db project. [*] The CSV changes include: * New leaves for Transmeta and Centaur/Zhaoxin. * New bitfields at leaves 0x7, 0x80000001, 0x80000020, and 0x80000021. * A standardized style for all x86 trademarks, registers, opcodes, byte units, hexadecimal digits, and x86 technical terms. More details about the CSV changes are at the actual commit logs. PQ Summary: * Patch 1 is a generic kcpuid bugfix. * Patches 2-4 are preparatory cleanups. * Patches 5-9 add rudimentary x86 vendor detection and filtering to kcpuid, as the CSV file is updated with indices that are exclusive to certain CPU vendors. * Patch 10 updates the CSV file to x86-cpuid-db v2.0. * Patch 11 updates the CSV file to x86-cpuid-db v2.2. Patch 10 and 11 are separate on purpose, to make the CSV commit log diffs more sensible. * Patch 12 puts the whole kcpuid tool under MAINTAINERS' X86 CPUID entry, since changes to the CSV file may require updates to the kcpuid code. I would also like to have myself and the x86-cpuid mailing list CCed for all future kcpuid patches. Thanks! [*] https://gitlab.com/x86-cpuid.org/x86-cpuid-db https://x86-cpuid.org 8<----- Ahmed S. Darwish (12): tools/x86/kcpuid: Fix error handling tools/x86/kcpuid: Remove unused local variable tools/x86/kcpuid: Remove unused global variable tools/x86/kcpuid: Simplify usage() handling tools/x86/kcpuid: Refactor CPUID range handling for future expansion tools/x86/kcpuid: Extend CPUID index mask macro tools/x86/kcpuid: Add rudimentary CPU vendor detection tools/x86/kcpuid: Restrict CPUID scanning to valid vendor ranges tools/x86/kcpuid: Define Transmeta and Centaur index ranges tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.0 tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.2 MAINTAINERS: Include kcpuid under X86 CPUID DATABASE MAINTAINERS | 2 +- tools/arch/x86/kcpuid/cpuid.csv | 787 +++++++++++++++++++------------- tools/arch/x86/kcpuid/kcpuid.c | 257 +++++++---- 3 files changed, 621 insertions(+), 425 deletions(-) base-commit: 7eb172143d5508b4da468ed59ee857c6e5e01da6 -- 2.48.1