linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 5/5] arm64: qcom: add cpu operations
Date: Wed, 15 Apr 2015 15:46:32 +0100	[thread overview]
Message-ID: <20150415144630.GA22741@localhost> (raw)
In-Reply-To: <2167031.4Enm47D6vo@wuerfel>

On Tue, Apr 14, 2015 at 10:51:40PM +0200, Arnd Bergmann wrote:
> On Tuesday 14 April 2015 17:29:53 Mark Rutland wrote:
> > > +static int msm_cpu_boot(unsigned int cpu)
> > > +{
> > > +       int ret = 0;
> > > +
> > > +       if (per_cpu(cold_boot_done, cpu) == false) {
> > > +               ret = msm_unclamp_secondary_arm_cpu(cpu);
> > > +               if (ret)
> > > +                       return ret;
> > > +               per_cpu(cold_boot_done, cpu) = true;
> > > +       }
> > > +       return secondary_pen_release(cpu);
> > > +}
> > 
> > Ah, so cold_boot_done is for pseudo-hotplug. Absolute NAK to that.
> > 
> > The only thing this gives you over spin-table is one-time powering up of
> > the CPUs that can be performed prior to entry to Linux. If you do that,
> > you can trivially share the spin-table code by setting each CPU's
> > enable-method to "spin-table".
> > 
> > That won't give you cpuidle or actual hotplug. For those you'll need
> > PSCI.
> 
> Maybe a way out for the broken firmware is to have a custom boot wrapper
> that gets distributed separately and that uses the normal spin-table
> API. We've done similar things on arch/arm/mach-sunxi for boot loaders
> that are just too different from what we expect.

As a starting point, we actually have one that can do both spin table
and PSCI ;) (three-clause BSD license):

git://git.kernel.org/pub/scm/linux/kernel/git/mark/boot-wrapper-aarch64.git

Its primary goal is to create an ELF file that can be loaded on a
software model but there isn't anything that prevents you from
generating a kernel Image-like header.

-- 
Catalin

  reply	other threads:[~2015-04-15 14:46 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 17:37 [RFC PATCH 0/5] Add smp booting support for Qualcomm ARMv8 SoCs Kumar Gala
2015-04-09 17:37 ` [RFC PATCH 1/5] firmware: qcom: scm: Split out 32-bit specific SCM code Kumar Gala
2015-04-09 17:37 ` [RFC PATCH 2/5] firmware: qcom: scm: Add support for ARM64 SoCs Kumar Gala
2015-04-09 17:37 ` [RFC PATCH 3/5] arm64: introduce CPU_OF_TABLES for cpu ops selection Kumar Gala
2015-04-09 21:17   ` Arnd Bergmann
2015-04-14 15:52     ` Mark Rutland
2015-04-10 10:28   ` Lorenzo Pieralisi
2015-04-09 17:37 ` [RFC PATCH 4/5] arm64: smp: move the pen to a header file Kumar Gala
2015-04-09 21:17   ` Arnd Bergmann
2015-04-14 19:41     ` Kumar Gala
2015-04-14 15:59   ` Mark Rutland
2015-04-14 19:40     ` Kumar Gala
2015-04-09 17:37 ` [RFC PATCH 5/5] arm64: qcom: add cpu operations Kumar Gala
2015-04-09 21:19   ` Arnd Bergmann
2015-04-10 10:08     ` Catalin Marinas
2015-04-10 10:39   ` Lorenzo Pieralisi
2015-04-14 16:29   ` Mark Rutland
2015-04-14 20:51     ` Arnd Bergmann
2015-04-15 14:46       ` Catalin Marinas [this message]
2015-04-14 22:52     ` Al Stone
2015-04-15  9:04       ` Mark Rutland
2015-04-15 14:53         ` Catalin Marinas
2015-04-15 16:29           ` Al Stone
2015-04-10 10:05 ` [RFC PATCH 0/5] Add smp booting support for Qualcomm ARMv8 SoCs Catalin Marinas
2015-04-10 15:24   ` Kumar Gala
2015-04-10 16:10     ` Catalin Marinas
2015-04-10 19:06       ` Kumar Gala
2015-04-13  9:41         ` Catalin Marinas
2015-04-14 14:21           ` Kumar Gala
2015-04-14 14:44             ` Kumar Gala
2015-04-14 15:45               ` Mark Rutland
2015-04-14 22:32             ` Lorenzo Pieralisi
2015-04-15 16:17               ` Lina Iyer
2015-04-15 17:35                 ` Lorenzo Pieralisi
2015-04-15 14:27             ` Catalin Marinas
2015-04-14 16:36   ` Mark Rutland
2015-04-14 19:49     ` Kumar Gala
2015-04-14 21:17       ` Catalin Marinas
2015-04-14 21:48         ` Rob Clark
2015-04-15 13:34           ` Catalin Marinas
2015-04-15 15:01             ` Rob Clark
2015-04-16 15:21               ` Catalin Marinas
2015-04-16 17:17                 ` Rob Clark
2015-04-16 21:39                   ` Catalin Marinas
2015-04-16 22:03                   ` Matt Sealey
2015-04-10 11:03 ` Lorenzo Pieralisi
2015-04-10 15:25   ` Kumar Gala
2015-04-10 16:07     ` Lorenzo Pieralisi

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=20150415144630.GA22741@localhost \
    --to=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).