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 B7CFB1C07FC for ; Thu, 28 Nov 2024 22:30: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=1732833030; cv=none; b=b0ntSkFs7W9fWydbmLcnuCwD/y/1Q5HSoqLcAXipjbyemHDuW55E7FEK/9KD8gVUWxQw5N/uzOCUr7tw555fJEWOfnypCrFPWgjoM6nqWs4aN1klWqiCc61TigeUC0iErhbyYxXFV4fvpGF5CBgY0HH6QzClLIE/1PLoc3Mur0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732833030; c=relaxed/simple; bh=V5LqTFj3pTnrJIuI6CTxWEZLd4p1kHg5uq0pBG3OVDQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YZ7U75U7IqFm/KCFqbR8bDVpUlfj1dm4fUd7GqRhN3gla0qDhvsT7pHKJPU3hYO2YQ+OvnKuBqoKkZMvESnklDZzKGic1R1YGYDwpeGkOYU9z8q6vk9YDlszc51DB8hEwPaIfndmo1tjwSqoW/DAmu9meDALUCPBBb/gffKtpzc= 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=q+M35+U4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jy6gEkUA; 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="q+M35+U4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jy6gEkUA" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1732833025; 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=J3sbD5qeCce8Mp51X8QSS0RfPOqLlfs1BVizRklsytE=; b=q+M35+U4IdwpJrvjBo6knTDN6ucuXHJLNCb5O9FNIrUt5e3nYdnJ8aXy53FkhR0Tf7qJTA Q6BxwAi15VrzFFB/kuiPCTbqxeJhvdy4UPivukcQouapQUX7WK6Ynvf4PCDVLGMXhxfF+e e54lVVFpXUFe6vQRGCCn9EcPLxloPj0EPQ7FzM+/A5A/j1KfwZc6Rnc5SKKdtYVk6xIVP1 5/dkUTn7oS848RE0jNOImO5eRj0mjEAnUnTB4q3BFMxb+phRUINI8UVDFDlzaUABkB1A0/ 4RRWLe/H7pkqAoHBOExK5gy8wiaQ78YfLaDSBYRBAn3myVvnphfJYMf4XOlzFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1732833025; 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=J3sbD5qeCce8Mp51X8QSS0RfPOqLlfs1BVizRklsytE=; b=jy6gEkUAVpVHWpMiVVdV3JYtYwQxVHaD/cJA78dxhbNRhYD3ml9DaSxyTj3GKBSM8fzIiy Bg0SQ1yD2d5h9IDg== To: Borislav Petkov , Dave Hansen , "H. Peter Anvin" Cc: Thomas Gleixner , John Ogness , linux-kernel@vger.kernel.org, x86@kernel.org, x86-cpuid@lists.linux.dev, "Ahmed S. Darwish" Subject: [PATCH v1 00/13] tools/x86/kcpuid: Update to x86-cpuid-db v2.0 Date: Thu, 28 Nov 2024 23:29:35 +0100 Message-ID: <20241128222948.579920-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 bitfields CSV file to version v2.0, as generated by the x86-cpuid-db project. Version 2.0 of the CSV file introduces new bitfields for leaves 0x7 and 0x0x80000001. It also introduces new leaves for Transmeta (0x3, 0x80860000 => 0x80860007) and Centaur/Zhaoxin (0xc0000000 => 0xc0000001). Summary: * Patch 1 fixes spdxcheck failures by adding CC0-1.0 to LICENSES/. * Patch 3 is a generic kcpuid error handling bugfix, with patch 2 as its prepraration. Thanks to Remington Brasga for the bug report. * Patches 4-6 are preparatory kcpuid cleanups. * Patches 7-11 introduces rudimentary x86 vendor detection and filtering to kcpuid, as the CSV file will be updated with indices that are exclusive to certain vendors. * Patch 12 updates the CSV file to x86-cpuid-db v2.0. * Patch 13 puts the whole kcpuid tool under MAINTAINERS' X86 CPUID entry since changes to the bitfields CSV may require updates to the kcpuid code (as in this patch queue). I would also like to have both myself and the x86-cpuid mailing list CCed for future kcpuid patches. 8<------- Ahmed S. Darwish (13): LICENSES: Add Creative Commons Zero v1.0 Universal tools/x86/kcpuid: Reorder header includes 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: Prepare for more index ranges tools/x86/kcpuid: Extend index mask macro tools/x86/kcpuid: Add rudimentary vendors detection tools/x86/kcpuid: Scan valid cpuid ranges only tools/x86/kcpuid: Add Transmeta and Centaur ranges tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.0 MAINTAINERS: Include kcpuid under X86 CPUID entry LICENSES/deprecated/CC0-1.0 | 129 +++++++ MAINTAINERS | 2 +- tools/arch/x86/kcpuid/cpuid.csv | 648 +++++++++++++++++++------------- tools/arch/x86/kcpuid/kcpuid.c | 268 +++++++++---- 4 files changed, 697 insertions(+), 350 deletions(-) create mode 100644 LICENSES/deprecated/CC0-1.0 base-commit: adc218676eef25575469234709c2d87185ca223a -- 2.46.2