Re: [PATCH] Feature: Expose x86 CPU FMS from cpuid module

2024-03-07 Thread Herrenschmidt, Benjamin via Grub-devel
On Wed, 2023-04-12 at 09:40 +, Paterson, Harley via Grub-devel wrote: > This patch exposes an x86 CPU's model, family, and stepping via flag in > the `cpuid` command. > > Invoking `cpuid -f` will set the Grub environment variables > `CPUID_FAMILY`, `CPUID_MODEL`, and `CPUID_STEP` for consumpti

[PATCH] Feature: Expose x86 CPU FMS from cpuid module

2023-04-12 Thread Paterson, Harley via Grub-devel
This patch exposes an x86 CPU's model, family, and stepping via flag in the `cpuid` command. Invoking `cpuid -f` will set the Grub environment variables `CPUID_FAMILY`, `CPUID_MODEL`, and `CPUID_STEP` for consumption by Grub scripts. Accessing the CPU FMS data requires a `cpuid(0x1)` call on both