Skip to contentSkip to conversation

Adding soc related info into /proc/cpuinfo

PATCH Superseded Eduardo Valentin 3 participants 10 messages Apr 26, 2010 – Apr 27, 2010

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Adding soc related info into /proc/cpuinfo

Hello all,

This series is to continue what has been discussed several weeks ago wrt IDCODE patch. Original patch was made by Peter and discussion is here:
http://www.mail-archive.com/[email protected]/msg17553.html

So, the conclusion was that IDCODE info is useful even in production systems, and for that debugfs is not a good choice to export it. One suggestion was to add it under /proc/cpuinfo. However this entry nowadays exports only ARM related information.

So this series does the trick by extending the ARM /proc/cpuinfo to include soc info data. There are a few ways to add a hook for soc specific data. But I've decided to implement it via the simplest way I found. Basically it is same thing which is done for system_rev, system_serial_low and system_serial_high. Then, now we have system_soc_info, which is printed only if there is something useful there.

As usual, comments are welcome.

BR,

Eduardo Valentin (4):
ARM: Introduce SoC Info into /proc/cpuinfo OMAP2,3: Add SoC info data for OMAP2,3
OMAP1: Add SoC info data for OMAP1
OMAP3: PM: export chip IDCODE, Production ID and Die ID

 arch/arm/include/asm/system.h |    2 ++
 arch/arm/kernel/setup.c       |    5 +++++
 arch/arm/mach-omap1/id.c      |   18 ++++++++++++------
 arch/arm/mach-omap2/id.c      |   41 +++++++++++++++++++++++++++++++++++------
 4 files changed, 54 insertions(+), 12 deletions(-)
#1 lore raw

PATCH 1/4 ARM: Introduce SoC Info into /proc/cpuinfo

From: Eduardo Valentin <[email protected]>

This patch extends the ARM /proc/cpuinfo to include soc info data. It is implemented via the same way which is done for system_rev, system_serial_low and system_serial_high. Then, now we have system_soc_info, which is printed only if there is something useful there.

---
 arch/arm/include/asm/system.h |    2 ++
 arch/arm/kernel/setup.c       |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)
arch/arm/include/asm/system.h +2 -0
index 4ace45e..53a9645 100644
@@ -71,6 +71,8 @@ struct task_struct;
 extern unsigned int system_rev;
 extern unsigned int system_serial_low;
 extern unsigned int system_serial_high;
+#define SYSTEM_SOC_INFO_SIZE			128
+extern char system_soc_info[SYSTEM_SOC_INFO_SIZE];
 extern unsigned int mem_fclk_21285;
 
 struct pt_regs;
arch/arm/kernel/setup.c +5 -0
index c91c77b..025d795 100644
@@ -85,6 +85,9 @@ EXPORT_SYMBOL(system_serial_low);
 unsigned int system_serial_high;
 EXPORT_SYMBOL(system_serial_high);
 
+char system_soc_info[SYSTEM_SOC_INFO_SIZE];
+EXPORT_SYMBOL(system_soc_info);
+
 unsigned int elf_hwcap;
 EXPORT_SYMBOL(elf_hwcap);
 
@@ -847,6 +850,8 @@ static int c_show(struct seq_file *m, void *v)
 	seq_printf(m, "Revision\t: %04x\n", system_rev);
 	seq_printf(m, "Serial\t\t: %08x%08x\n",
 		   system_serial_high, system_serial_low);
+	if (strlen(system_soc_info))
+		seq_printf(m, "SoC Info\t: %s\n",  system_soc_info);
 
 	return 0;
 }
Signature · 1 line
1.7.0.4.361.g8b5fe.dirty
#4 lore raw

PATCH 4/4 OMAP3: PM: export chip IDCODE, Production ID and Die ID

In reply to Eduardo Valentin

From: Eduardo Valentin <[email protected]>

This patch exports the OMAP3 IDCODE, Production ID and Die ID to userspace via /proc/cpuinfo using the system_soc_info.

This can be used to track down silicon specific issues. The info is exported via /proc/cpuinfo because then it can be possible to include this in corematic dumps.

This is based on Peter De Schrijver patch, which export same info via sysfs.

---
 arch/arm/mach-omap2/id.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/id.c +20 -0
index 75e36a5..887787d 100644
@@ -76,6 +76,10 @@ EXPORT_SYMBOL(omap_type);
 /*----------------------------------------------------------------------------*/
 
 #define OMAP_TAP_IDCODE		0x0204
+#define OMAP_TAP_PROD_ID_0      0x0208
+#define OMAP_TAP_PROD_ID_1      0x020c
+#define OMAP_TAP_PROD_ID_2      0x0210
+#define OMAP_TAP_PROD_ID_3      0x0214
 #define OMAP_TAP_DIE_ID_0	0x0218
 #define OMAP_TAP_DIE_ID_1	0x021C
 #define OMAP_TAP_DIE_ID_2	0x0220
@@ -306,6 +310,7 @@ void __init omap4_check_revision(void)
 
 void __init omap3_cpuinfo(void)
 {
+	int sz;
 	u8 rev = GET_OMAP_REVISION();
 	char cpu_name[16], cpu_rev[16];
 
@@ -375,6 +380,21 @@ void __init omap3_cpuinfo(void)
 	OMAP3_SHOW_FEATURE(192mhz_clk);
 
 	printk(")\n");
+
+	/* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */
+	sz = strlen(system_soc_info);
+	snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+			"\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n"
+			"\tDie ID\t: %08x %08x %08x %08x\n",
+			read_tap_reg(OMAP_TAP_IDCODE),
+			read_tap_reg(OMAP_TAP_PROD_ID_0),
+			read_tap_reg(OMAP_TAP_PROD_ID_1),
+			read_tap_reg(OMAP_TAP_PROD_ID_2),
+			read_tap_reg(OMAP_TAP_PROD_ID_3),
+			read_tap_reg(OMAP_TAP_DIE_ID_0),
+			read_tap_reg(OMAP_TAP_DIE_ID_1),
+			read_tap_reg(OMAP_TAP_DIE_ID_2),
+			read_tap_reg(OMAP_TAP_DIE_ID_3));
 }
 
 /*
Signature · 1 line
1.7.0.4.361.g8b5fe.dirty
#2 lore raw

PATCH 2/4 mach-omap2: Add SoC info data for OMAP2,3,4 into /proc/cpuinfo

In reply to Eduardo Valentin

From: Eduardo Valentin <[email protected]>

Report OMAP2,3,4 data into system_soc_info. Now we get omap information under /proc/cpuinfo.

---
 arch/arm/mach-omap2/id.c |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)
arch/arm/mach-omap2/id.c +15 -6
index 37b8a1a..75e36a5 100644
@@ -152,10 +152,15 @@ void __init omap24xx_check_revision(void)
 		j = i;
 	}
 
-	pr_info("OMAP%04x", omap_rev() >> 16);
-	if ((omap_rev() >> 8) & 0x0f)
-		pr_info("ES%x", (omap_rev() >> 12) & 0xf);
-	pr_info("\n");
+	snprintf(system_soc_info, SYSTEM_SOC_INFO_SIZE, "OMAP%04x",
+							omap_rev() >> 16);
+	if ((omap_rev() >> 8) & 0x0f) {
+		int sz = strlen(system_soc_info);
+
+		snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+				"ES%x",	(omap_rev() >> 12) & 0xf);
+	}
+	pr_info("%s\n", system_soc_info);
 }
 
 #define OMAP3_CHECK_FEATURE(status,feat)				\
@@ -286,7 +291,9 @@ void __init omap4_check_revision(void)
 	if ((hawkeye == 0xb852) && (rev == 0x0)) {
 		omap_revision = OMAP4430_REV_ES1_0;
 		omap_chip.oc |= CHIP_IS_OMAP4430ES1;
-		pr_info("OMAP%04x %s\n", omap_rev() >> 16, rev_name);
+		snprintf(system_soc_info, SYSTEM_SOC_INFO_SIZE, "OMAP%04x %s\n",
+				omap_rev() >> 16, rev_name);
+		pr_info("%s\n", system_soc_info);
 		return;
 	}
 
@@ -356,7 +363,9 @@ void __init omap3_cpuinfo(void)
 	}
 
 	/* Print verbose information */
-	pr_info("%s ES%s (", cpu_name, cpu_rev);
+	snprintf(system_soc_info, SYSTEM_SOC_INFO_SIZE, "%s ES%s", cpu_name,
+			cpu_rev);
+	pr_info("%s (", system_soc_info);
 
 	OMAP3_SHOW_FEATURE(l2cache);
 	OMAP3_SHOW_FEATURE(iva);
Signature · 1 line
1.7.0.4.361.g8b5fe.dirty
#3 lore raw

PATCH 3/4 mach-omap1: Add SoC info data for OMAP into /proc/cpuinfo1

In reply to Eduardo Valentin

From: Eduardo Valentin <[email protected]>

Report OMAP data into system_soc_info. Now we get omap information under /proc/cpuinfo.

---
 arch/arm/mach-omap1/id.c |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)
arch/arm/mach-omap1/id.c +12 -6
index a0e3560..9622e9f 100644
@@ -194,11 +194,17 @@ void __init omap_check_revision(void)
 		printk(KERN_INFO "Unknown OMAP cpu type: 0x%02x\n", cpu_type);
 	}
 
-	printk(KERN_INFO "OMAP%04x", omap_revision >> 16);
-	if ((omap_revision >> 8) & 0xff)
-		printk(KERN_INFO "%x", (omap_revision >> 8) & 0xff);
-	printk(KERN_INFO " revision %i handled as %02xxx id: %08x%08x\n",
-	       die_rev, omap_revision & 0xff, system_serial_low,
-	       system_serial_high);
+	snprintf(system_soc_info, SYSTEM_SOC_INFO_SIZE, "OMAP%04x",
+							 omap_revision >> 16);
+	if ((omap_revision >> 8) & 0xff) {
+		int sz = strlen(system_soc_info);
+
+		snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+				"%x", (omap_revision >> 8) & 0xff);
+	}
+	pr_info("%s revision %i handled as %02xxx id: %08x%08x\n",
+		system_soc_info, die_rev, omap_revision & 0xff,
+		system_serial_low, system_serial_high);
+
 }
 
Signature · 1 line
1.7.0.4.361.g8b5fe.dirty
#5 lore raw

RE: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID

In reply to Eduardo Valentin
Quoted 57 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Eduardo Valentin
Sent: Monday, April 26, 2010 1:55 PM
To: ext Kevin Hilman; ext Tony Lindgren
Cc: \"De-Schrijver Peter (Nokia-D/Helsinki)\"; Linux-OMAP; Eduardo Valentin
Subject: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID

From: Eduardo Valentin <[email protected]>

This patch exports the OMAP3 IDCODE, Production ID and Die ID to userspace via /proc/cpuinfo using the system_soc_info.

This can be used to track down silicon specific issues. The info is exported via /proc/cpuinfo because then it can be possible to include this in corematic dumps.

This is based on Peter De Schrijver patch, which export same info via sysfs.

---
 arch/arm/mach-omap2/id.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/id.c +11 -0
index 75e36a5..887787d 100644
@@ -76,6 +76,10 @@ EXPORT_SYMBOL(omap_type);
 /*----------------------------------------------------------------------------*/
 
 #define OMAP_TAP_IDCODE		0x0204
+#define OMAP_TAP_PROD_ID_0      0x0208
+#define OMAP_TAP_PROD_ID_1      0x020c
+#define OMAP_TAP_PROD_ID_2      0x0210
+#define OMAP_TAP_PROD_ID_3      0x0214
 #define OMAP_TAP_DIE_ID_0	0x0218
 #define OMAP_TAP_DIE_ID_1	0x021C
 #define OMAP_TAP_DIE_ID_2	0x0220
@@ -306,6 +310,7 @@ void __init omap4_check_revision(void)
 
 void __init omap3_cpuinfo(void)
 {
+	int sz;
 	u8 rev = GET_OMAP_REVISION();
 	char cpu_name[16], cpu_rev[16];
 
@@ -375,6 +380,21 @@ void __init omap3_cpuinfo(void)
 	OMAP3_SHOW_FEATURE(192mhz_clk);
 
 	printk(")\n");
+
+	/* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */
+	sz = strlen(system_soc_info);
+	snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+			"\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n"
+			"\tDie ID\t: %08x %08x %08x %08x\n",

arch/arm/mach-omap2/id.c void __init omap3_cpuinfo(void) · line 398

Quoted 10 lines
arch/arm/mach-omap2/id.c +9 -0
+			read_tap_reg(OMAP_TAP_IDCODE),
+			read_tap_reg(OMAP_TAP_PROD_ID_0),
+			read_tap_reg(OMAP_TAP_PROD_ID_1),
+			read_tap_reg(OMAP_TAP_PROD_ID_2),
+			read_tap_reg(OMAP_TAP_PROD_ID_3),
+			read_tap_reg(OMAP_TAP_DIE_ID_0),
+			read_tap_reg(OMAP_TAP_DIE_ID_1),
+			read_tap_reg(OMAP_TAP_DIE_ID_2),
+			read_tap_reg(OMAP_TAP_DIE_ID_3));
 }

Just a query here.
Since we have already code to decode all above information
And convert it into a meaningful data like , OMAP3430 ES2.0 , OMAP3630 ES1.0 , OMAP4430 ES1.0 etc.

Can we export that itself. Ofcourse with above data also some one can refer TRM and do the decoding.

Quoted 9 lines
arch/arm/mach-omap2/id.c +0 -1
 /*
--

1.7.0.4.361.g8b5fe.dirty

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

RE: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID

Quoted 20 lines
Quoted 5 lines
arch/arm/mach-omap2/id.c +5 -0
+	/* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */
+	sz = strlen(system_soc_info);
+	snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+			"\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n"
+			"\tDie ID\t: %08x %08x %08x %08x\n",

arch/arm/mach-omap2/id.c void __init omap3_cpuinfo(void) · line 398

Quoted 10 lines
arch/arm/mach-omap2/id.c +9 -0
+			read_tap_reg(OMAP_TAP_IDCODE),
+			read_tap_reg(OMAP_TAP_PROD_ID_0),
+			read_tap_reg(OMAP_TAP_PROD_ID_1),
+			read_tap_reg(OMAP_TAP_PROD_ID_2),
+			read_tap_reg(OMAP_TAP_PROD_ID_3),
+			read_tap_reg(OMAP_TAP_DIE_ID_0),
+			read_tap_reg(OMAP_TAP_DIE_ID_1),
+			read_tap_reg(OMAP_TAP_DIE_ID_2),
+			read_tap_reg(OMAP_TAP_DIE_ID_3));
 }

Just a query here.
Since we have already code to decode all above information
And convert it into a meaningful data like , OMAP3430 ES2.0 , OMAP3630 ES1.0 , OMAP4430 ES1.0 etc.

Quoted 3 lines

Can we export that itself. Ofcourse with above data also some one can refer TRM and do the decoding.

Ignore the previous comment since looks like you are already doing that. Regards,
Santosh

maintainer
#7 lore raw

Re: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID

In reply to Eduardo Valentin
Quoted 51 lines · Eduardo Valentin

From: Eduardo Valentin <[email protected]>

This patch exports the OMAP3 IDCODE, Production ID and Die ID to userspace via /proc/cpuinfo using the system_soc_info.

This can be used to track down silicon specific issues. The info is exported via /proc/cpuinfo because then it can be possible to include this in corematic dumps.

This is based on Peter De Schrijver patch, which export same info via sysfs.

---
 arch/arm/mach-omap2/id.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/id.c +13 -0
index 75e36a5..887787d 100644
@@ -76,6 +76,10 @@ EXPORT_SYMBOL(omap_type);
 /*----------------------------------------------------------------------------*/
 
 #define OMAP_TAP_IDCODE		0x0204
+#define OMAP_TAP_PROD_ID_0      0x0208
+#define OMAP_TAP_PROD_ID_1      0x020c
+#define OMAP_TAP_PROD_ID_2      0x0210
+#define OMAP_TAP_PROD_ID_3      0x0214
 #define OMAP_TAP_DIE_ID_0	0x0218
 #define OMAP_TAP_DIE_ID_1	0x021C
 #define OMAP_TAP_DIE_ID_2	0x0220
@@ -306,6 +310,7 @@ void __init omap4_check_revision(void)
 
 void __init omap3_cpuinfo(void)
 {
+	int sz;
 	u8 rev = GET_OMAP_REVISION();
 	char cpu_name[16], cpu_rev[16];
 
@@ -375,6 +380,21 @@ void __init omap3_cpuinfo(void)
 	OMAP3_SHOW_FEATURE(192mhz_clk);
 
 	printk(")\n");
+
+	/* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */
+	sz = strlen(system_soc_info);
+	snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+			"\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n"
+			"\tDie ID\t: %08x %08x %08x %08x\n",
+			read_tap_reg(OMAP_TAP_IDCODE),
+			read_tap_reg(OMAP_TAP_PROD_ID_0),

arch/arm/mach-omap2/id.c void __init omap3_cpuinfo(void) · line 400

Quoted 10 lines
arch/arm/mach-omap2/id.c +7 -0
+			read_tap_reg(OMAP_TAP_PROD_ID_1),
+			read_tap_reg(OMAP_TAP_PROD_ID_2),
+			read_tap_reg(OMAP_TAP_PROD_ID_3),
+			read_tap_reg(OMAP_TAP_DIE_ID_0),
+			read_tap_reg(OMAP_TAP_DIE_ID_1),
+			read_tap_reg(OMAP_TAP_DIE_ID_2),
+			read_tap_reg(OMAP_TAP_DIE_ID_3));
 }
 
 /*

We should not expose the Die ID info unless specifically compiled in with some Kconfig option. Please search for "pentium serial number privacy" or similar.

Also, this whole series should be discussed on linux-arm-kernel.

Tony

#8 lore raw

Re: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID

Hello Tony,

Quoted 61 lines · ext Tony Lindgren
Quoted 60 lines · Eduardo Valentin

From: Eduardo Valentin <[email protected]>

This patch exports the OMAP3 IDCODE, Production ID and Die ID to userspace via /proc/cpuinfo using the system_soc_info.

This can be used to track down silicon specific issues. The info is exported via /proc/cpuinfo because then it can be possible to include this in corematic dumps.

This is based on Peter De Schrijver patch, which export same info via sysfs.

---
 arch/arm/mach-omap2/id.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/id.c +20 -0
index 75e36a5..887787d 100644
@@ -76,6 +76,10 @@ EXPORT_SYMBOL(omap_type);
 /*----------------------------------------------------------------------------*/
 
 #define OMAP_TAP_IDCODE		0x0204
+#define OMAP_TAP_PROD_ID_0      0x0208
+#define OMAP_TAP_PROD_ID_1      0x020c
+#define OMAP_TAP_PROD_ID_2      0x0210
+#define OMAP_TAP_PROD_ID_3      0x0214
 #define OMAP_TAP_DIE_ID_0	0x0218
 #define OMAP_TAP_DIE_ID_1	0x021C
 #define OMAP_TAP_DIE_ID_2	0x0220
@@ -306,6 +310,7 @@ void __init omap4_check_revision(void)
 
 void __init omap3_cpuinfo(void)
 {
+	int sz;
 	u8 rev = GET_OMAP_REVISION();
 	char cpu_name[16], cpu_rev[16];
 
@@ -375,6 +380,21 @@ void __init omap3_cpuinfo(void)
 	OMAP3_SHOW_FEATURE(192mhz_clk);
 
 	printk(")\n");
+
+	/* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */
+	sz = strlen(system_soc_info);
+	snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+			"\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n"
+			"\tDie ID\t: %08x %08x %08x %08x\n",
+			read_tap_reg(OMAP_TAP_IDCODE),
+			read_tap_reg(OMAP_TAP_PROD_ID_0),
+			read_tap_reg(OMAP_TAP_PROD_ID_1),
+			read_tap_reg(OMAP_TAP_PROD_ID_2),
+			read_tap_reg(OMAP_TAP_PROD_ID_3),
+			read_tap_reg(OMAP_TAP_DIE_ID_0),
+			read_tap_reg(OMAP_TAP_DIE_ID_1),
+			read_tap_reg(OMAP_TAP_DIE_ID_2),
+			read_tap_reg(OMAP_TAP_DIE_ID_3));
 }
 
Quoted 5 lines

arch/arm/mach-omap2/id.c void __init omap3_cpuinfo(void) · line 400

Quoted 1 line
arch/arm/mach-omap2/id.c +0 -0
 /*

We should not expose the Die ID info unless specifically compiled in with some Kconfig option. Please search for "pentium serial number privacy" or similar.

Yeah, I remember now that you actually have already asked to do it. I'll repost this series again with this change. It will couple with the same protection mechanism there is for x86 pn. it is not a compilation config, but a kernel parameter:

static int __init x86_serial_nr_setup(char *s)

{
	disable_x86_serial_nr = 0;
	return 1;
}

__setup("serialnumber", x86_serial_nr_setup);

Quoted 2 lines

Also, this whole series should be discussed on linux-arm-kernel.

Yeah, will post v2 there as well,

Quoted 2 lines

Tony

maintainer
#9 lore raw

Re: [PATCH 4/4] OMAP3: PM: export chip IDCODE, Production ID and Die ID

Quoted 33 lines · Eduardo Valentin

Hello Tony,

Quoted 18 lines · ext Tony Lindgren
Quoted 17 lines · Eduardo Valentin
arch/arm/mach-omap2/id.c +15 -0
+
+	/* Append OMAP3 IDCODE, Production ID and Die ID to system_soc_info */
+	sz = strlen(system_soc_info);
+	snprintf(system_soc_info + sz, SYSTEM_SOC_INFO_SIZE - sz,
+			"\n\tIDCODE\t: %08x\n\tPr. ID\t: %08x %08x %08x %08x\n"
+			"\tDie ID\t: %08x %08x %08x %08x\n",
+			read_tap_reg(OMAP_TAP_IDCODE),
+			read_tap_reg(OMAP_TAP_PROD_ID_0),
+			read_tap_reg(OMAP_TAP_PROD_ID_1),
+			read_tap_reg(OMAP_TAP_PROD_ID_2),
+			read_tap_reg(OMAP_TAP_PROD_ID_3),
+			read_tap_reg(OMAP_TAP_DIE_ID_0),
+			read_tap_reg(OMAP_TAP_DIE_ID_1),
+			read_tap_reg(OMAP_TAP_DIE_ID_2),
+			read_tap_reg(OMAP_TAP_DIE_ID_3));
 }
Quoted 5 lines
Quoted 1 line

/*

We should not expose the Die ID info unless specifically compiled in with some Kconfig option. Please search for "pentium serial number privacy" or similar.

Yeah, I remember now that you actually have already asked to do it. I'll repost this series again with this change. It will couple with the same protection mechanism there is for x86 pn. it is not a compilation config, but a kernel parameter:

Quoted 6 lines

static int __init x86_serial_nr_setup(char *s)

{
	disable_x86_serial_nr = 0;
	return 1;
}

__setup("serialnumber", x86_serial_nr_setup);

Sounds good to me.

Tony