Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp486985ybl; Thu, 23 Jan 2020 02:24:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxbpgezL7ca/OQbI9WztEbIK6nVOLHNl1yVeSHiuA+sOp12sS5mqZgMCY+dBSbUEeNWRcKL X-Received: by 2002:a54:4595:: with SMTP id z21mr10121301oib.136.1579775064774; Thu, 23 Jan 2020 02:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579775064; cv=none; d=google.com; s=arc-20160816; b=WxV+Iw2HP+9qv48RgEh1wPLdgkrOH7T9wC1qUUMd1zSbC+uDduM1aF2T2zODP4h95a L2MNlmrNbWcASbGqho0Qdqtt5vKP5QlaZdmG567XvisKLANYNjuEb3E4uNnlA18Dmv1S ZFM444MvZ3bmY1JRoeJcZi2rtwwMFmobzHZAHOQ+kodZNihjKYHta9DISeHMdNgw7kTO s14E4d/aDFwL7mia0L/p3eiww4uPd0L0JPgzRC+vs9l4EmUlsjxh37lsdVj/84BAeo6h c4bRH5Y1i/KGfxX01ha573vV1wdRWCYnsVmbzcpaU6MbCD5klQ/PjuHsw/+y6imqR/b3 sCuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FMAWrdUILB1z+wY3Sx+Tkapa14K6I1hBZeKU/i+V6lY=; b=I5wDkWEIDkb214TVc6JZHo94Sl/uqt5nmfyzIecWkvJJ1j1jbNCZdSCI1KH6b2SZhg n6YNPeOUG56QV0A31yBH+ViOyDUyP9y40z8xlqbKSTa9nPjCP1+OV6NOzWxiMiNTrxrl TkD9Nj4ES6Al6t+zySd3PAgw09rzdBS5O4Ef0P1xgLA49dAL/U9Rr0lWmIo56eC2i+5N 7cFsURxceST91pKItFZzRXaaY6z9Lr9JphMj7NkI8PUjf3mmgXipUlKd3FMj7CwYP38n CjE1Y9Uqna5oYnxL2p52S5ZflZbZmoJ3+CokuDwdkKRdgk2MuPZ/8IsgYCy3dChkvQlQ hMjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KlxIOFjb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i6si851031oth.182.2020.01.23.02.24.12; Thu, 23 Jan 2020 02:24:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KlxIOFjb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728709AbgAWKWA (ORCPT + 99 others); Thu, 23 Jan 2020 05:22:00 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43070 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbgAWKWA (ORCPT ); Thu, 23 Jan 2020 05:22:00 -0500 Received: by mail-oi1-f195.google.com with SMTP id p125so2382610oif.10 for ; Thu, 23 Jan 2020 02:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FMAWrdUILB1z+wY3Sx+Tkapa14K6I1hBZeKU/i+V6lY=; b=KlxIOFjbhVHEdJ0l057E/t1zRkumYDzpJLbxlaal+okJPpEaxcTDo+B23BCt5uSW7v ReOqq/vwhkQcBSoNTADY6g03Je4AFJ4yGy0R6fIUz4z/hLArsld4ezsT++tGo35Obmmx afcnwROuyw36sgOSn9Ft+7TNpaQwhaInFaxHnc4pU5kozFRECCER4myfzMMwt0ZkBaeN ZL/3zWOMeuDMKqoGTXyWseW+LGuF4DHUcL9XAs5x6nQh+KxbvNrv7r6enPL1MuftO/ba wTF1PQ9jPuFqKlc6juNklWotdMxDo/UHAKAkWRub7nc3zv65SNcq5+aMSRzJ+YkkPz3J mV5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FMAWrdUILB1z+wY3Sx+Tkapa14K6I1hBZeKU/i+V6lY=; b=m3vFwlS6yf/i1GThXL1ZJZtI+7LHKHp95Cm/7I+0sb0MmdvAH8g61O+9lM8flbYFMn A0FWctTAdQYQLh3lCSlFAv6MW0BRKhMf7U17M14bcLJ5716QVNMKjW/KEhoRDk82pveH XiwPJeDYM6Eu6Bold/cDG9sUs7VhbVG7y6fjRcgn4+jbiKUZnuos95r6ZGUbMc/ur6Sk aEXeIT8opA1fFHZc5nvNkGlhfB4e3DsNMNUiFj3IzC+4AYWQ8ZmyKUUfqKPRMFXrIYRs NkxtQJ1y0cYjNleNjGleKQ//xsLqSYmHjt4YxHCit9Ivi0TAMdukKjPk3ZclyvPvUrFf Y+xA== X-Gm-Message-State: APjAAAUGAqC2lr7mtQY3xedAYO6xd3Iro7Gw5799JAEyzHevoNK+df9M 0bKte1xIHXTuW3we1Srqp5TY3iQhepWrYeJ/glTpYQ== X-Received: by 2002:a05:6808:b37:: with SMTP id t23mr10200597oij.149.1579774919613; Thu, 23 Jan 2020 02:21:59 -0800 (PST) MIME-Version: 1.0 References: <20200109123651.18520-1-jens.wiklander@linaro.org> In-Reply-To: <20200109123651.18520-1-jens.wiklander@linaro.org> From: Jens Wiklander Date: Thu, 23 Jan 2020 11:21:48 +0100 Message-ID: Subject: Re: [PATCH 0/5] tee: shared memory cleanup To: "tee-dev @ lists . linaro . org" , Linux Kernel Mailing List Cc: Jerome Forissier , Sumit Garg , Etienne Carriere , Rijo Thomas , Devaraj Rangasamy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jan 9, 2020 at 1:37 PM Jens Wiklander wrote: > > Hi, > > Here's a group of patches to the tee subsystem with cleanups and not so > urgent fixes related to tee shared memory. > > - Unused parts of the shared memory object (struct tee_shm) are removed. > - Shared memory ids usable from user space are not assigned to driver > private shared memory objects > - The TEE_SHM_USER_MAPPED is used instead of TEE_SHM_REGISTER to accurately > tell if a shared memory object originates from another user space mapping. > > Only unused "features" should be removed with this patch set, there should > be no change in behaviour or breakage with other code. I'll pick up these as they are in a few days if there's no further comments. Thanks, Jens > > Thanks, > Jens > > Jens Wiklander (5): > tee: remove linked list of struct tee_shm > tee: remove unused tee_shm_priv_alloc() > tee: don't assign shm id for private shms > tee: remove redundant teedev in struct tee_shm > tee: tee_shm_op_mmap(): use TEE_SHM_USER_MAPPED > > drivers/tee/tee_core.c | 1 - > drivers/tee/tee_private.h | 3 +- > drivers/tee/tee_shm.c | 85 +++++++++++---------------------------- > include/linux/tee_drv.h | 19 +-------- > 4 files changed, 27 insertions(+), 81 deletions(-) > > -- > 2.17.1 >