Re: [PATCH v3] tee: amdtee: unload TA only when its refcount becomes 0

From: Jens Wiklander
Date: Wed May 05 2021 - 07:09:36 EST


On Tue, May 4, 2021 at 6:26 AM Rijo Thomas <Rijo-john.Thomas@xxxxxxx> wrote:
>
>
>
> On 03/05/21 5:17 pm, Dan Carpenter wrote:
> > On Mon, May 03, 2021 at 09:04:35AM +0530, Rijo Thomas wrote:
> >>
> >>
> >> On 14/04/21 11:08 pm, Rijo Thomas wrote:
> >>> Same Trusted Application (TA) can be loaded in multiple TEE contexts.
> >>>
> >>> If it is a single instance TA, the TA should not get unloaded from AMD
> >>> Secure Processor, while it is still in use in another TEE context.
> >>>
> >>> Therefore reference count TA and unload it when the count becomes zero.
> >>>
> >>> Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver")
> >>> Reviewed-by: Devaraj Rangasamy <Devaraj.Rangasamy@xxxxxxx>
> >>> Signed-off-by: Rijo Thomas <Rijo-john.Thomas@xxxxxxx>
> >>
> >> Hi Dan,
> >>
> >> Can you please give an Ack if you are okay with this patch.
> >> I have incorporated your review comments for v2.
> >>
> >
> > Oh, Sorry. Thanks!
> >
> > Acked-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
>
> Thanks Dan!
>
> Jens, can you please pull in this patch.

Done!

Cheers,
Jens