From: Theo Buehler Subject: Re: print intel core type info in dmesg To: David Gwynne Cc: tech@openbsd.org Date: Wed, 23 Jul 2025 09:59:26 +0200 On Wed, Jul 23, 2025 at 05:47:21PM +1000, David Gwynne wrote: > i sent an old version of this around a year or two ago, which devolved > into a discussion around how annoying the repeated cpu info is in dmesg. > that's since been addressed, so i'm trying this out again. > > if an intel cpu provides information about the type of cpu, this adds it > to the topology line in dmesg output. this is particularly interesting > on hybrid systems. That's what this looks like on my x1 nano2. I think it looks nice and it would be helpful for ignorami like me: a year ago I found it quite tedious to stare at the dmesg to figure out which cores are the P and which ones the E cores on this machine. cpu0 at mainbus0: apid 0 (boot processor) cpu0: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.55 MHz, 06-9a-03, patch 00000437 cpu0: cpuid 1 edx=bfebfbff ecx=77fafbff cpu0: cpuid 6 eax=df8ff7 ecx=409 cpu0: cpuid 7.0 ebx=239c27eb ecx=984007ac edx=fc18c410 cpu0: cpuid a vers=5, gp=6, gpwidth=48, ff=3, ffwidth=48 cpu0: cpuid d.1 eax=f cpu0: cpuid 80000001 edx=2c100800 ecx=121 cpu0: cpuid 80000007 edx=100 cpu0: msr 10a=14c8fd6b cpu0: 48KB 64b/line 12-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 10-way L2 cache, 18MB 64b/line 12-way L3 cache cpu0: smt 0, core 0, package 0, performance core mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 38MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.2.0.1.0.1, IBE cpu1 at mainbus0: apid 8 (application processor) cpu1: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.58 MHz, 06-9a-03, patch 00000437 cpu1: smt 0, core 4, package 0, performance core cpu2 at mainbus0: apid 16 (application processor) cpu2: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.57 MHz, 06-9a-03, patch 00000437 cpu2: smt 0, core 8, package 0, performance core cpu3 at mainbus0: apid 24 (application processor) cpu3: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.58 MHz, 06-9a-03, patch 00000437 cpu3: smt 0, core 12, package 0, performance core cpu4 at mainbus0: apid 32 (application processor) cpu4: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.41 MHz, 06-9a-03, patch 00000437 cpu4: 32KB 64b/line 8-way D-cache, 64KB 64b/line 8-way I-cache, 2MB 64b/line 16-way L2 cache, 18MB 64b/line 12-way L3 cache cpu4: smt 0, core 16, package 0, efficiency core cpu5 at mainbus0: apid 34 (application processor) cpu5: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.40 MHz, 06-9a-03, patch 00000437 cpu5: smt 0, core 17, package 0, efficiency core cpu6 at mainbus0: apid 36 (application processor) cpu6: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.40 MHz, 06-9a-03, patch 00000437 cpu6: smt 0, core 18, package 0, efficiency core cpu7 at mainbus0: apid 38 (application processor) cpu7: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.40 MHz, 06-9a-03, patch 00000437 cpu7: smt 0, core 19, package 0, efficiency core cpu8 at mainbus0: apid 40 (application processor) cpu8: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.41 MHz, 06-9a-03, patch 00000437 cpu8: smt 0, core 20, package 0, efficiency core cpu9 at mainbus0: apid 42 (application processor) cpu9: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.40 MHz, 06-9a-03, patch 00000437 cpu9: smt 0, core 21, package 0, efficiency core cpu10 at mainbus0: apid 44 (application processor) cpu10: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.40 MHz, 06-9a-03, patch 00000437 cpu10: smt 0, core 22, package 0, efficiency core cpu11 at mainbus0: apid 46 (application processor) cpu11: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.40 MHz, 06-9a-03, patch 00000437 cpu11: smt 0, core 23, package 0, efficiency core