From: jens.wiklander@linaro.org (Jens Wiklander)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/4] drivers: psci: replace psci firmware calls
Date: Tue, 1 Dec 2015 20:44:22 +0100 [thread overview]
Message-ID: <20151201194421.GA29068@ermac> (raw)
In-Reply-To: <20151201184741.GE29045@leverpostej>
+Lorenzo
On Tue, Dec 01, 2015 at 06:47:42PM +0000, Mark Rutland wrote:
> Hi Jens,
>
> On Wed, Nov 25, 2015 at 12:04:21PM +0100, Jens Wiklander wrote:
> > Switch to use a generic interface for issuing SMC/HVC based on ARM SMC
> > Calling Convention. Removes now the now unused psci-call.S.
> >
> > Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
> > Acked-by: Will Deacon <will.deacon@arm.com>
> > ---
> > arch/arm/kernel/Makefile | 1 -
> > arch/arm/kernel/psci-call.S | 31 -------------------------------
> > arch/arm64/kernel/Makefile | 2 +-
> > arch/arm64/kernel/psci-call.S | 28 ----------------------------
> > drivers/firmware/psci.c | 23 +++++++++++++++++++++--
> > 5 files changed, 22 insertions(+), 63 deletions(-)
> > delete mode 100644 arch/arm/kernel/psci-call.S
> > delete mode 100644 arch/arm64/kernel/psci-call.S
>
> As a heads-up, this conflicts with changes in drivers/firmware/psci.c
> that appeared in for v4.4-rc1.
>
> The conflict is trivial (upstream some functions were added to the same
> location as the invocation functions), but even git am -3 doesn't seem
> to be able to fix that up automatically, so it would be good if you
> could rebase this to v4.4-rc1 so as to avoid that conflict.
>
> > diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
> > index 42700f0..9c55d11 100644
> > --- a/drivers/firmware/psci.c
> > +++ b/drivers/firmware/psci.c
> > @@ -19,6 +19,7 @@
> > #include <linux/pm.h>
> > #include <linux/printk.h>
> > #include <linux/psci.h>
> > +#include <linux/arm-smccc.h>
> > #include <linux/reboot.h>
>
> Nit: please move the arm-smccc.h include to the start of the list to
> keep this ordered alphabetically.
>
> > +static unsigned long __invoke_psci_fn_hvc(unsigned long function_id,
> > + unsigned long arg0, unsigned long arg1,
> > + unsigned long arg2)
> > +{
> > + struct arm_smccc_res res;
> > +
> > + arm_smccc_hvc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res);
> > + return res.a0;
> > +}
> > +
> > +static unsigned long __invoke_psci_fn_smc(unsigned long function_id,
> > + unsigned long arg0, unsigned long arg1,
> > + unsigned long arg2)
> > +{
> > + struct arm_smccc_res res;
> > +
> > + arm_smccc_smc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res);
> > + return res.a0;
> > +}
> > +
>
> As mentioned above, this part needs to be rebased to v4.4-rc1 to avoid
> conflicts.
>
> I've given this a spin on arm64 (native and virtual) and arm (virtual).
> SMP bringup, hotplug, and reboot worked as expected in all cases.
>
> Assuming you apply the fixes requested above, for the PSCI parts:
>
> Reviewed-by: Mark Rutland <mark.rutland@arm.com>
> Tested-by: Mark Rutland <mark.rutland@arm.com>
Thanks for the feeback and heads up, I'll fix.
>
> What's the plan for merging this? I assume this'll go via arm-soc?
I talked to Arnd about this and he suggested to go via Russel.
Thanks,
Jens
next prev parent reply other threads:[~2015-12-01 19:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 11:04 [PATCH v3 0/4] ARM SMC Calling Convention interface Jens Wiklander
2015-11-25 11:04 ` [PATCH v3 1/4] arm/arm64: add arm-smccc Jens Wiklander
2015-11-25 11:04 ` [PATCH v3 2/4] arm: add implementation for arm-smccc Jens Wiklander
2015-11-25 11:04 ` [PATCH v3 3/4] arm64: " Jens Wiklander
2015-11-25 11:04 ` [PATCH v3 4/4] drivers: psci: replace psci firmware calls Jens Wiklander
2015-12-01 8:46 ` Jens Wiklander
2015-12-01 18:47 ` Mark Rutland
2015-12-01 19:44 ` Jens Wiklander [this message]
2015-12-16 10:55 ` Lorenzo Pieralisi
2015-12-16 12:55 ` Jens Wiklander
2015-12-16 13:47 ` Lorenzo Pieralisi
2015-12-17 7:07 ` Jens Wiklander
2015-12-21 9:11 ` Russell King - ARM Linux
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=20151201194421.GA29068@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 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).