Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4434588pxf; Tue, 16 Mar 2021 13:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpUjnOicyKciRmVkJHt2zTy5BCQp5bUVhFJ5kC2nEPuNa6qT0q6KlpwPLLeK62G/fL1ZVi X-Received: by 2002:a17:906:fc1c:: with SMTP id ov28mr31841191ejb.342.1615926334167; Tue, 16 Mar 2021 13:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615926334; cv=none; d=google.com; s=arc-20160816; b=aoNi+FDvfleck7slw7g+ny4E+oQmegPMnOJ2SGv8Ss3th75a/P+niQTx7kOzOPF3Kx HFWSNHumVYCz3jVESthtu9U02hg53jwPOGH/6vk/AJa53loTZOYm+5AFw7z0Pir/xi/E uk+s/bFKKuotfiuDL1csziUErJmxNRxTXKsdNrPJO5tMhYhZvpC1TtVQsuaSlCxL1IeS EVaj1f42Cs+2O86ncLePS1dKYQ0UfOeVbhDwIsLVZTqOqUJ3vLoCDCCuhEdNucLt6xVM DJOObzYatXfW6y4VK/LeidI76816xaXz2+9eDBqO3dVhxilwAmtZNFkeEUEA8OPaQn+Q EaqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=/HhHLcw0Zaoz9msZE8YkI9qb0aU2DiNbyWd7BALqXzA=; b=tJCA1m69qBXMB068dhJeJhsgjxrijVEFSuuoBPMIE9EGCRt5x94OvdRZpw6ashTo57 n9KilV7CEn70fRPQrtyrdxhy+2t/qJAWktJRVyjffHJ2TzWL0eKLW4K+WKRbMm3Fv1SX oazM2Y/02fDQGJ6QmGSGc/PIBFrutlHFxXB7Kgy8YOAV1wQbB8VtvqSQCqC6zXqGMUL9 IpM/sjm87J2e9Jf3bAaFZN6BIP9LNpGCeCLys8RlKSaKzE+NK9A9DeHtX6963W/fEbya 4xk4JZBlji2+L3K70PVyBR612EehZjKrU1W/Mr3udD18iHrFm7tg4WaJGm+5pjOFFhDX O/pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=iQrv1KyJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp24si14866003ejb.512.2021.03.16.13.25.11; Tue, 16 Mar 2021 13:25:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=iQrv1KyJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbhCPNVi (ORCPT + 99 others); Tue, 16 Mar 2021 09:21:38 -0400 Received: from linux.microsoft.com ([13.77.154.182]:41564 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234806AbhCPNVJ (ORCPT ); Tue, 16 Mar 2021 09:21:09 -0400 Received: from [192.168.0.114] (unknown [49.207.206.253]) by linux.microsoft.com (Postfix) with ESMTPSA id A6A77209C340; Tue, 16 Mar 2021 06:21:06 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A6A77209C340 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1615900868; bh=/HhHLcw0Zaoz9msZE8YkI9qb0aU2DiNbyWd7BALqXzA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iQrv1KyJeecpIb05+awvMxMnR+XoFPneksxyu8fUntwlZ/IRWv0gAnLQdrcbNEY16 hkhHwZBr2s1TANs7Oph/B54BYoronwOzr7WDCsFlNe4wFnzzdWFSXTmwGStBBwJrfj SD6ij9tigA6dsvVHO4PhiOfBwTsKBadyltVJTNFA= Subject: Re: [PATCH v2 1/2] optee: fix tee out of memory failure seen during kexec reboot To: Jens Wiklander , Allen Pais Cc: zajec5@gmail.com, bcm-kernel-feedback-list@broadcom.com, Linux ARM , Linux Kernel Mailing List , op-tee@lists.trustedfirmware.org References: <20210225090610.242623-1-allen.lkml@gmail.com> <20210225090610.242623-2-allen.lkml@gmail.com> From: Allen Pais Message-ID: <9a6c017c-d156-f939-f907-d6dfe83c41ac@linux.microsoft.com> Date: Tue, 16 Mar 2021 18:51:03 +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: 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-kernel@vger.kernel.org >> >> [ 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 >> --- >> drivers/tee/optee/core.c | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) > > This looks good to me. Do you have a practical way of testing this on > QEMU for instance? > Jens, I could not reproduce nor create a setup using QEMU, I could only do it on a real h/w. I have extensively tested the fix and I don't see any issues. Thanks.