From: Jens Wiklander <jens.wiklander@linaro.org>
To: Zeng Tao <prime.zeng@hisilicon.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
valentin.manea@huawei.com, Mark Rutland <mark.rutland@arm.com>,
javier@javigon.com, emmanuel.michel@st.com,
Arnd Bergmann <arnd@arndb.de>, Nishanth Menon <nm@ti.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Will Deacon <will.deacon@arm.com>,
Michal Simek <michal.simek@xilinx.com>,
jean-michel.delorme@st.com,
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
Rob Herring <robh+dt@kernel.org>,
Al Viro <viro@ZenIV.linux.org.uk>,
Andreas Dannenberg <dannenberg@ti.com>
Subject: Re: [PATCH v11 3/4] tee: add OP-TEE driver
Date: Wed, 7 Sep 2016 11:18:19 +0200 [thread overview]
Message-ID: <20160907091818.GA15580@ermac> (raw)
In-Reply-To: <49a564fc-0d45-9981-b357-a1046a135d33@hisilicon.com>
Hi Zengtao,
On Wed, Sep 07, 2016 at 03:49:38PM +0800, Zeng Tao wrote:
> Hi all:
>
> I have gone through the patch, and i find one limit for RPC call from
> TEE to REE. In this patch, RPC commands are fixed and it supports a
> limited set of commands. If you want to add your own RPC command then
> you need to change the source code of the driver.
All unknown RPC of the OPTEE_SMC_RPC_FUNC_CMD type are forwarded to the
supplicant in user space. So there's the option to extend with the
supplicant if needed.
It is true that the RPCs which are dealt with in the driver are fixed.
>
> I don't know how much work to do, but unless we are sure that the RPC
> now are enough to cover all, we 'd better make the RPC more
> extensible.
It's handle_rpc_func_cmd() that could support dynamic registration of
RPC commands. Doing so in optee_handle_rpc() also should be avoided as
it involves updates of an eventual hypervisor.
I'm trying to keep this initial patch set as small as possible to not
make it harder than it already is to review it. If possible I'd like to
wait with new features until after this patch set has been accepted.
Thanks,
Jens
>
> BR zengtao
next prev parent reply other threads:[~2016-09-07 9:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 13:00 [PATCH v11 0/4] generic TEE subsystem Jens Wiklander
2016-08-22 13:00 ` [PATCH v11 1/4] dt/bindings: add bindings for optee Jens Wiklander
2016-08-22 13:00 ` [PATCH v11 2/4] tee: generic TEE subsystem Jens Wiklander
[not found] ` <1471870856-18684-3-git-send-email-jens.wiklander-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-08-30 19:29 ` Andrew F. Davis
2016-08-31 12:47 ` Jens Wiklander
2016-08-22 13:00 ` [PATCH v11 3/4] tee: add OP-TEE driver Jens Wiklander
2016-08-30 20:23 ` Andrew F. Davis
[not found] ` <050a2ce4-e175-d09e-ddff-3b0cbe766d88-l0cyMroinI0@public.gmane.org>
2016-08-31 13:50 ` Jens Wiklander
2016-08-31 16:40 ` Andrew F. Davis
2016-09-01 9:22 ` Jens Wiklander
2016-09-01 18:06 ` Andrew F. Davis
2016-09-02 10:49 ` Jens Wiklander
2016-09-02 13:56 ` Andrew F. Davis
[not found] ` <1471870856-18684-4-git-send-email-jens.wiklander-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-08-23 8:38 ` Jérôme Forissier
2016-08-31 17:02 ` Volodymyr Babchuk
2016-09-07 7:49 ` Zeng Tao
2016-09-07 9:18 ` Jens Wiklander [this message]
[not found] ` <1471870856-18684-1-git-send-email-jens.wiklander-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-08-22 13:00 ` [PATCH v11 4/4] Documentation: tee subsystem and op-tee driver 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=20160907091818.GA15580@ermac \
--to=jens.wiklander@linaro.org \
--cc=arnd@arndb.de \
--cc=dannenberg@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=emmanuel.michel@st.com \
--cc=gregkh@linuxfoundation.org \
--cc=javier@javigon.com \
--cc=jean-michel.delorme@st.com \
--cc=jgunthorpe@obsidianresearch.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=nm@ti.com \
--cc=prime.zeng@hisilicon.com \
--cc=robh+dt@kernel.org \
--cc=valentin.manea@huawei.com \
--cc=viro@ZenIV.linux.org.uk \
--cc=will.deacon@arm.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).