From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754094AbdL1Pjz (ORCPT ); Thu, 28 Dec 2017 10:39:55 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:46863 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753902AbdL1Pjw (ORCPT ); Thu, 28 Dec 2017 10:39:52 -0500 X-Google-Smtp-Source: ACJfBosOLDrDc2TrqueE+CU4shMIVpoT53oCkw3IIw+4qgCmqo6UCqIytH75UtEaViyu9Rkx+sfU6g== From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org Cc: Arnd Bergmann , zkong@codeaurora.org, bmanohar@qti.qualcomm.com, Volodymyr Babchuk , Volodymyr Babchuk , thomas zeng , Jens Wiklander Subject: [PATCH 0/2] Fix tee: optee: add dynamic shared memory support Date: Thu, 28 Dec 2017 16:38:55 +0100 Message-Id: <20171228153857.30086-1-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, These two patches complements the previously posted patchset "tee: optee: add dynamic shared memory support" https://lwn.net/Articles/740242/ Tests are added to see that the registered shared memory cache attributes are compatible with OP-TEE in secure world. Under normal circumstances they will be compatible, but if memory has been previously mapped from a device with special page attributes it could lead to trouble. Thanks, Jens Jens Wiklander (2): tee: add start argument to shm_register callback tee: optee: check type of registered shared memory drivers/tee/optee/call.c | 50 +++++++++++++++++++++++++++++++++++---- drivers/tee/optee/optee_private.h | 6 +++-- drivers/tee/tee_shm.c | 2 +- include/linux/tee_drv.h | 3 ++- 4 files changed, 53 insertions(+), 8 deletions(-) -- 2.14.1