cpufetch icon indicating copy to clipboard operation
cpufetch copied to clipboard

Coffee Lake U misdetected as Kaby Lake

Open philipl opened this issue 3 years ago • 1 comments

Coffee Lake U chips are classified as Kaby Lake in the code. There is a comment saying this came from wikichip, but wiki chip shows it as coffee lake.

https://en.wikichip.org/wiki/intel/microarchitectures/coffee_lake#CPUID

philipl avatar Jul 19 '22 10:07 philipl

Good catch! Should be fixed in 71a9308bed63a64b9e80bc115a0390cac2f8364f.

Dr-Noob avatar Sep 05 '22 08:09 Dr-Noob

So after some time I realized that this isn't as clear as it seems.

I initially classified it as Kaby Lake because wikichip says so:

Core ExtendedFamily Family ExtendedModel Model Stepping
U 0 0x6 0x8 0xE 0xA

but it's true that wikichip also says that this CPUID may also correspond to Coffee Lake U. Then, how can we differentiate between them?

Dr-Noob avatar Jan 06 '23 14:01 Dr-Noob

How strange. Ideally, we'd find someone with a kaby lake chip to check what the actual value is. Would Intel really have shipped them with the same identifier?

philipl avatar Jan 06 '23 17:01 philipl

https://en.wikichip.org/wiki/intel/microarchitectures/kaby_lake says that Kaby Lake Y/U/R are stepping 9. While the page you found specifically for R (https://en.wikichip.org/wiki/intel/cores/kaby_lake_r) says R is stepping 10. It seems more likely that this second page is incorrect than that they actually reused the ID.

philipl avatar Jan 06 '23 17:01 philipl

I noticed this issue because my laptop is a Kaby Lake CPU and it is now being missdetected as Coffee Lake. So I can confirm that the actual stepping value for Kaby Lake is 10, not 9 - so Wikipedia is wrong and wikichip is right.

Maybe there is another way to differentiate even if they have the same CPUID.

Dr-Noob avatar Jan 28 '23 07:01 Dr-Noob

Wikichip page says:

"Kaby Lake R ... serving as a refresh to Kaby Lake U"

"Although those microprocessors are still based on Kaby Lake, Intel has branded them as 8th Generation Core"

So there are only certain Kaby Lake chips (more specifically, Kaby Lake R) that are a "refresh" of Kaby Lake and that Intel marketed them as 8th Gen* but technically they are still Kaby Lake - that's why CPUID is reporting them as 8th Gen rather than 7th Gen.

Sadly, this is actually the second time I see two different chips reporting the same CPUID.

* Kaby Lake are 7th Gen. (e.g., i5-7***) while my Kaby Lake CPU is marketed as 8th Gen (it is i5-8250U).

Dr-Noob avatar Jan 28 '23 07:01 Dr-Noob

I'd say that the last commit should fix this ambiguity - now my i5-8250U is being reported as Kaby Lake again. Can you check if it also works on your end?

Dr-Noob avatar Jan 28 '23 08:01 Dr-Noob

Thanks. I will check next week when I have access to the machine again.

philipl avatar Jan 29 '23 02:01 philipl

Works correctly. My machine is an i5-8259U and is being reported as Coffee Lake.

philipl avatar Feb 09 '23 18:02 philipl

That is some good news. Also, I did some search, and wikichip clearly shows that this is not the only case in which a CPUID identification is shared by two different microarchitectures. But I'll take care of that in another issue - this one is solved now.

Thanks for the help!

Dr-Noob avatar Feb 10 '23 21:02 Dr-Noob