From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18D40C25B0E for ; Fri, 19 Aug 2022 08:24:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344651AbiHSIYp (ORCPT ); Fri, 19 Aug 2022 04:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244461AbiHSIYo (ORCPT ); Fri, 19 Aug 2022 04:24:44 -0400 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11725C229C for ; Fri, 19 Aug 2022 01:24:43 -0700 (PDT) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-3378303138bso63195117b3.9 for ; Fri, 19 Aug 2022 01:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=GridmYqKIl9YhRzWxWOzxfd24n2YkgbOm/HqzMAUhEQ=; b=bwNIyABVmu81M7BGPfjuHZ6PjIx00blv/MpdYbhXPXackmXOce8DP2CjV/tCB/03Si /FmDOotUt4VGGVOPk7no9TMR+TuGC7n73wb594mU54kKQ+XCvHraCCmCzIVrPJbhPpsm jjdZZSO942VUB/CVHr+wodkZPIzhIaTwLheZDB0+BeLUGC1Rmzi+4CYlvzHf9VIlSsaj ggHRRVyYDnrW6QmjXK1pmuYAURpmrYSbNORQBd7Hna4JgukZcEaIdFcLAGzLz+g3JBos GeCdgmv1eq8LW+Iz3ANUpnfGua4NLHGX62ulRSTOHK0XLfbaRoLxVSMBgzs6JBPA4OgR WDEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=GridmYqKIl9YhRzWxWOzxfd24n2YkgbOm/HqzMAUhEQ=; b=Wku4rjm2Dr4Q7iOUBI3HhUbysPVax7BpBc71W0RzuLDelm8OFS5TGtCpDFKDkFMbtD G871qeM66rc1GYHEBzutD7QYgtJ7lrUI+48y7ISZqHGa+SqSCL8FKG5rSJyhVuPa+Pcc jw7G+qjXId+V2Xn2lSifUfMwC3DHngCrztCKbPtIv07AB7MhN/q+ep45BkU6hX66iWM5 sRCDIyTQuveU2kTg4eerHUAH/odqFUFFIgBZi05K8yFZoyMCRzT21EEPXXV0vB/VPM27 puGBbUi7gBVCGchKWC4A585AwfJh2z2qFZYpVXfVF7RrCHUE1ZIzgz69eadlrwRD+JSI o+cg== X-Gm-Message-State: ACgBeo1pslqoEhKM7XdF8VVuUCsPLkhOO7XB7g2u9ecnWLF+Au2RT8Ao WAsCM9vifDkwaZeH1hZyrd+S+YOu5WREtRhEnIHgBw== X-Google-Smtp-Source: AA6agR5Xeeq2XXdslKqjNOEIt8ha4tkJ3suR0T/hScDsfaXCZ/KwX1otEr27K/Qwm11NBboU15GFBLmyI/AXH0D6BfA= X-Received: by 2002:a81:d543:0:b0:325:2240:ce5 with SMTP id l3-20020a81d543000000b0032522400ce5mr6410102ywj.210.1660897482275; Fri, 19 Aug 2022 01:24:42 -0700 (PDT) MIME-Version: 1.0 References: <20220812143055.12938-1-olivier.masse@nxp.com> In-Reply-To: <20220812143055.12938-1-olivier.masse@nxp.com> From: Sumit Garg Date: Fri, 19 Aug 2022 13:54:31 +0530 Message-ID: Subject: Re: [PATCH v2 0/1] tee: Add tee_shm_register_fd To: Olivier Masse Cc: etienne.carriere@linaro.org, jens.wiklander@linaro.org, sumit.semwal@linaro.org, christian.koenig@amd.com, op-tee@lists.trustedfirmware.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, clement.faure@nxp.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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://static.linaro.org/connect/san19/presentations/san19-107.pdf > > 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? 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 >