mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Wiklander <jens.wiklander@linaro.org>
To: linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org
Cc: Sumit Garg <sumit.garg@linaro.org>,
	Jens Wiklander <jens.wiklander@linaro.org>
Subject: [PATCH 0/3] OP-TEE RPC argument cache
Date: Tue,  1 Mar 2022 20:48:27 +0100	[thread overview]
Message-ID: <20220301194830.3557578-1-jens.wiklander@linaro.org> (raw)

Hi all,

This patchset optimizes handling of the argument struction passed to
call_with_arg when doing a yielding call to OP-TEE.

Prior to this was this structure allocated before the yielding call and
then freed after it had returned. In case many calls are made in succession
this results in quite a bit of unncesary allocte/free and possibly also
switching back and forth to secure work in order to register if needed.

Another optimization handles the way the argument struct needed to do RPC
is passed. Please see the patch "optee: add OPTEE_SMC_CALL_WITH_RPC_ARG"
for details.

This patchset is based the next branch [1] in my kernel to avoid conflict
with other recent patches.

Thanks,
Jens

[1] https://git.linaro.org/people/jens.wiklander/linux-tee.git/log/?h=next

Jens Wiklander (3):
  optee: add OPTEE_SMC_CALL_WITH_RPC_ARG
  optee: add FF-A capability OPTEE_FFA_SEC_CAP_ARG_OFFSET
  optee: cache argument shared memory structs

 drivers/tee/optee/call.c          | 238 ++++++++++++++++++++++++------
 drivers/tee/optee/core.c          |   1 +
 drivers/tee/optee/ffa_abi.c       |  36 +++--
 drivers/tee/optee/optee_ffa.h     |  12 +-
 drivers/tee/optee/optee_private.h |  31 +++-
 drivers/tee/optee/optee_smc.h     |  47 +++++-
 drivers/tee/optee/smc_abi.c       | 151 +++++++++++++++----
 7 files changed, 419 insertions(+), 97 deletions(-)

-- 
2.31.1


             reply	other threads:[~2022-03-01 19:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-01 19:48 Jens Wiklander [this message]
2022-03-01 19:48 ` [PATCH 1/3] optee: add OPTEE_SMC_CALL_WITH_RPC_ARG Jens Wiklander
2022-03-14  6:30   ` Sumit Garg
2022-03-16  8:17     ` Jens Wiklander
2022-03-17 11:40       ` Sumit Garg
2022-03-18  7:29         ` Jens Wiklander
2022-04-05 12:40           ` Sumit Garg
2022-03-01 19:48 ` [PATCH 2/3] optee: add FF-A capability OPTEE_FFA_SEC_CAP_ARG_OFFSET Jens Wiklander
2022-03-14  9:03   ` Sumit Garg
2022-03-16  9:27     ` Jens Wiklander
2022-03-17 12:17       ` Sumit Garg
2022-03-18  7:49         ` Jens Wiklander
2022-04-05 12:26           ` Sumit Garg
2022-04-05 14:51             ` Jens Wiklander
2022-03-01 19:48 ` [PATCH 3/3] optee: cache argument shared memory structs 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=20220301194830.3557578-1-jens.wiklander@linaro.org \
    --to=jens.wiklander@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=op-tee@lists.trustedfirmware.org \
    --cc=sumit.garg@linaro.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

all inboxes | Powered by JetHome®