From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05D77C433E0 for ; Tue, 23 Feb 2021 06:18:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 933F964E60 for ; Tue, 23 Feb 2021 06:18:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231177AbhBWGSJ (ORCPT ); Tue, 23 Feb 2021 01:18:09 -0500 Received: from linux.microsoft.com ([13.77.154.182]:56442 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbhBWGSF (ORCPT ); Tue, 23 Feb 2021 01:18:05 -0500 Received: from [192.168.0.114] (unknown [49.207.208.227]) by linux.microsoft.com (Postfix) with ESMTPSA id 6B99520B6C40; Mon, 22 Feb 2021 22:17:23 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6B99520B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1614061045; bh=lUNtrJvctvJzEcm1zYcLcrAroXBINRuq0RjqjDVmyfs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=KT2/lZB44jCwhVMbSkk7ge2xvbpsHiCOTJmKxL+Igd5gJFpX48A56PJgYHZW+tcur OVVNTThZnd5E9/O71bUH76bQdH/kUvv2W5ntL0odWEzIKEGpB1+ZzSwBVljO1fHosT k9k+fEv2UIibl4CV/7I1tz5eQz8lIAh41STZA3wM= Subject: Re: [PATCH 0/2] optee: fix OOM seen due to tee_shm_free() To: Allen Pais , jens.wiklander@linaro.org, zajec5@gmail.com Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org References: <20210217092714.121297-1-allen.lkml@gmail.com> From: Allen Pais Message-ID: <7ed919a9-2ef3-95f3-3bf4-70961a18656a@linux.microsoft.com> Date: Tue, 23 Feb 2021 11:47:20 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210217092714.121297-1-allen.lkml@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org > > 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() in optee core as well as bnxt firmware driver > to handle the release of the buffers correctly. > > More info: > https://github.com/OP-TEE/optee_os/issues/3637 Jens, Could you please take sometime out and review the series. Thanks. > > Allen Pais (2): > optee: fix tee out of memory failure seen during kexec reboot > firmware: tee_bnxt: implement shutdown method to handle kexec reboots > > drivers/firmware/broadcom/tee_bnxt_fw.c | 9 ++++ > drivers/tee/optee/core.c | 69 ++++++++++++++++++------- > 2 files changed, 58 insertions(+), 20 deletions(-) >