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 E6C05ECAAA1 for ; Tue, 6 Sep 2022 20:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbiIFUFj (ORCPT ); Tue, 6 Sep 2022 16:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbiIFUFL (ORCPT ); Tue, 6 Sep 2022 16:05:11 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C351BD147 for ; Tue, 6 Sep 2022 13:00:42 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id d5so7438376wms.5 for ; Tue, 06 Sep 2022 13:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date; bh=VrcGAAHAFPBkHhppiEmlpx+VdwyrqvH6/RbOsQratUo=; b=M5h3saQs6F1UBXdjXnvlynP0tALp22uVJtMAUE8iSwB+bkrHqEOrpeStA2fQe0HZLG YdZDuD8LI9dc62w8cGcwf2yNtMGV2kRoFK6GdKfUXRceSGpRnCR0rRV3DTzNfjVFjuJU dg17JdrVDQJfVv8mYhJu6NQhnD6rI1ItsBHd8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=VrcGAAHAFPBkHhppiEmlpx+VdwyrqvH6/RbOsQratUo=; b=COlTRwHpK9vKnDu18uSriheutnIfteaswbz3/pUnFk9/Ku9q98wjJhGAu/nHwsn4kn bnffYp9HBGayny9QSgx73V1nFe38aN0u5j9nVp3r0yC3kP3V5B6SREwo34QIOgY5Z29A +p2ldVtrq8emy08dwRM1HZo6NfPfVOCoS/E6nlEocZinO/Sj6doxCMqNIcFfjONohsQe aQQR0Z9o/5QlMTIkzxQVDuom4xRJXjJaePE+X81uKEoSq5cANSET4d6N4MhVId5PHZqP RB3/cvbxCjCgxDeJVK/ErVClhxkGPnfhwC5wtK7KLDtpogSQLpd2FUT/1fn26CaJyqV8 8d+Q== X-Gm-Message-State: ACgBeo0tlXYSR9zIHHtVRPx9ApfmpanIGe6I5JlbArN8cY12F8q+hvIc Ri2NwMF5URT8mfQb+nuQDoDYYQ== X-Google-Smtp-Source: AA6agR70xNvhnTUF/14KkJLm8rVw//b90FT680b1H6RZc3w8FRaOhwakoWInvlm1LH/O+Z8Yz4H0qw== X-Received: by 2002:a05:600c:34c2:b0:3a5:d2f5:9d02 with SMTP id d2-20020a05600c34c200b003a5d2f59d02mr37123wmq.153.1662494364404; Tue, 06 Sep 2022 12:59:24 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-33.fiber7.init7.net. [212.51.149.33]) by smtp.gmail.com with ESMTPSA id l9-20020adfe9c9000000b00228d94931dcsm4199922wrn.116.2022.09.06.12.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 12:59:23 -0700 (PDT) Date: Tue, 6 Sep 2022 21:59:21 +0200 From: Daniel Vetter To: Sumit Garg Cc: Olivier Masse , clement.faure@nxp.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, jens.wiklander@linaro.org, linaro-mm-sig@lists.linaro.org, op-tee@lists.trustedfirmware.org, etienne.carriere@linaro.org, sumit.semwal@linaro.org, christian.koenig@amd.com, linux-media@vger.kernel.org Subject: Re: [PATCH v2 0/1] tee: Add tee_shm_register_fd Message-ID: Mail-Followup-To: Sumit Garg , Olivier Masse , clement.faure@nxp.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, jens.wiklander@linaro.org, linaro-mm-sig@lists.linaro.org, op-tee@lists.trustedfirmware.org, etienne.carriere@linaro.org, sumit.semwal@linaro.org, christian.koenig@amd.com, linux-media@vger.kernel.org References: <20220812143055.12938-1-olivier.masse@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.18.0-4-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Fri, Aug 19, 2022 at 01:54:31PM +0530, Sumit Garg wrote: > 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. Also after the huge discussion last year dma-buf are agreed to be under the "you need an open source userspace for any new uapi using them" rule that all gpu drivers are under. Does this exist here? -Daniel > > -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 > > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch