linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Griffin <peter.griffin@linaro.org>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com,
	patrice.chotard@st.com, maxime.coquelin@st.com,
	khilman@kernel.org, arnd@arndb.de, olof@lixom.net,
	devicetree@vger.kernel.org, lee.jones@linaro.org
Subject: Re: [PATCH v2 1/3] ARM: STi: Add code to release secondary cores from holding pen.
Date: Tue, 9 Jun 2015 22:37:41 +0100	[thread overview]
Message-ID: <20150609213741.GA25965@griffinp-ThinkPad-X1-Carbon-2nd> (raw)
In-Reply-To: <20150609135935.GE7557@n2100.arm.linux.org.uk>

Hi Russell,

On Tue, 09 Jun 2015, Russell King - ARM Linux wrote:
> On Tue, Jun 09, 2015 at 02:33:42PM +0100, Peter Griffin wrote:
> > Most upstream devs boot STi platform via JTAG which abuses the
> > boot process by setting the PC of secondary cores directly. As
> > a consquence, booting STi platforms via u-boot results in only
> > the primary core being brought up as the code to manage the
> > holding pen is not upstream.
> 
> Looking at the current mainline code:
> 
> static void sti_secondary_init(unsigned int cpu)
> {
>         trace_hardirqs_off();
> 
> Why is this necessary?

After having a dig around, the comment at the top of the file says
this implementation was originally cloned from arch/arm/mach-vexpress/platsmp.c.

After some googling I can see that you submitted this patch
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-December/033678.html
which consolidated this call back in December 2010 from the platform specific
secondary startup code into the common SMP code.

At this time, the STi implementation was being maintained 'out of tree', so
although I can't say for certain, I strongly suspect that this could be why
the call is there, and that when this implementation was submitted in 2013
it was missed during the review process.

> If things aren't correctly setup in generic code,
> please report a bug against the generic code rather than working around
> the problem in platform specific code.  This is the Linux kernel, not
> some closed source project.

100% agree. This is a good example of why upstreaming code is a good idea.

> What bug are you seeing which required the addition of that?

None that I'm aware of, however I'm not the original author or submitter of
the code. I just booted several times with this call removed and everything
appears to work OK.

As I suspect it is due to the implementation being 'out of tree' at the time
of your patch, I will submit another patch which removes this call.

regards,

Peter.

  reply	other threads:[~2015-06-09 21:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09 13:33 [PATCH v2 0/3] Add code to release secondary cores from holding pen Peter Griffin
2015-06-09 13:33 ` [PATCH v2 1/3] ARM: STi: " Peter Griffin
2015-06-09 13:59   ` Russell King - ARM Linux
2015-06-09 21:37     ` Peter Griffin [this message]
2015-07-22  9:17   ` Maxime Coquelin
2015-06-09 13:33 ` [PATCH v2 2/3] ARM: STi: DT: STiH407: Add cpu-release-addr dt property Peter Griffin
2015-07-22  9:11   ` Maxime Coquelin
2015-06-09 13:33 ` [PATCH v2 3/3] ARM: STi: DT: STiH418: " Peter Griffin
2015-07-22  9:12   ` Maxime Coquelin
2015-06-09 15:43 ` [PATCH v2 0/3] Add code to release secondary cores from holding pen Kevin Hilman
2015-06-09 21:50   ` Peter Griffin
2015-06-10  8:03   ` Maxime Coquelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150609213741.GA25965@griffinp-ThinkPad-X1-Carbon-2nd \
    --to=peter.griffin@linaro.org \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=khilman@kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=maxime.coquelin@st.com \
    --cc=olof@lixom.net \
    --cc=patrice.chotard@st.com \
    --cc=srinivas.kandagatla@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).