lkml.org 
[lkml]   [2014]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288
On Tue, Oct 14, 2014 at 11:23:40PM +0200, Heiko Stübner wrote:
> Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson:
> > Kever,
> >
> > On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang <kever.yang@rock-chips.com>
> wrote:
> > > + /*
> > > + * 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].

The clue is the deprecated message. Clearly the original author did not
even build test their code, or if they did, they ignored the warnings.
Either way, that's a fairly worrying issue which raises the question:
how well was this code tested in the first place?

Note that the above quoted if() evaluates to always-false.

--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-10-15 02:01    [W:0.075 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site