Skip to contentSkip to conversation

microblaze: Add missing PVR version codes

PATCH Applied Erico Nunes 2 participants 2 messages Jan 2, 2015 – Jan 5, 2015 Microblaze architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze: Add missing PVR version codes

PVR version code was missing in the cpu_ver_lookup table for the following
versions: 8.50.b 8.50.c 9.2 9.3

This caused /proc/cpuinfo to display "CPU-Ver: Unknown" for these versions.

This was detected and the patch tested with MicroBlaze version 8.50.c. The other codes were taken from the Xilinx MicroBlaze Processor Reference Guides UG081 (v14.7) and UG984 (v2014.1).

---
 arch/microblaze/kernel/cpu/cpuinfo.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/microblaze/kernel/cpu/cpuinfo.c +4 -0
index 234acad..b60442d 100644
@@ -41,8 +41,12 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
 	{"8.40.a", 0x18},
 	{"8.40.b", 0x19},
 	{"8.50.a", 0x1a},
+	{"8.50.b", 0x1c},
+	{"8.50.c", 0x1e},
 	{"9.0", 0x1b},
 	{"9.1", 0x1d},
+	{"9.2", 0x1f},
+	{"9.3", 0x20},
 	{NULL, 0},
 };
 
Signature · 1 line
2.2.1
Applied
#1 lore raw
Quoted 22 lines · Erico Nunes

PVR version code was missing in the cpu_ver_lookup table for the following
versions: 8.50.b 8.50.c 9.2 9.3

This caused /proc/cpuinfo to display "CPU-Ver: Unknown" for these versions.

This was detected and the patch tested with MicroBlaze version 8.50.c. The other codes were taken from the Xilinx MicroBlaze Processor Reference Guides UG081 (v14.7) and UG984 (v2014.1).

---
 arch/microblaze/kernel/cpu/cpuinfo.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/microblaze/kernel/cpu/cpuinfo.c +0 -0
index 234acad..b60442d 100644
@@ -41,8 +41,12 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
 	{"8.40.a", 0x18},
 	{"8.40.b", 0x19},

arch/microblaze/kernel/cpu/cpuinfo.c const struct cpu_ver_key cpu_ver_lookup[] = { · line 52

Quoted 10 lines
arch/microblaze/kernel/cpu/cpuinfo.c +4 -0
 	{"8.50.a", 0x1a},
+	{"8.50.b", 0x1c},
+	{"8.50.c", 0x1e},
 	{"9.0", 0x1b},
 	{"9.1", 0x1d},
+	{"9.2", 0x1f},
+	{"9.3", 0x20},
 	{NULL, 0},
 };
 

Applied.

Thanks,
Michal