From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 1/1] tee: change return code for REE FS supplicant cmd
Date: Mon, 17 Dec 2018 07:10:33 -0500 [thread overview]
Message-ID: <20181217121033.GC8702@bill-the-cat> (raw)
In-Reply-To: <1543927039-5504-1-git-send-email-igor.opaniuk@linaro.org>
On Tue, Dec 04, 2018 at 02:37:19PM +0200, Igor Opaniuk wrote:
> If OP-TEE core is compiled with support of REE FS and RPMB
> at the same time (CFG_RPMB_FS ?= y; CFG_RPMB_FS ?= y), and persistent
> storage API is used with TEE_STORAGE_PRIVATE storage id, it will
> lead to TA panic.
>
> E/TC:? 0 TA panicked with code 0xffff0009
> .....
> E/TC:? 0 Call stack:
> E/TC:? 0 0x000000004002f2f8 TEE_OpenPersistentObject at
> lib/libutee/tee_api_objects.c:422
>
> In this particular case TEE_ERROR_STORAGE_NOT_AVAILABLE is more suitable
> than TEE_ERROR_NOT_IMPLEMENTED, as it provides to a TA a possibility
> to handle this error code [1].
>
> >From GPD TEE Internal Core specification [2]:
> TEE_ERROR_STORAGE_NOT_AVAILABLE - if the persistent object is stored in a
> storage area which is currently inaccessible. It may be associated with
> the device but unplugged, busy, or inaccessible for some other reason.
>
> [1]: https://github.com/OP-TEE/optee_os/blob/94db01ef448d1e552161c2d861d57a5f8bda0cc0/lib/libutee/tee_api_objects.c#L419
> [2]: https://globalplatform.org/wp-content/uploads/2018/06/GPD_TEE_Internal_Core_API_Specification_v1.1.2.50_PublicReview.pdf
>
> Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181217/424441ad/attachment.sig>
prev parent reply other threads:[~2018-12-17 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 12:37 [U-Boot] [PATCH 1/1] tee: change return code for REE FS supplicant cmd Igor Opaniuk
2018-12-10 8:50 ` Jens Wiklander
2018-12-17 12:10 ` Tom Rini [this message]
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=20181217121033.GC8702@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.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