From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752493AbdKHMsE (ORCPT ); Wed, 8 Nov 2017 07:48:04 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45917 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752397AbdKHMsC (ORCPT ); Wed, 8 Nov 2017 07:48:02 -0500 X-Google-Smtp-Source: AGs4zMYEaYaBUl8ZiHiJ82qDaA4/oEqPOELJmaKPPfE9USKNVLUURmym3uzY6z3JFferTsoLDkF8ZA== From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org Cc: Jens Wiklander Subject: [PATCH 0/3] tee: asynchronous supplicant requests Date: Wed, 8 Nov 2017 13:47:49 +0100 Message-Id: <1510145272-14842-1-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Currently all tee supplicant communication is synchronous. This isn't very limiting if the supplicant only is accessing system local resources like storage. With network access via the supplicant it becomes a larger problem. This patch set enables asynchronous communication with the supplicant by introducing meta parameters in the user space API. The meta parameters can be used to tag requests with an id that can be matched against an asynchronous response as is done here in the OP-TEE driver. Asynchronous supplicant communication is needed by OP-TEE to implement GlobalPlatforms TEE Sockets API Specification v1.0.1. The specification is available at https://www.globalplatform.org/specificationsdevice.asp. This change is backwards compatible allowing older supplicants to work with newer kernels and vice versa. Thanks, Jens Jens Wiklander (3): tee: add tee_param_is_memref() for driver use tee: add TEE_IOCTL_PARAM_ATTR_META optee: support asynchronous supplicant requests drivers/tee/optee/core.c | 11 +- drivers/tee/optee/optee_private.h | 43 ++--- drivers/tee/optee/rpc.c | 4 +- drivers/tee/optee/supp.c | 375 ++++++++++++++++++++++++-------------- drivers/tee/tee_core.c | 32 ++-- include/linux/tee_drv.h | 12 ++ include/uapi/linux/tee.h | 7 + 7 files changed, 295 insertions(+), 189 deletions(-) -- 2.7.4