Skip to contentSkip to conversation

ARM: exynos: print CPU id on probe

PATCH New Olof Johansson 2 participants 3 messages Nov 25, 2014 – Nov 26, 2014

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

PATCH 1/1 ARM: exynos: print CPU id on probe

It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now.

---

Kukjin, please apply if you're OK with this. Thanks!

-Olof

 arch/arm/plat-samsung/cpu.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/plat-samsung/cpu.c +4 -0
index 360618ee39e5..71333bb61013 100644
@@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void)
 	}
 
 	samsung_cpu_rev = 0;
+
+	pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
 }
 
 void __init s5p_init_cpu(void __iomem *cpuid_addr)
 {
 	samsung_cpu_id = __raw_readl(cpuid_addr);
 	samsung_cpu_rev = samsung_cpu_id & 0xFF;
+
+	pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
 }
Signature · 1 line
2.0.1.473.gc4d58ca
#1 lore raw

PATCH 1/1 ARM: exynos: print CPU id on probe

Quoted 11 lines · Olof Johansson

It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now.

---

Kukjin, please apply if you're OK with this. Thanks!

Yes, why not? I'll apply, I have small concerns for exynos5800 though ;)

Thanks,
Kukjin

Quoted 27 lines
(quoted diff) +0 -1
-Olof
 
 arch/arm/plat-samsung/cpu.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/plat-samsung/cpu.c +4 -1
index 360618ee39e5..71333bb61013 100644
@@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void)
 	}
 
 	samsung_cpu_rev = 0;
+
+	pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
 }
 
 void __init s5p_init_cpu(void __iomem *cpuid_addr)
 {
 	samsung_cpu_id = __raw_readl(cpuid_addr);
 	samsung_cpu_rev = samsung_cpu_id & 0xFF;
+
+	pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id);
 }
--

2.0.1.473.gc4d58ca

#2 lore raw

PATCH 1/1 ARM: exynos: print CPU id on probe

Quoted 7 lines · Kukjin Kim
Quoted 6 lines · Olof Johansson

It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now.

Quoted 6 lines
Quoted 5 lines

---

Kukjin, please apply if you're OK with this. Thanks!

Yes, why not? I'll apply, I have small concerns for exynos5800 though ;)

That it reports identical to 5422? That's hardly our problem. :-)

-Olof