Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2000669ybl; Thu, 9 Jan 2020 05:19:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwxsAaMvLXwSoHE1aj3rQl0DNHGaAKzA/ltuTPEgvGGAH7HjoedxXDt5vzXcgwshg07BvSw X-Received: by 2002:aca:4a08:: with SMTP id x8mr3135490oia.39.1578575982263; Thu, 09 Jan 2020 05:19:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578575982; cv=none; d=google.com; s=arc-20160816; b=Qv3mM9ungORnV10OkfaKXvLFTZLKZuNlXDJT1CYp3sirCbl+8+TRLpvzb/MMaTh0yX V1EZS9JodD7JE6eYX8IMlgV97hsyloenxscHgaYbV6ESbAk/zFlzWPHOgAm96oQnnC53 8DLpY4heBGK1azn2uQWxurwMLxiTVoD4o2f9myngTtTSMwgsJE6vCALz5bAhPLvybwMy PxuGaQ2/Iwo4ig9b0c/sXNMz1deKLGBkGbKZG0vbtkFRpX8sHe4TBmQ9Nn1Asu4l31ep c+eBmp1qXXj0Fe7EwmVAlUhz0EuDF6H9suLHOSQBPl65JE85Zo1N/V9TOQTXbizm8VBk eU8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ILyj27kpbzRc1eaCPNmbbfVGQcieiuCYVBpFS2ugS84=; b=1GWgWq7HCTY1si2RxHKAd34ZbgCLDaHMkyFGUFcO40bHzH4FIqfKY6J/uxgA5qJmx0 mgdjipH+Q5/+wVQM9R2/BFFYIpcRAQIWpZilq5qb/RRxsrxg5AP+quzM8b3hMobW+rUl xk/QcdSqJwX7mvp3WCmYsQSiCexx4zCSBDPfxU+rHuxc2JDDySIBHHKK45m+7Tl9X3ej gcwT2AhzHr8SotN/9xAz3FUKk0HbV3MVyCzskBtONJXAkchEbzz/q94pwxneRhQualyY Nh+/aXWUd4b6UyyhhYIAJEkQpPDniequNCbAnsrddk2lw0yCvo1J/77VU0BizeGZtq2b wS8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbGSH8Kb; 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 j20si3657535otp.147.2020.01.09.05.19.28; Thu, 09 Jan 2020 05:19:42 -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=YbGSH8Kb; 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 S1729180AbgAIMhW (ORCPT + 99 others); Thu, 9 Jan 2020 07:37:22 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40541 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728660AbgAIMhW (ORCPT ); Thu, 9 Jan 2020 07:37:22 -0500 Received: by mail-lj1-f194.google.com with SMTP id u1so7051585ljk.7 for ; Thu, 09 Jan 2020 04:37:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ILyj27kpbzRc1eaCPNmbbfVGQcieiuCYVBpFS2ugS84=; b=YbGSH8KbHiX2OnuZEHVZRN0D/f2cz6cr08KN9ftefepnm25MtW8sh4fSM3vtIhj13j V75f1YKs0HBf/hFdPXnetRIwFvcl6yE+2B3HjOx6J6SRIecx5zrRGwP5W8j77AowbWu5 ELB0dZE+bFlVwug5Q74EjcfzSE7rWn3sHkJFW0c8JWQ4UMA05SA8Fc2ZSpAHYuM7ZKc6 +MgLw0ZRPYkqcAXtbrIYkcWyh9hePY/FdUJK/EDHphOqPAzlNZDHtgH+SAdQ7HH64iDF iq53mUM62W4F7aPhSNPdbTOlQM1jjFmc0dlX+TPMlXWA97pbqTjF3scFqgMvEfMEN2bv K3+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ILyj27kpbzRc1eaCPNmbbfVGQcieiuCYVBpFS2ugS84=; b=H2TisYObDS4nRglJNtCzUcTB4BBkJIQ564vn+LiKLBV9olO9NdU/p3mky54F9mSCnM q0zQuCcYZfY0/TwGtkdoe5gGRCPbrGorbgJmtP0wmKQj9iXgn0u5pqtxshTPVYBc8LTx o99p+ViE1054We7wCqUt8/54cr0soyoJEyeNtllf/K78ofNiaeMq3Bv6H6kNnGY/rPR4 ENCtLta+afmQrZZJaDRSnWISFXY5ao5MjuYH4XVtomRYjzh2YXx4UnMPCbOIQApLkbt9 Mi8VsANIR21OMUiSSiUO/g97Vwog5DAbdQ3x1A+omON6rAVCjh/2DvSkzVLR9jpWNIVz ELOw== X-Gm-Message-State: APjAAAXae0D7QGpxdHbea/ssWmQw2VQz9GJ/hTeGeD8Y1c8eAKp8KqJX W81HCPayz/Eh6gUw5u0RjBzL+A== X-Received: by 2002:a2e:80cc:: with SMTP id r12mr6374813ljg.154.1578573439996; Thu, 09 Jan 2020 04:37:19 -0800 (PST) Received: from jax.urgonet (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id u16sm2887724ljo.22.2020.01.09.04.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 04:37:18 -0800 (PST) From: Jens Wiklander To: tee-dev@lists.linaro.org, linux-kernel@vger.kernel.org Cc: Jerome Forissier , Sumit Garg , Etienne Carriere , Rijo Thomas , Devaraj Rangasamy , Jens Wiklander Subject: [PATCH 0/5] tee: shared memory cleanup Date: Thu, 9 Jan 2020 13:36:46 +0100 Message-Id: <20200109123651.18520-1-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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