Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp411342rwn; Thu, 8 Sep 2022 03:39:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yUV4/7Qdr61jLm6KB+6h8lca87eLWD3fceGF85DnrckdpbnpdmIcvdEdSaYc0aLXrBc1G X-Received: by 2002:a17:902:c1cd:b0:177:e483:51b0 with SMTP id c13-20020a170902c1cd00b00177e48351b0mr6137421plc.41.1662633550788; Thu, 08 Sep 2022 03:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662633550; cv=none; d=google.com; s=arc-20160816; b=XoUxsZuR1jTNqiT8biCzdrMJ331eOAZuZhfLg6CTFXGhJ9gg6QedtAU03G4P3XX8U8 8tzQCCOGE8T2n4h+0fEXcSbMvz5PKb7wn2+1o0wvyc9YGWsK/EyF9aoRSJPduz/4HtYg xQ+IqhHkvKkp0fqLQ7MlO+pbP9u1NQN+w7Wo8JrWK0gA36/cNQ8dkSPo8bmojozZMt3J hrqiDBOOZuhkh2cT7wRw8yPeRJ6XI9dx/3b5xAuIdWcRqVYqQI6HnZbENVg4YmSrr5tD SC+4ciTQk9xYkmBX/gHRIzTL9n2966lzbm2EZwz1ZSSMyQ3yKCiQg2B2fCU7l9mN1/bP 5A6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=o8Z4CAve5fqqekItJ5TFGp6h+pybclKENCYKBTuFmhk=; b=xv8E7pelAj9W4nQ5lSGHqWnr+h/+rfDiLIytcZ1xMYveJixOurExJZ1bcS2gL58yvN KTQtN2ycYHCwOZMBxuiO2MbdPgw2TmSHfrgUj5N/I+3F87jUSxJgutSsPskrfbshj8vm 9h/R/7gweMj/vkfLwr5VUCAmagmrrECbvblkYL943GUdEbVXLqYY8YesjJtU0b2ZEaZV 5uyRVbsUYXek2WXun7kUGGIL7CwqxqImEzpfXx5/gjsqRXGUt/xgfGXiGIPcyrqYQOhf u/ec3AySEXHK9WBC5+Uc0mcXRyQAvOyhvzHT6AWyLIryCOKimdmAYXRzkTd2VMFKNv1n ryaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IwcoQSz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w29-20020a63161d000000b004350c760e5csi3301917pgl.399.2022.09.08.03.38.58; Thu, 08 Sep 2022 03:39:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IwcoQSz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229926AbiIHK3E (ORCPT + 99 others); Thu, 8 Sep 2022 06:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiIHK3D (ORCPT ); Thu, 8 Sep 2022 06:29:03 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF37798CA6 for ; Thu, 8 Sep 2022 03:28:59 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id a8so5377898lff.13 for ; Thu, 08 Sep 2022 03:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=o8Z4CAve5fqqekItJ5TFGp6h+pybclKENCYKBTuFmhk=; b=IwcoQSz3UBrwnTW+HJsc6p8YeZ3gsbEhZ9gow3OEDbwrZWKiJ4I0GZtV40U0N60tH4 g6iWHb8C/2uMf1AUqLqniwMkuSC0UXtsyjPPUO/238y/DnuRIcMCTrvrKfwhjwFST81q WCI0Bzvb+68TiJRBY2P3TXTqKehNdv1cuRQVc31f7d3fT9OSHBmtRpeVNXKXm0itJAZu wzG2WwVEBIaPuN21x1nTMFmLsMU2yRjFNpKQrXZpj8F0G1aR0kF8N0JlrwbLQIchOG2S S0sKweHdVu2Py7n87UpmgLnbDYmywB/aBdtRTJ5Q/i0bugqSaUHWPVsvVuCK04qp4WPD t3Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=o8Z4CAve5fqqekItJ5TFGp6h+pybclKENCYKBTuFmhk=; b=8DTweNQ8V+OwFab9KBCV/KaS2qFaVByhJ9huTRDKnAn4UmEQJOiSUGjD663TPtZ1i2 jpEnRT3KBdc4bH5b/HM8i3IuLav39QOUOb/8AhVRRRWYP6yygyfZ8gBztc4pc9ilGsTH 94w9xOsATAn+fuqA5LebKuKB83VZuDnWr5Bc4ajPaYuqaqVnKd4hrmY9U7pYIbiMFab0 HfSZ1fEI+enYMUAcxf+ZF6cb4yPW0HI43b82tpGAOT6QxMPHUdZUikKb0D3vXTk3TBKk /cEGp6OqtE/YPFlVFI7p4K723mWM6Y0aVLDkkcOdyJitPIc6WtVrUhA/86GP6pu4FaM1 O7ug== X-Gm-Message-State: ACgBeo17Ht/WyFCYjFz7lz8HNNuXV6kch/KMz8g+JVbhSGOqZ6Un3dB4 MvjZk+w0BbUDeUZKXKT4Ag5i5r9bDFCgEp8LVUsRnA== X-Received: by 2002:a05:6512:3da5:b0:497:6082:98fd with SMTP id k37-20020a0565123da500b00497608298fdmr2328152lfv.109.1662632938143; Thu, 08 Sep 2022 03:28:58 -0700 (PDT) MIME-Version: 1.0 References: <20220812143055.12938-1-olivier.masse@nxp.com> In-Reply-To: From: Sumit Garg Date: Thu, 8 Sep 2022 15:58:47 +0530 Message-ID: Subject: Re: [EXT] Re: [PATCH v2 0/1] tee: Add tee_shm_register_fd To: Olivier Masse Cc: "sumit.semwal@linaro.org" , "linux-kernel@vger.kernel.org" , "linaro-mm-sig@lists.linaro.org" , "christian.koenig@amd.com" , "linux-media@vger.kernel.org" , =?UTF-8?Q?Cl=C3=A9ment_Faure?= , "dri-devel@lists.freedesktop.org" , "jens.wiklander@linaro.org" , "op-tee@lists.trustedfirmware.org" , "etienne.carriere@linaro.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Sept 2022 at 14:48, Olivier Masse wrote: > > Hi Sumit > > On ven., 2022-08-19 at 13:54 +0530, Sumit Garg wrote: > > Caution: EXT Email > > > > Hi Olivier, > > > > On Fri, 12 Aug 2022 at 20:01, Olivier Masse > > wrote: > > > > > > Add a new ioctl called TEE_IOC_SHM_REGISTER_FD to register a > > > shared memory from a dmabuf file descriptor. > > > This new ioctl will allow the Linux Kernel to register a buffer > > > to be used by the Secure Data Path OPTEE OS feature. > > > > > > Please find more information here: > > > > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fstati= c.linaro.org%2Fconnect%2Fsan19%2Fpresentations%2Fsan19-107.pdf&data=3D0= 5%7C01%7Colivier.masse%40nxp.com%7C05071ff1c28044ab740908da81bc44e2%7C686ea= 1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637964942860947359%7CUnknown%7CTWFpbG= Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C= 3000%7C%7C%7C&sdata=3DnYLb2iMoJExdKEg4CL4eW5%2FQ%2Bqqj4Iw1TxFsd1UqWW0%3= D&reserved=3D0 > > > > > > Patch tested on Hikey 6220. > > > > > > > AFAIU, for the OP-TEE SDP feature to work you need to have a DMA-BUF > > heap driver for allocating secure buffers through exposed chardev: > > "/dev/dma_heap/sdp". Have you tested it with some out-of-tree driver > > as I can't find it upstream? Also, do you plan to push that upstream > > as well? > > It has been tested with linaro,secure-heap reserved dma heap memory > which is also in review for upstream. Can you provide the corresponding reference? Also, do keep OP-TEE ML in CC if you send any new iteration for that patch. -Sumit > > > > > BTW, please add a changelog while sending newer patch-set versions. > > > > -Sumit > > > > > Etienne Carriere (1): > > > tee: new ioctl to a register tee_shm from a dmabuf file > > > descriptor > > > > > > drivers/tee/tee_core.c | 38 +++++++++++++++ > > > drivers/tee/tee_shm.c | 99 > > > +++++++++++++++++++++++++++++++++++++++- > > > include/linux/tee_drv.h | 11 +++++ > > > include/uapi/linux/tee.h | 29 ++++++++++++ > > > 4 files changed, 175 insertions(+), 2 deletions(-) > > > > > > -- > > > 2.25.0 > > >