Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp704126ybf; Fri, 28 Feb 2020 06:10:10 -0800 (PST) X-Google-Smtp-Source: APXvYqz+adaKPVuE7fGJa8mgMEm9MUn+0XQTX9Fkl6Km3nuura5NwTp5g/qO4X62pphgQlcwWvvZ X-Received: by 2002:a05:6808:8e1:: with SMTP id d1mr3248652oic.68.1582899009816; Fri, 28 Feb 2020 06:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582899009; cv=none; d=google.com; s=arc-20160816; b=lDKrNRYonmXjYfwurJXZezCoqYSqEyGauoj9K5iRSGjBA/halTFbGcnmPqbE7qdYeb 0z6POdHvxNwZ62LPbf06zb7wsD6D544Vc8ts6YGzN4ELXjZh6RHb4lnjhGvJ+jvjZ1zp 5GJI5Unx4hheq1ECyVLbOeA55WDW3L/wYPtJYQwmJ1R9mNEmt11y9UxqJ/XI/beBVDM+ Yuegg9PoKXoouXye9c3LYBqRooY/8TSeoXS3j6/gJdXfiU/ceF+ksAxUxRsMiE+Rma0q q44vJjj6JVjNgQVFoVngQZFaYTRBwbGzxnbk2oOWdSuHPVd0mkalMIgAADbNjeKfzZdI OnZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=BGRhYUunws4pXu6R++Tvw3n0xSj2znFbq+SxOUkGyqA=; b=lVoa9mpKx6m9erI2BpKNcOEjr5Ed37DTZB+Z2HtvTNlrGyoncCebCUoifgpZ6IAAei osMrzTqUw8tTFkFrkmVmB1n1puBfKaUuyAWYxXDm7PS8g5lxQ7NqIY+9fOUgCDcoC3xz 4KzLIJpIfTOIl0RlrMbD+pSoAbiL6RZhvggSkqZijtdJrpEf8pn6bp/QeryxhF+j+iPK Mmr+5NIwO1BRyrpbP58iKhQYPFJ9DZdLe8DTh/kDbtzansfpiY9/7uMqF0rtUtxF33JZ qyzMXIwV9Pg/1Vss4uSpnmNQc6k5HLAjAqGrlkj6+Kh/mxOhOEnA+x6ok7HR5bF4JAII G2Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ku0TrqiN; 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 v10si1582084ote.275.2020.02.28.06.09.57; Fri, 28 Feb 2020 06:10:09 -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=ku0TrqiN; 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 S1726946AbgB1OJb (ORCPT + 99 others); Fri, 28 Feb 2020 09:09:31 -0500 Received: from mail-lf1-f48.google.com ([209.85.167.48]:40636 "EHLO mail-lf1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbgB1OJa (ORCPT ); Fri, 28 Feb 2020 09:09:30 -0500 Received: by mail-lf1-f48.google.com with SMTP id c23so2195961lfi.7 for ; Fri, 28 Feb 2020 06:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=BGRhYUunws4pXu6R++Tvw3n0xSj2znFbq+SxOUkGyqA=; b=ku0TrqiNTt/Updmc22hFfGsFnmEkXnafAY6IK9IF/lxQTbChpHGpHGJeXAIUXcjz9f 3bibBejKZgxdA2R6y5BmOFyjwCeC1LQrjXKlRR0EVtDKymHHKlP1hc/V64ZjuRDIGWgg 0m32E031Mes4vpU8lwtDwdKy/1Cuz+PIX7fd7AObKfBzaGvvQo3oSfg2ZvuFhmL5tNT0 SDVJHPzldDUhWwkXuXrGytsb0p+SByxOsc2kNNku3TcBpZO4128LYE5EpN7gyuI/HjNo a1FqRv8PilKjVGm/TjMlUBSlOHMUvQofdPJDFuSULEcd0Y5qjqrHT2Vb7kTaZUxFEy6M PX/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=BGRhYUunws4pXu6R++Tvw3n0xSj2znFbq+SxOUkGyqA=; b=uNRckHCZteNPSaGPPw48oQHBoWFXZQ5UW3TMncBYgvVY739XL2AuxzR9diP7jqLlDU aECmQtwRnmFesRTNufqCpKVtIcmKIZiARz/2Ca49yiTQ4j7yKx2HUPtBtbSnYGJ0ZxvH LjyyoWcUMudv0hczNEGv1PEbSLWs0xGkTyeX3SQ3LbytzgVBhE2oLuDKKDlnHEox+isq 604NEhVzzwz+VAlaxJxtCDq57bpklqBOsq4FwNB4WayZvFpJSiyI67MQbI4yy44es5rD kyzajsGvbhlWKhqWjmYfRYuVpbn7SLW/0urCopNocM1IEVYybuxQIUoqk4Qj4+Sj/itW pEww== X-Gm-Message-State: ANhLgQ0DKEQD6WLtfk12TaVzOckocXzcDh4cvXK8o8MBlrz9iGm09fPj Gh24lx67Mq9mmEoWGxrSYbzg+ZLCBGg= X-Received: by 2002:a05:6512:6c5:: with SMTP id u5mr2774555lff.130.1582898968554; Fri, 28 Feb 2020 06:09:28 -0800 (PST) Received: from jade (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id n13sm5773869lji.91.2020.02.28.06.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 06:09:27 -0800 (PST) Date: Fri, 28 Feb 2020 15:09:25 +0100 From: Jens Wiklander To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , Linux ARM , tee-dev@lists.linaro.org Subject: [GIT PULL] TEE shared memory cleanup for v5.7 Message-ID: <20200228140925.GA12393@jade> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello arm-soc maintainers, Please pull these cleanup patches for shared memory in the TEE subsystem. Thanks, Jens The following changes since commit 11a48a5a18c63fd7621bb050228cebf13566e4d8: Linux 5.6-rc2 (2020-02-16 13:16:59 -0800) are available in the Git repository at: https://git.linaro.org/people/jens.wiklander/linux-tee.git tags/tee-cleanup-for-5.7 for you to fetch changes up to 758ecf13a41a9dc4f019c1381566132ef46c08ee: tee: tee_shm_op_mmap(): use TEE_SHM_USER_MAPPED (2020-02-28 13:37:42 +0100) ---------------------------------------------------------------- Cleanup shared memory handing in TEE subsystem The highlights are: - Removing redundant or unused fields in struct tee_shm - Only assign userspace shm IDs for shared memory objects originating from user space ---------------------------------------------------------------- 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(-)