From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Wiklander To: op-tee@lists.trustedfirmware.org Subject: Re: [PATCH v4 3/8] optee: fix tee out of memory failure seen during kexec reboot Date: Mon, 14 Jun 2021 09:22:52 +0200 Message-ID: <20210614072252.GB1033436@jade> In-Reply-To: <20210610210913.536081-4-tyhicks@linux.microsoft.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0816450607598146222==" List-Id: --===============0816450607598146222== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, Jun 10, 2021 at 04:09:08PM -0500, Tyler Hicks wrote: > From: Allen Pais > > The following out of memory errors are seen on kexec reboot > from the optee core. > > [ 0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed > [ 0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 > > tee_shm_release() is not invoked on dma shm buffer. > > Implement .shutdown() method to handle the release of the buffers > correctly. > > More info: > https://github.com/OP-TEE/optee_os/issues/3637 > > Signed-off-by: Allen Pais > Reviewed-by: Tyler Hicks > --- > drivers/tee/optee/core.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) Reviewed-by: Jens Wiklander --===============0816450607598146222==--