Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp297881pxj; Thu, 10 Jun 2021 00:36:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2f4C0zsu47tN2C+ZTEKBLUAeMgEy6DN4kzNirQAe9aYlFwENNcWkL1PXanjhikBPK3pbO X-Received: by 2002:a17:906:ae85:: with SMTP id md5mr3183930ejb.301.1623310567591; Thu, 10 Jun 2021 00:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623310567; cv=none; d=google.com; s=arc-20160816; b=oZxWWekRK+aiv4rKsfvXyVRzsE/mcLM+9s6La6IgpddCag6OHqkLpF647SpAj5uMvO hW7hIjjIRB1KQQi+fvpEXieKT/j4yA+0Lg+uB9NTbphVozY8El86Csi+VLSc/PZh+Mni 6ACLgIXF0rjNQm2qN+S1YEy0nwVrPVJL5DwqPymo+t7SjlL9uonGAj80fCldZTWn3bVy djSZttPKo1oPocNzHOQdKaknOzp7dns+aWOzStOB21fxZGQeSAYDwOX6qyu06qUpVgum UYEbP6t68x39uU269eyx3a6v6ZNDLChDsG8uqRSMRH+xD0edX/2Z5IE/6nnv7zv4amWV lz5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=whZ8Oikp5eEVLol9V4HjAY7/BKBCWE79+ODfDRRUzIE=; b=qx15MGIwLwYmpesTXy/sCSXwHIS+pSU2najalydglFDCRGpIYQySBYbsnhRIEHlyHX 7OZYM5QKhfPfFmIZMoKbzMlZ0yvvaipoFSl4n1QgVrWNH0H139FzA45aTbalMy+2ldRG 1WNWfdttA85C5vuxzmGNPAYZyVnFMunCN8tgtoOtWryuhq/wm72L9ZzWNJO7f+G06SXR rgsXp9H10nOfEHyWiOh/8ojuWU7gk2gscYMeYpT22SH/RLLVB8PFZr6O5k4Fs6OYNE7h k9gRqZYAHpMWnAFo7w3Boti220lxpAu5Uca8FwUUMkbEbKw8bjAbIVcTDSSHlQUXNfR+ hrKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KK7I5CiK; 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 o7si1586148edq.367.2021.06.10.00.35.44; Thu, 10 Jun 2021 00:36:07 -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=KK7I5CiK; 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 S230151AbhFJHgd (ORCPT + 99 others); Thu, 10 Jun 2021 03:36:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbhFJHgb (ORCPT ); Thu, 10 Jun 2021 03:36:31 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54CC8C06175F for ; Thu, 10 Jun 2021 00:34:28 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id r16so3559243ljc.0 for ; Thu, 10 Jun 2021 00:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=whZ8Oikp5eEVLol9V4HjAY7/BKBCWE79+ODfDRRUzIE=; b=KK7I5CiKwC2htrnJ7Zdk2FDbW3ArHEPczYUJ0+rqA0DZ4T/iZVGWEa9Qu46oZy2WPf 5Tx3MOWEG49ZKtjdPwr3A16oNxdmybV7HLqHoGV0iZSF7TXiNCp/X5Q3yLxp2U2UhYIO 5vkCBePqUfb2SWGeAIo4a5HkaTLW58zyGFZwWHzhNhlhZD30yoYVPhgWJeJ5qCwCbePT uDhSPC3ptvCj9y882H72DjQBS/5Xy2sxX3oGv526vFKwj5zoo9hkvS7f4qkXEsOpYikM AzubVqnibc1cVfZ+ohIOTEb9RDWPCUydrIcWI1knax9jt6ksG3MtWt9G6SO4S3wUOddB 2n9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=whZ8Oikp5eEVLol9V4HjAY7/BKBCWE79+ODfDRRUzIE=; b=OEejJdr4FVYcjIa3YfMXHVULKo44T+DSIDi53t0UbJoTw+xGaerc96dqkDrL6c8/E1 KRzVWuOuyGf/LElxHGjyOZ6mnryn9FR3lG0gb9ntm3J1adGi1UN8+vNBaBYF2T/vvOVm nxUYBwASpYZNzITLbnb3qfACQ+RyVhp34xmnz52AFTusmWjgXdWHmYIPrMdB0PhLxxGe gEr7PwjKQnoXG8sPZJFFcCHkJz7DjuFOrUsKsAR6hOk/Ci8A/YgOkyVnb8bUP9ODF3UQ nu48xquMHBMzG2liNfR2nmACILUxhbxsBsOGEWpqRAM97uMXsAsr+ete+KJ1SgccIH6M tQtA== X-Gm-Message-State: AOAM530kndQEjXTvqL9Zs32MAWlRQtvl6t6oITuM+0GMtVfeTKfZg4Hx oXOJICQs0197NDxr1RE3vHZymQ== X-Received: by 2002:a05:651c:383:: with SMTP id e3mr1194265ljp.220.1623310466669; Thu, 10 Jun 2021 00:34:26 -0700 (PDT) Received: from jade (h-79-136-85-3.A175.priv.bahnhof.se. [79.136.85.3]) by smtp.gmail.com with ESMTPSA id 15sm244384ljr.25.2021.06.10.00.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 00:34:26 -0700 (PDT) Date: Thu, 10 Jun 2021 09:34:24 +0200 From: Jens Wiklander To: Tyler Hicks Cc: Sumit Garg , Rijo-john.Thomas@amd.com, Allen Pais , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Vikas Gupta , Thirupathaiah Annapureddy , Pavel Tatashin , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , op-tee@lists.trustedfirmware.org, linux-integrity , bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH v3 5/7] tee: Support shm registration without dma-buf backing Message-ID: <20210610073424.GB2753553@jade> References: <20210609002326.210024-1-tyhicks@linux.microsoft.com> <20210609002326.210024-6-tyhicks@linux.microsoft.com> <20210609054621.GB4910@sequoia> <20210609121533.GA2267052@jade> <20210609134225.GC4910@sequoia> <20210609135104.GD4910@sequoia> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210609135104.GD4910@sequoia> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 08:51:04AM -0500, Tyler Hicks wrote: [snip] > > > I've just posted "[PATCH 0/7] tee: shared memory updates", > > > https://lore.kernel.org/lkml/20210609102324.2222332-1-jens.wiklander@linaro.org/ > > > > > > Where tee_shm_alloc() is replaced by among other functions > > > tee_shm_alloc_kernel_buf(). tee_shm_alloc_kernel_buf() takes care of the > > > problem with TEE_SHM_DMA_BUF. > > > > Thanks! At first glance, that series would take care of the last three > > patches in my kexec/kdump series. > > Correction: Your series would not completely take care of the last three > patches in my kexec/kdump series because your series doesn't implement > the .shutdown() hook for tee_bnxt_fw. > > Does it make sense to take my series first and then rebase your series > on top of it? That would allow my fixes to flow back to stable, then > your changes would greatly clean up the implementation in future > releases. Yes, we could try that. I'd like to see tee_shm_alloc_kernel_buf() being used instead of tee_shm_alloc() in ftpm_tee_probe() and tee_bnxt_fw_probe(). So it would be great if you could include "tee: add tee_shm_alloc_kernel_buf()" in your patch set. My patch set would then shrink a bit. By the way, thanks for reviewing it. Cheers, Jens