All of lore.kernel.org
 help / color / mirror / Atom feed
From: jens.wiklander@linaro.org (Jens Wiklander)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6] arm/arm64: add arm-smccc
Date: Mon, 4 Jan 2016 13:26:00 +0100	[thread overview]
Message-ID: <20160104122559.GA8705@ermac> (raw)
In-Reply-To: <20160104121401.GA698@red-moon>

On Mon, Jan 04, 2016 at 12:14:01PM +0000, Lorenzo Pieralisi wrote:
> On Tue, Dec 22, 2015 at 10:46:08AM +0100, Jens Wiklander wrote:
> > On Mon, Dec 21, 2015 at 11:14:55AM +0000, Lorenzo Pieralisi wrote:
> > > On Wed, Dec 09, 2015 at 02:24:55PM +0100, Jens Wiklander wrote:
> > > > Adds helpers to do SMC and HVC based on ARM SMC Calling Convention.
> > > > CONFIG_HAVE_ARM_SMCCC is enabled for architectures that may support the
> > > > SMC or HVC instruction. It's the responsibility of the caller to know if
> > > > the SMC instruction is supported by the platform.
> > > > 
> > > > This patch doesn't provide an implementation of the declared functions.
> > > > Later patches will bring in implementations and set
> > > > CONFIG_HAVE_ARM_SMCCC for ARM and ARM64 respectively.
> > > > 
> > > > Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
> > > > ---
> > > > 
> > > > v6:
> > > > * Move HAVE_ARM_SMCCC from init/Kconfig
> > > > 
> > > >  arch/Kconfig              |  3 ++
> > > >  include/linux/arm-smccc.h | 98 +++++++++++++++++++++++++++++++++++++++++++++++
> > > >  2 files changed, 101 insertions(+)
> > > >  create mode 100644 include/linux/arm-smccc.h
> > > > 
> > > > diff --git a/arch/Kconfig b/arch/Kconfig
> > > > index 4e949e5..ce3c0b0 100644
> > > > --- a/arch/Kconfig
> > > > +++ b/arch/Kconfig
> > > > @@ -564,4 +564,7 @@ config OLD_SIGACTION
> > > >  config COMPAT_OLD_SIGACTION
> > > >  	bool
> > > >  
> > > > +config HAVE_ARM_SMCCC
> > > > +	bool
> > > 
> > > It is ok by me to move it there, probably we do not want it at the end of
> > > the "ABI hall of shame" list :)
> > > 
> > > Or drivers/firmware/Kconfig ?
> > 
> > You tell me, I'm too new here to have a feeling for this.
> > 
> > > 
> > > Strictly speaking, since PSCI uses this by default, you should also
> > > enforce an ARM_PSCI_FW dependency on HAVE_ARM_SMCCC.
> > 
> > ARM_PSCI depends on CPU_V7 and ARM_PSCI_FW doesn't really depend on
> > anything today.
> > 
> > Would it be OK if I changed ARM_PSCI to depend on HAVE_ARM_SMCCC instead
> > of CPU_V7 in the "drivers: psci: replace psci firmware calls" patch?
> > At the same time I would move the "select HAVE_ARM_SMCCC if CPU_V7" line
> > to the "config ARM" block instead in the
> > "arm: add implementation for arm-smccc" patch.
> > 
> > I'll include this change in the v7 patch set if I don't hear anything.
> 
> Sorry for the delay in getting back to you.
> 
> Yes, I still think that HAVE_ARM_SMCCC should not be listed at the
> end of "ABI hall of shame" in arch/Kconfig and you can move it to
> drivers/firmware/Kconfig.
> 
> Other than that your v7 is fine by me, can you respin quickly and
> ask Russell to pull today please ?

OK, I'll do that asap. 

Thanks,
Jens

      reply	other threads:[~2016-01-04 12:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09 13:24 [PATCH v6] arm/arm64: add arm-smccc Jens Wiklander
2015-12-21 11:14 ` Lorenzo Pieralisi
2015-12-22  9:46   ` Jens Wiklander
2015-12-22 12:14     ` Russell King - ARM Linux
2016-01-04 10:13       ` Lorenzo Pieralisi
2016-01-04 11:11         ` Russell King - ARM Linux
2016-01-04 11:16           ` Russell King - ARM Linux
2016-01-04 12:22             ` Lorenzo Pieralisi
2016-01-04 12:14     ` Lorenzo Pieralisi
2016-01-04 12:26       ` Jens Wiklander [this message]

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=20160104122559.GA8705@ermac \
    --to=jens.wiklander@linaro.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.