From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 2/6] drivers: psci: replace psci firmware calls
Date: Mon, 2 Nov 2015 11:55:39 +0000 [thread overview]
Message-ID: <20151102115539.GC29657@arm.com> (raw)
In-Reply-To: <1446106888-8983-3-git-send-email-jens.wiklander@linaro.org>
On Thu, Oct 29, 2015 at 09:21:24AM +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>
> ---
> 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 | 21 +++++++++++++++++++--
> 5 files changed, 20 insertions(+), 63 deletions(-)
> delete mode 100644 arch/arm/kernel/psci-call.S
> delete mode 100644 arch/arm64/kernel/psci-call.S
[...]
> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
> index 42700f0..53c9606 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>
>
> #include <uapi/linux/psci.h>
> @@ -56,8 +57,6 @@ struct psci_operations psci_ops;
>
> typedef unsigned long (psci_fn)(unsigned long, unsigned long,
> unsigned long, unsigned long);
> -asmlinkage psci_fn __invoke_psci_fn_hvc;
> -asmlinkage psci_fn __invoke_psci_fn_smc;
> static psci_fn *invoke_psci_fn;
>
> enum psci_function {
> @@ -70,6 +69,24 @@ enum psci_function {
>
> static u32 psci_function_id[PSCI_FN_MAX];
>
> +static unsigned long __invoke_psci_fn_hvc(unsigned long a0, unsigned long a1,
> + unsigned long a2, unsigned long a3)
Minor comment, but could we keep these argument names the same as before
please?
> +{
> + struct smccc_res res;
> +
> + smccc_hvc(a0, a1, a2, a3, 0, 0, 0, 0, &res);
It's slightly tempting to use varargs instead of the '0' argument padding,
but that will probably make the asm code unmanageable.
Will
WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>
To: Jens Wiklander <jens.wiklander-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
Greg Kroah-Hartman
<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
Kees Cook <keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
valentin.manea-hv44wF8Li93QT0dZR+AlfA@public.gmane.org,
jean-michel.delorme-qxv4g6HH51o@public.gmane.org,
emmanuel.michel-qxv4g6HH51o@public.gmane.org,
javier-5MUHepqpBA1BDgjK7y7TUQ@public.gmane.org,
Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Michal Simek
<michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v6 2/6] drivers: psci: replace psci firmware calls
Date: Mon, 2 Nov 2015 11:55:39 +0000 [thread overview]
Message-ID: <20151102115539.GC29657@arm.com> (raw)
In-Reply-To: <1446106888-8983-3-git-send-email-jens.wiklander-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
On Thu, Oct 29, 2015 at 09:21:24AM +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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> 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 | 21 +++++++++++++++++++--
> 5 files changed, 20 insertions(+), 63 deletions(-)
> delete mode 100644 arch/arm/kernel/psci-call.S
> delete mode 100644 arch/arm64/kernel/psci-call.S
[...]
> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
> index 42700f0..53c9606 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>
>
> #include <uapi/linux/psci.h>
> @@ -56,8 +57,6 @@ struct psci_operations psci_ops;
>
> typedef unsigned long (psci_fn)(unsigned long, unsigned long,
> unsigned long, unsigned long);
> -asmlinkage psci_fn __invoke_psci_fn_hvc;
> -asmlinkage psci_fn __invoke_psci_fn_smc;
> static psci_fn *invoke_psci_fn;
>
> enum psci_function {
> @@ -70,6 +69,24 @@ enum psci_function {
>
> static u32 psci_function_id[PSCI_FN_MAX];
>
> +static unsigned long __invoke_psci_fn_hvc(unsigned long a0, unsigned long a1,
> + unsigned long a2, unsigned long a3)
Minor comment, but could we keep these argument names the same as before
please?
> +{
> + struct smccc_res res;
> +
> + smccc_hvc(a0, a1, a2, a3, 0, 0, 0, 0, &res);
It's slightly tempting to use varargs instead of the '0' argument padding,
but that will probably make the asm code unmanageable.
Will
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will.deacon@arm.com>
To: Jens Wiklander <jens.wiklander@linaro.org>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Kees Cook <keescook@chromium.org>,
valentin.manea@huawei.com, jean-michel.delorme@st.com,
emmanuel.michel@st.com, javier@javigon.com,
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
Mark Rutland <mark.rutland@arm.com>,
Michal Simek <michal.simek@xilinx.com>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH v6 2/6] drivers: psci: replace psci firmware calls
Date: Mon, 2 Nov 2015 11:55:39 +0000 [thread overview]
Message-ID: <20151102115539.GC29657@arm.com> (raw)
In-Reply-To: <1446106888-8983-3-git-send-email-jens.wiklander@linaro.org>
On Thu, Oct 29, 2015 at 09:21:24AM +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>
> ---
> 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 | 21 +++++++++++++++++++--
> 5 files changed, 20 insertions(+), 63 deletions(-)
> delete mode 100644 arch/arm/kernel/psci-call.S
> delete mode 100644 arch/arm64/kernel/psci-call.S
[...]
> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
> index 42700f0..53c9606 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>
>
> #include <uapi/linux/psci.h>
> @@ -56,8 +57,6 @@ struct psci_operations psci_ops;
>
> typedef unsigned long (psci_fn)(unsigned long, unsigned long,
> unsigned long, unsigned long);
> -asmlinkage psci_fn __invoke_psci_fn_hvc;
> -asmlinkage psci_fn __invoke_psci_fn_smc;
> static psci_fn *invoke_psci_fn;
>
> enum psci_function {
> @@ -70,6 +69,24 @@ enum psci_function {
>
> static u32 psci_function_id[PSCI_FN_MAX];
>
> +static unsigned long __invoke_psci_fn_hvc(unsigned long a0, unsigned long a1,
> + unsigned long a2, unsigned long a3)
Minor comment, but could we keep these argument names the same as before
please?
> +{
> + struct smccc_res res;
> +
> + smccc_hvc(a0, a1, a2, a3, 0, 0, 0, 0, &res);
It's slightly tempting to use varargs instead of the '0' argument padding,
but that will probably make the asm code unmanageable.
Will
next prev parent reply other threads:[~2015-11-02 11:55 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 8:21 [PATCH v6 0/6] generic TEE subsystem Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` [PATCH v6 1/6] arm/arm64: add smccc Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-11-02 11:51 ` Will Deacon
2015-11-02 11:51 ` Will Deacon
2015-11-02 11:51 ` Will Deacon
2015-11-02 13:56 ` Jens Wiklander
2015-11-02 13:56 ` Jens Wiklander
2015-11-02 14:03 ` Mark Rutland
2015-11-02 14:03 ` Mark Rutland
2015-11-02 14:03 ` Mark Rutland
2015-11-02 14:45 ` Will Deacon
2015-11-02 14:45 ` Will Deacon
2015-11-02 14:45 ` Will Deacon
2015-10-29 8:21 ` [PATCH v6 2/6] drivers: psci: replace psci firmware calls Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-11-02 11:55 ` Will Deacon [this message]
2015-11-02 11:55 ` Will Deacon
2015-11-02 11:55 ` Will Deacon
2015-11-02 13:08 ` Jens Wiklander
2015-11-02 13:08 ` Jens Wiklander
2015-11-02 13:08 ` Jens Wiklander
2015-11-02 13:46 ` Will Deacon
2015-11-02 13:46 ` Will Deacon
2015-11-02 13:46 ` Will Deacon
2015-10-29 8:21 ` [PATCH v6 3/6] dt/bindings: add bindings for optee Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-11-16 17:01 ` Rob Herring
2015-11-16 17:01 ` Rob Herring
2015-11-19 9:18 ` Jens Wiklander
2015-11-19 9:18 ` Jens Wiklander
2015-11-19 9:18 ` Jens Wiklander
2015-11-19 14:30 ` Rob Herring
2015-11-19 14:30 ` Rob Herring
2015-10-29 8:21 ` [PATCH v6 4/6] tee: generic TEE subsystem Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` [PATCH v6 5/6] tee: add OP-TEE driver Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
2015-10-29 8:21 ` [PATCH v6 6/6] Documentation: tee subsystem and op-tee driver Jens Wiklander
2015-10-29 8:21 ` Jens Wiklander
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=20151102115539.GC29657@arm.com \
--to=will.deacon@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 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.