U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Etienne Carriere <etienne.carriere@foss.st.com>
Cc: u-boot@lists.denx.de, Jens Wiklander <jens.wiklander@linaro.org>,
	Patrick Delaunay <patrick.delaunay@foss.st.com>,
	Patrice Chotard <patrice.chotard@foss.st.com>
Subject: Re: [PATCH 2/2] tee: optee: don't enumerate services if there ain't any
Date: Tue, 19 Dec 2023 12:46:35 -0500	[thread overview]
Message-ID: <20231219174635.GE2513409@bill-the-cat> (raw)
In-Reply-To: <20231129123753.1906956-2-etienne.carriere@foss.st.com>

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

On Wed, Nov 29, 2023 at 01:37:53PM +0100, Etienne Carriere wrote:

> Change optee driver service enumeration to not enumerate (and
> allocate a zero sized shared memory buffer) when OP-TEE
> reports that there is no service to enumerate.
> 
> This change fixes an existing issue that occurs when the such zero
> sized shared memory buffer allocated from malloc() has a physical
> address of offset 0 of a physical 4kB page. In such case, OP-TEE
> secure world refuses to register the zero-sized shared memory
> area and makes U-Boot optee service enumeration to fail.
> 
> Fixes: 94ccfb78a4d6 ("drivers: tee: optee: discover OP-TEE services")
> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  parent reply	other threads:[~2023-12-19 17:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 12:37 [PATCH 1/2] tee: optee: don't fail on services enumeration failure Etienne Carriere
2023-11-29 12:37 ` [PATCH 2/2] tee: optee: don't enumerate services if there ain't any Etienne Carriere
2023-12-01 10:05   ` Patrice CHOTARD
2023-12-05 15:20   ` Jens Wiklander
2023-12-19 17:46   ` Tom Rini [this message]
2023-12-01 10:05 ` [PATCH 1/2] tee: optee: don't fail on services enumeration failure Patrice CHOTARD
2023-12-05 15:14 ` Jens Wiklander
2023-12-19 17:46 ` Tom Rini

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=20231219174635.GE2513409@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=etienne.carriere@foss.st.com \
    --cc=jens.wiklander@linaro.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.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