Page 1 of 2
How to identify the processor.
Posted: Fri May 11, 2018 10:16 pm
by kouhei_nanahara
I'm creating a tool like cpu-z, but I can't determine the processor.
How does CoreTemp determine the processor generation and stepping, model number (e.g. Mobile Intel Core i7 2637m)? I would appreciate it if you could tell me.
thanks.
I tried to identify the CPU by comparing the cache size but it does not work. I would appreciate it if you could teach me how to identify. thanks.
I think that I can compare the frequency and the cache size family and identify it, but can you tell me if there is a good way?
I hope you'll tell me something!

thanks
Re: How to identify the processor.
Posted: Sat May 19, 2018 12:23 am
by The Coolest
It's not trivial to identify a CPU model.
The best way is to use CPUID and the processor NAMESTRING, then parse it however you like for display.
Re: How to identify the processor.
Posted: Sat May 19, 2018 9:49 am
by kouhei_nanahara
If you prefer, could you give me an example of the source code to discriminate?
thanks.
Re: How to identify the processor.
Posted: Sat May 19, 2018 9:54 am
by The Coolest
Not really. There is no reliable way to ID most Intel processors from the last decade+ using frequency cache and other stuff.
Namestring though, is always correct.
Re: How to identify the processor.
Posted: Sat May 19, 2018 10:07 am
by kouhei_nanahara
How does CoreTemp parse the NameString? I hope you'll teach me.

Thanks.
Re: How to identify the processor.
Posted: Sat May 19, 2018 10:23 am
by The Coolest
You can't just go copy pasting from other people's code if you want to learn.
You read the name string, and then manipulate it however you think is right to either display it or build your own string with the model number.
Re: How to identify the processor.
Posted: Sat May 19, 2018 10:29 am
by kouhei_nanahara
I understood. Thank you very much!

Re: How to identify the processor.
Posted: Sat May 26, 2018 9:23 am
by kouhei_nanahara
Finally tell me, I want to get CPU revisions (C0, D1, D2) and so on. Cpu-z saw stepping in. It is also incrementing the revision when the stepping number is incremented.
How do I get the CPU revision?
Thanks.
Re: How to identify the processor.
Posted: Sat May 26, 2018 9:28 am
by The Coolest
From revision guides available on Intel and AMD websites.
Re: How to identify the processor.
Posted: Sat May 26, 2018 9:33 am
by kouhei_nanahara
https://newsroom.intel.com/wp-content/u ... idance.pdf
I read this guide, but it seems that this guide is not. Can you tell me the link?
thanks.
Re: How to identify the processor.
Posted: Sat May 26, 2018 9:57 am
by The Coolest
Intel calls their revision guides 'specification update'.
Re: How to identify the processor.
Posted: Sat May 26, 2018 11:14 am
by kouhei_nanahara
I checked the Sandy Bridge CPU stepping. Sandy Bridge was stepping, and the step ID was 5 and the stepping ID was 6, stepping D1, stepping ID 7, and Stepping D2.
I think there are other stepping, but I could not find it. P.S: I tried reading the guide but did not know.

Can you tell me to get stepping (revision)?
thanks.
Re: How to identify the processor.
Posted: Sat May 26, 2018 11:17 am
by The Coolest
You get the stepping by matching the CPUID signature to the stepping in the spec update documents.
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:03 pm
by kouhei_nanahara
I saw the CPUID signature of Sandy Bridge, but there were D2 stepping and Q0/J1 stepping in the 0x206a7 as well. How do I determine this?
thanks.
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:08 pm
by The Coolest
By core count and/or model number.
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:19 pm
by kouhei_nanahara
Thank you very much for the reply!
I was able to get CPU stepping. For identification of the name of the CPU, for ES products, such as namestring "Genuine Intel (R) CPU 000 @ 2.67 GHz ", you can retrieve names such as "Intel Core i7 920 " . In this case, how do I identify the name of the CPU?
thanks.
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:22 pm
by The Coolest
You can't, obviously. You'll have to think of some way to do it, or just don't put an actual model number.
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:29 pm
by kouhei_nanahara
CoreTemp can be identified with Q15M "Mobile Intel Core i7 26-10QM", but NAMESTRING is "Genuine Intel(R) CPU 0 @ 1.80GHz".
How are you identifying?
Thank you very much!
Edit :
Image is here:
https://blogimg.goo.ne.jp/user_image/62 ... 47808e.jpg
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:47 pm
by The Coolest
It's obviously broken, as there is no such model as 26-10QM. But I do it by checking the default or maximum multiplier + cache + mobile flag and probably some other criteria I can't recall off the top of my head right now.
Re: How to identify the processor.
Posted: Sat May 26, 2018 12:55 pm
by kouhei_nanahara
What is the mobile flag?
In addition to the mobile flag, are there flags such as desktop flag, Xeon flag, etc.?
Also, could you tell us the bit of the flag and the instructions to use, etc? I think I will use RDMSR.
Thanks.
Re: How to identify the processor.
Posted: Sat May 26, 2018 9:37 pm
by kouhei_nanahara
I obtained the Platform ID using the MSR_IA32_PLATFORM_ID of the RDMSR instruction.
There seems to be a mobile flag on the 50th bit of Platform ID.
And I created a code like the following, but my CPU is the Intel Core i7 2637M Even though the flag is 0.
How can I do this?
The code is here:
if ( ((EDX >> 18) & 0x1) == 1 ) {
Processor_Mobile = 1;
}
Thanks.
Re: How to identify the processor.
Posted: Sun May 27, 2018 8:32 am
by kouhei_nanahara
I've got a mobile flag with code like the following.
if ((Platform_ID >= 4) && (Platform_ID <= 7)) {
Processor_Mobile = 1;
}
Also, what should I do to determine K models such as Core i7 2600K or i7 2600? Will CoreTemp use TDP (e.g., MSR_PKG_POWER_SKU_UNIT, MSR_PKG_POWER_SKU) to identify the processor?
Thanks.
Re: How to identify the processor.
Posted: Mon May 28, 2018 7:33 pm
by The Coolest
I use the namestring to determine K models.
Re: How to identify the processor.
Posted: Mon May 28, 2018 9:23 pm
by kouhei_nanahara
CoreTemp use TDP (e.g., MSR_PKG_POWER_SKU_UNIT, MSR_PKG_POWER_SKU) to identify the processor?
Thanks
Re: How to identify the processor.
Posted: Mon May 28, 2018 10:22 pm
by The Coolest
No.