Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp413482pxj; Fri, 11 Jun 2021 02:15:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE+gtKteVVhbPJjQ/tfOS2WQiLWXjadyMHOp40CgfKNorDwzWWEXaV7v0rz+EyuZzkYxef X-Received: by 2002:a17:907:96a1:: with SMTP id hd33mr1757735ejc.68.1623402925392; Fri, 11 Jun 2021 02:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623402925; cv=none; d=google.com; s=arc-20160816; b=xfqTleqVqHQ41PUoJn1QQ8b2LrDWY3gkZEs5rpdTq/vI/11PIIY0EMwESP11VeTwOC exQikXD5Nz8molTV4+Imoy4CAkI9yMJUpEBaIQrsfxY9l/YmnawQ5EShNBaBquw/HPmB xwW2hMM9YDYpStUgnNGo/2V5eh0KLNKkeqh4z9ifsrRhyHbrJndA1jGb3ggD4waxFZtX G9FUhQy3DL1yBXI9nBZ20mAqXF7Vl3Y4J9d63AspvBBTLVmYYvOenEcNYpcoyJGk3sMg PM+hPMajo/+qBQ5oganO/CcFWtlln+7ygejy8+sKoChE+8qNbZk8DgQjetbrLPmcrDEs 6qgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YElcP8wY/ItH22s2CX3Yk/qIGr089Bxcg+NXSKlpwwM=; b=Nn+jXReyhE4Ba3j9pfxsgiPAPzRKXRuHWAjdMKH10XskZqPd8hg+BeUx/FQMeVdq4v chACvUS9YiT7NcZH1uOygRMV05JIsvE7uNed+uK1WzLW7ozPsyONMX10K/+2/cM0MDiU BxcD63YqbfL6QwjxhsFfRH1QYmP9almlpCswHARritMhyR79JvM19DLLUqpo76rY9UHA 6GeYxQ0ALLW01JC0V2RAWoljt3WbEhdB91caRBMq7Jj3PdtlWYk6q+WBzbHHiOyHhARO VNbc4fSOula4ylALbgl4FKn3rLAioly1B1DWzlDjo2X5mOhsgiqtikDzN6E02epOeKRH joHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=woZ9K25E; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si3148516edc.520.2021.06.11.02.15.02; Fri, 11 Jun 2021 02:15:25 -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=@linaro.org header.s=google header.b=woZ9K25E; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231569AbhFKJN4 (ORCPT + 99 others); Fri, 11 Jun 2021 05:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbhFKJN4 (ORCPT ); Fri, 11 Jun 2021 05:13:56 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A97C0613A2 for ; Fri, 11 Jun 2021 02:11:45 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id i94so5255570wri.4 for ; Fri, 11 Jun 2021 02:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YElcP8wY/ItH22s2CX3Yk/qIGr089Bxcg+NXSKlpwwM=; b=woZ9K25EeoLQgFPoZVy3NGyq6fwzaVKAJZhft3QVaaHAwjel+T2FHYXKeJVF0dq4IV KT4si0PHrixQw5HW0jmWLmRYpEtsp3/eZfK1U1nrDfC+VhljAejz/6LwRdKB8Bvb2tMa H8J9YWPe2MRbFZbJXcHP9jn7fySM4WPSRK7A5F8GgRiy8AGIsgp23zFDTlJdWTDgJ7cW xXmc3PcmEMqJbvIehCJmyyOqmCmZDswRrH03zxLaBPaRmV2V5yqUL83Ikt6z3g2y/aXt ybc6xsaj2MgpPjXFU9ob9H9own759QmqW4hygFJqr/9Sgi2hbAlnjJGYMW/I5iO5C/CZ ycXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YElcP8wY/ItH22s2CX3Yk/qIGr089Bxcg+NXSKlpwwM=; b=hZn90iOl1ZPNqMu1mZnWcqhZuIaYm4WIxNEh+Z/miWwMuKcv3+N4HjfKIn+3aBnW+F r7Kf/3OAi8/LQ42WQQAFzyTP3T/5zsX/703tH/tumfDWUbFCoF7y++v4jWhBdtCcFMdR 5yGYqfQ/WeKOmHiL9MPdAJT3kWSsbt0CgupqEqW+e32EPNC4lzMne89eTpXmdpTLQsDY EvfI/JXk/P+7NxPZEBOK4sskJzcq+PFHigOL0L53UHrw+UIMRQFTIVvETcn34++wNmpU TOhFays5fEbwySeaWArfjF4G0TQCc2VZ1M4kn/+w8r9JLgmV+W44V49vhxFTjDj/4T/n d2CQ== X-Gm-Message-State: AOAM533cU1CHJ+M5cihIOfHcjNZObW0d4lsJtYSIhynJ6hC2kboGBy6i U5zhP24GodgdeuX0wZHQJHSK+oshYjVjSP83+BzmUw== X-Received: by 2002:a05:6000:229:: with SMTP id l9mr2803707wrz.43.1623402704237; Fri, 11 Jun 2021 02:11:44 -0700 (PDT) MIME-Version: 1.0 References: <20210610210913.536081-1-tyhicks@linux.microsoft.com> <20210610210913.536081-4-tyhicks@linux.microsoft.com> In-Reply-To: <20210610210913.536081-4-tyhicks@linux.microsoft.com> From: Jens Wiklander Date: Fri, 11 Jun 2021 11:11:33 +0200 Message-ID: Subject: Re: [PATCH v4 3/8] optee: fix tee out of memory failure seen during kexec reboot To: Tyler Hicks Cc: Allen Pais , Sumit Garg , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Vikas Gupta , Thirupathaiah Annapureddy , Pavel Tatashin , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , OP-TEE TrustedFirmware , linux-integrity , bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 11:09 PM 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 Do we really need this considering the patch "optee: Refuse to load the driver under the kdump kernel"? Jens