Thread (13 messages) flat view 13 messages, 4 authors, 2014-10-15

[PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288

From: heiko@sntech.de (Heiko Stübner)
Date: 2014-10-14 21:24:04
Also in: lkml

Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson:
Kever,

On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang [off-list ref] 
wrote:
quoted
+       /*
+        * We need to soft reset the cpu when we turn off the cpu power
domain, +        * or else the active processors might be stalled when
the individual +        * processor is powered down.
+        */
+       if (read_cpuid_part_number() != ARM_CPU_PART_CORTEX_A9) {
I haven't done a full review of this patch, but it seems unlikely that
your uses of read_cpuid_part_number() and read_cpuid_part() in this
patch are correct.  You use both functions and in both cases compare
the results to ARM_CPU_PART_CORTEX_A9.
I think read_cpuid_part() would be the correct one, as it does

	read_cpuid_id() & ARM_CPU_PART_MASK

which in turn should mask the correct parts of the cpuid to match against 
ARM_CPU_PART_CORTEX_A9 [0].



[0] http://lxr.free-electrons.com/source/arch/arm/include/asm/cputype.h#L77
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help