From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
"open list:BAREBOX" <barebox@lists.infradead.org>
Subject: Re: [PATCH 6/9] tee: optee: implement shared mem alloc/free RPC commands
Date: Tue, 18 Mar 2025 12:42:48 +0100 [thread overview]
Message-ID: <ec54f22b-3751-4891-948a-b9a79272acdd@pengutronix.de> (raw)
In-Reply-To: <20250312-rpmb-v1-6-0f213382a3f3@pengutronix.de>
Hello Sascha,
On 3/12/25 13:16, Sascha Hauer wrote:
> void optee_rpc_cmd(struct tee_context *ctx, struct optee *optee,
> struct optee_msg_arg *arg)
> {
> - pr_notice_once("optee: No supplicant or RPC handler for command 0x%x\n", arg->cmd);
> - arg->ret = TEEC_ERROR_NOT_SUPPORTED;
> + pr_debug("%s: receive RPC CMD: %d\n", __func__, arg->cmd);
> +
> + switch (arg->cmd) {
> + case OPTEE_RPC_CMD_SHM_ALLOC:
> + cmd_shm_alloc(ctx, arg);
> + break;
> + case OPTEE_RPC_CMD_SHM_FREE:
> + cmd_shm_free(arg);
> + break;
> + default:
> + arg->ret = TEEC_ERROR_NOT_IMPLEMENTED;
Please move the pr_notice_once here, so barebox users know that
OP-TEE tried to do something not supported yet.
Thanks,
Ahmad
> + }
> +
> + arg->ret_origin = TEEC_ORIGIN_COMMS;
next prev parent reply other threads:[~2025-03-18 11:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 12:16 [PATCH 0/9] Add RPMB support Sascha Hauer
2025-03-12 12:16 ` [PATCH 1/9] mci: implement mci_set_blockcount() Sascha Hauer
2025-03-12 12:16 ` [PATCH 2/9] mci: export some functions for RPMB support Sascha Hauer
2025-03-12 12:16 ` [PATCH 3/9] mci: detect RPMB partitions Sascha Hauer
2025-03-12 12:16 ` [PATCH 4/9] mci: add RPMB support Sascha Hauer
2025-03-17 15:18 ` Ahmad Fatoum
2025-03-18 11:33 ` Sascha Hauer
2025-03-12 12:16 ` [PATCH 5/9] tee: optee: probe successfully even when no devices are found Sascha Hauer
2025-03-12 12:16 ` [PATCH 6/9] tee: optee: implement shared mem alloc/free RPC commands Sascha Hauer
2025-03-18 11:42 ` Ahmad Fatoum [this message]
2025-03-12 12:16 ` [PATCH 7/9] tee: optee: implement RPMB support Sascha Hauer
2025-03-12 12:16 ` [PATCH 8/9] tee: optee: implement AVB named persistent values support Sascha Hauer
2025-03-12 12:16 ` [PATCH 9/9] commands: add avb_pvalue command Sascha Hauer
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=ec54f22b-3751-4891-948a-b9a79272acdd@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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