Skip to contentSkip to conversation

x86/cpu: Add Ice Lake NNPI to Intel family

PATCH In review Rajneesh Bhardwaj 4 participants 9 messages Jun 6, 2019 – Jun 14, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/cpu: Add Ice Lake NNPI to Intel family

Add the CPUID model number of Ice Lake Neural Network Processor for Deep Learning Inference (ICL-NNPI) to the Intel family list. Ice Lake NNPI uses model number 0x9D and this will be documented in a future version of Intel Software Development Manual.

Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Kan Liang <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Qiuxu Zhuo <[email protected]>
Cc Srinivas Pandruvada <[email protected]>
Cc Len Brown <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc x86-ml <[email protected]>
Cc Linux PM <[email protected]>

---

Changes in v2:
* Renamed Icelake to Ice Lake in the commit msg

 arch/x86/include/asm/intel-family.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/intel-family.h +1 -0
index 9f15384c504a..087de5d3b93a 100644
@@ -53,6 +53,7 @@
 #define INTEL_FAM6_CANNONLAKE_MOBILE	0x66
 
 #define INTEL_FAM6_ICELAKE_MOBILE	0x7E
+#define INTEL_FAM6_ICELAKE_NNPI		0x9D
 
 /* "Small Core" Processors (Atom) */
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Rajneesh Bhardwaj

Add the CPUID model number of Ice Lake Neural Network Processor for Deep Learning Inference (ICL-NNPI) to the Intel family list. Ice Lake NNPI uses model number 0x9D and this will be documented in a future version of Intel Software Development Manual.

#define INTEL_FAM6_ICELAKE_MOBILE 0x7E
+#define INTEL_FAM6_ICELAKE_NNPI 0x9D

What "I" stands for?

For me sounds like it's redundant here or something like NNP_DLI would be better (because somewhere we have _NP as for Network Processor).

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 6 lines · Andy Shevchenko
Quoted 2 lines

#define INTEL_FAM6_ICELAKE_MOBILE 0x7E
+#define INTEL_FAM6_ICELAKE_NNPI 0x9D

What "I" stands for?

For me sounds like it's redundant here or something like NNP_DLI would be better (because somewhere we have _NP as for Network Processor).

Let's not bikeshed this too much. These things aren't used that widely and mostly they're just used for figuring out the processor generation.
It's exceedingly rare to have something like:

	if (model == INTEL_FAM6_ICELAKE_MOBILE)
		foo();
	else if (model == INTEL_FAM6_ICELAKE_NNPI)
		bar();

where what you suggest would matter.

Preserving the ability to google "ice lake nnpi" is pretty important, so preserving the Intel name makes a lot of sense here when possible.

Do we *HAVE* an Ice Lake network processor?

#3 lore raw
Quoted 18 lines · Dave Hansen
Quoted 6 lines · Andy Shevchenko
Quoted 2 lines

#define INTEL_FAM6_ICELAKE_MOBILE 0x7E
+#define INTEL_FAM6_ICELAKE_NNPI 0x9D

What "I" stands for?

For me sounds like it's redundant here or something like NNP_DLI would be better (because somewhere we have _NP as for Network Processor).

Let's not bikeshed this too much. These things aren't used that widely and mostly they're just used for figuring out the processor generation.
It's exceedingly rare to have something like:

	if (model == INTEL_FAM6_ICELAKE_MOBILE)
		foo();
	else if (model == INTEL_FAM6_ICELAKE_NNPI)
		bar();
Quoted 4 lines

where what you suggest would matter.

Preserving the ability to google "ice lake nnpi" is pretty important, so preserving the Intel name makes a lot of sense here when possible.

What I'm talking is a consistency among suffixes. If there is a real abbreviation (NNPI) which anybody can google, I'm totally for it to be used.

Quoted 1 line

Do we *HAVE* an Ice Lake network processor?

Not Ice Lake, something else.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw
Quoted 2 lines · Andy Shevchenko

What I'm talking is a consistency among suffixes. If there is a real abbreviation (NNPI) which anybody can google,

There is and you can. :)

#5 lore raw
Quoted 5 lines · Dave Hansen
Quoted 2 lines · Andy Shevchenko

What I'm talking is a consistency among suffixes. If there is a real abbreviation (NNPI) which anybody can google,

There is and you can. :)

Good, I have no objections.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#6 lore raw
Quoted 6 lines · Andy Shevchenko
Quoted 4 lines · Dave Hansen
Quoted 2 lines · Andy Shevchenko

What I'm talking is a consistency among suffixes. If there is a real abbreviation (NNPI) which anybody can google,

There is and you can. :)

Good, I have no objections.

Great, thanks Andy and Dave for your valuable comments. I see that Thomas has accepted this one, thanks a lot, Thomas!

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=61caa8621b9979a78b04e353ab2ee44a47ef7a62&anzwix=1

Quoted 1 line
#7 lore raw
In reply to Rajneesh Bhardwaj
x86/cpu: Add Ice Lake NNPI to Intel family
Commit-ID:  61caa8621b9979a78b04e353ab2ee44a47ef7a62
Gitweb:     https://git.kernel.org/tip/61caa8621b9979a78b04e353ab2ee44a47ef7a62
Author:     Rajneesh Bhardwaj <[email protected]>
AuthorDate: Thu, 6 Jun 2019 06:54:19 +0530
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Wed, 12 Jun 2019 11:43:42 +0200

x86/cpu: Add Ice Lake NNPI to Intel family

Add the CPUID model number of Ice Lake Neural Network Processor for Deep Learning Inference (ICL-NNPI) to the Intel family list. Ice Lake NNPI uses model number 0x9D and this will be documented in a future version of Intel Software Development Manual.

---
 arch/x86/include/asm/intel-family.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/intel-family.h +1 -0
index 9f15384c504a..087de5d3b93a 100644
@@ -53,6 +53,7 @@
 #define INTEL_FAM6_CANNONLAKE_MOBILE	0x66
 
 #define INTEL_FAM6_ICELAKE_MOBILE	0x7E
+#define INTEL_FAM6_ICELAKE_NNPI		0x9D
 
 /* "Small Core" Processors (Atom) */
 
#8 lore raw
In reply to Rajneesh Bhardwaj
x86/cpu: Add Ice Lake NNPI to Intel family
Commit-ID:  e32d045cd4ba06b59878323e434bad010e78e658
Gitweb:     https://git.kernel.org/tip/e32d045cd4ba06b59878323e434bad010e78e658
Author:     Rajneesh Bhardwaj <[email protected]>
AuthorDate: Thu, 6 Jun 2019 06:54:19 +0530
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 13 Jun 2019 19:37:42 +0200

x86/cpu: Add Ice Lake NNPI to Intel family

Add the CPUID model number of Ice Lake Neural Network Processor for Deep Learning Inference (ICL-NNPI) to the Intel family list. Ice Lake NNPI uses model number 0x9D and this will be documented in a future version of Intel Software Development Manual.

---
 arch/x86/include/asm/intel-family.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/intel-family.h +1 -0
index 9f15384c504a..087de5d3b93a 100644
@@ -53,6 +53,7 @@
 #define INTEL_FAM6_CANNONLAKE_MOBILE	0x66
 
 #define INTEL_FAM6_ICELAKE_MOBILE	0x7E
+#define INTEL_FAM6_ICELAKE_NNPI		0x9D
 
 /* "Small Core" Processors (Atom) */