Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp36285pxj; Thu, 10 Jun 2021 14:04:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd5MvGmQpRJ/86Q0D4VLYtgW0tAKgauBo0BP93E+Vr2zo+1z/Ut0BGEaPS6gJZgZ6LIADh X-Received: by 2002:a17:906:4882:: with SMTP id v2mr449086ejq.134.1623359046676; Thu, 10 Jun 2021 14:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623359046; cv=none; d=google.com; s=arc-20160816; b=zCTj1D4f3a7pLLaDr53g/JhjNdMpdNAKPscZ73TsaLbYrWn1zyB4s9SainRF4s42/v /KPUviwpGXbo/arfF1iuwjhboMnVvALiWEgmPdS4mojlFz6MmMZBOPm8Dg8HkQ17hovn LCADQqqlwr5YycEXTppJjiPPd2bxFJgakqq4yWF4dnx1kAfxDN85O16xgn8UC8aKXHd3 T8Yd9M5iD4HMku33zgTHVRV9bhzalUiZ7nkxUelykOgO8HwQh/gRheWBNCJzvuH3PUWI OYP17jtd27mJt3DWXdwzc3MMxbssUiDI0UKugdIVnqV7zQ8TTabxqlWvoGxnetgznFBk xFFA== 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 :dkim-filter; bh=1gwFEPolZQHFZwTUj828RxfqMs5M/HAdxQV/Mcrv+ZY=; b=IxZz8ffh6inH3C6Vh+qC6jjeWUza6r0lI1k03ajZYePyIK5OshEO2d9DCU4O7wK2mm V90NJFaS4fvLxSt05QNlBTjcDLhqLlw2uoCsos9aecbI37Z2nx39aggoNWXjQl3m+UYy W0hZWrPZvOhbw8K/+bhYBwHKlrEOW8mHYQ0IgJ3+bXtrtwjd58o3sdAPbagEd5WJ53y1 gC31mYHXofHUb5VmCB2YkqUUxzYgciyvtpX3PR9nLayFbK/pCgoaCmUmW0iCMgnLo3ya jr/Y3bCX/z8pZi1mIOaiQr5KyLmGm8rll6fA7hTllA/y1DL3NwyEkrQ8ECoow9tSHyhg 61Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=UHNY9mBK; 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 s2si3254949ejm.432.2021.06.10.14.03.41; Thu, 10 Jun 2021 14:04:06 -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=UHNY9mBK; 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 S230368AbhFJVC5 (ORCPT + 99 others); Thu, 10 Jun 2021 17:02:57 -0400 Received: from linux.microsoft.com ([13.77.154.182]:59198 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhFJVCz (ORCPT ); Thu, 10 Jun 2021 17:02:55 -0400 Received: from sequoia (162-237-133-238.lightspeed.rcsntx.sbcglobal.net [162.237.133.238]) by linux.microsoft.com (Postfix) with ESMTPSA id 10DE820B7178; Thu, 10 Jun 2021 14:00:58 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 10DE820B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1623358859; bh=1gwFEPolZQHFZwTUj828RxfqMs5M/HAdxQV/Mcrv+ZY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UHNY9mBKYgSjccyLTgX+NTkRaXnIpaq95F0fA0A4p2s58w+Ww8Kp12++AuJRIZelM Zm0YtQcqJziAe4YI+rUqPVCvD/jvTVmTz659UiZeKcFNorNJGq4LDGZazICn3WjIFF sV8u7pgA6lJUbjtcOSV/BQ7qH9sCu8JECqLQpgzA= Date: Thu, 10 Jun 2021 16:00:56 -0500 From: Tyler Hicks To: Jens Wiklander 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: <20210610210056.GO4910@sequoia> 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> <20210610073424.GB2753553@jade> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610073424.GB2753553@jade> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-10 09:34:24, Jens Wiklander wrote: > 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. That would be no problem at all. I like that idea and I've prepared a v4 with that change. I'll send it out shortly once I've finished testing. > My patch set would then shrink a bit. By the way, thanks for reviewing > it. No problem! I feel like I'm starting to understand the TEE subsystem and OP-TEE driver a bit so I'm happy to help out. Tyler > > Cheers, > Jens >