Re: [PATCH v3] optee: add timeout value to optee_notif_wait() to support timeout
From: Jens Wiklander
Date: Fri May 31 2024 - 02:56:24 EST
On Thu, May 23, 2024 at 9:35 AM Sumit Garg <sumit.garg@xxxxxxxxxx> wrote:
>
> On Tue, 21 May 2024 at 14:16, Gavin Liu (劉哲廷) <Gavin.Liu@xxxxxxxxxxxx> wrote:
> >
> > Hi, Sumit,
> >
> > The corresponding OPTEE-OS pull request and change is here.
> >
> > https://github.com/OP-TEE/optee_os/pull/6641
>
> As this is an ABI change where I see backwards compatibility is
> maintained. However, the forwards compatibility requires this change
> to be backported to stable releases. So for the next version please CC
> stable ML.
>
> >
> > On Mon, 2024-05-20 at 16:16 +0530, Sumit Garg wrote:
> > >
> > > External email : Please do not click links or open attachments until
> > > you have verified the sender or the content.
> > > Hi,
> > >
> > > On Tue, 7 May 2024 at 07:31, gavin.liu <gavin.liu@xxxxxxxxxxxx>
> > > wrote:
> > > >
> > > > From: Gavin Liu <gavin.liu@xxxxxxxxxxxx>
> > > >
> > > > Add timeout value to support self waking when timeout to avoid
> > > waiting
> > > > indefinitely.
> > > >
> > > > Signed-off-by: Gavin Liu <gavin.liu@xxxxxxxxxxxx>
> > > > ---
> > > > change in v3:
> > > > 1. change the comment in optee_rpc_cmd.h
> > > > 2. add macro for "TEE_ERROR_TIMEOUT"
> > > > 3. change from "TEEC_ERROR_BUSY" to "TEE_ERROR_TIMEOUT"
> > > > ---
> > > > drivers/tee/optee/notif.c | 9 +++++++--
> > > > drivers/tee/optee/optee_private.h | 5 ++++-
> > > > drivers/tee/optee/optee_rpc_cmd.h | 1 +
> > > > drivers/tee/optee/rpc.c | 10 ++++++++--
> > > > 4 files changed, 20 insertions(+), 5 deletions(-)
> > > >
>
> FWIW:
>
> Reviewed-by: Sumit Garg <sumit.garg@xxxxxxxxxx>
I'm picking up this.
Thanks,
Jens