From patchwork Thu Dec 28 15:38:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 122843 Delivered-To: patches@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3598681qgn; Thu, 28 Dec 2017 07:39:51 -0800 (PST) X-Received: by 10.46.19.1 with SMTP id 1mr596530ljt.91.1514475591645; Thu, 28 Dec 2017 07:39:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514475591; cv=none; d=google.com; s=arc-20160816; b=TG+dv0vVShFuaJijROYawGxTt1y596rVh0XGgZCjTsSlAhGbS+5W/EL/WgZW7qIQy4 AHVKhx2QMVKH9yFAej3/e7vUIAkKyVqAiTR91PJKvrm5C+ZMIOU65/pplO7OnOJ+R9wK OSv+x0T57HxqzCBW0u7V9CFitL8TpSCsxGynUidcj/ipf6sQlxhfqY9NOlazSwAh/riW vqEYkI00DODLeamjK7mM4cJ8GnXlmFFKbWkg8tEi8wueN3QIYSYLJKL0SQMw1VOrt5iq /tWzObLyRKFeYftyIOVYAedAFq4ZwZhQtc3YtuAg3zu6HK6pTyqKHbnG+jAz1nHXFwAZ /FWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=4xunVaLih3tXKCYLI4eW4Csy95bT313m3TAVf1eI6ts=; b=Ap8d+6PoKIO7fOWXtDSSn2gdiFykQ2cg9Yjl+3hncMYu8xR9stoycDin8X38aBqfYf KgBxJWAMNM35h73nGDKt3k5OlY6W0+ji2+qofLcvdoI7fOqSHDHgRqp6+NQGPYwRUAtX RAX9TgYafEtQ3GYaxSlqoHBKkjclN3PebW3mdT3TLkx4IKIxcJXPxSuwM7XATZEsu2yu GiNr87qOg27NwYde6m/PTV9Ljc554J6pP09a7gFdNKasJpzWg8ukU7syGLL9GOZZnwir a7Z2qcspkUgR59Lz3XcPGenGflYGb0+EVe6GBqaRLWSfn0nUeWfRou/exKyHrYVcX3XX ehhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gp6ag/dY; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l194sor3230790lfl.9.2017.12.28.07.39.51 for (Google Transport Security); Thu, 28 Dec 2017 07:39:51 -0800 (PST) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gp6ag/dY; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4xunVaLih3tXKCYLI4eW4Csy95bT313m3TAVf1eI6ts=; b=Gp6ag/dYkS++HLWst5CyQqA0xswMKXVk+Yg8huVyBn23tSXnoJSpT5I7VzbXBa9bya P0WbTyFzz+b5zzg2UqKYCs3QtNFBV7slRJ9bQpc7BBhXzlXT27eSO56vDQw29bRUw+tj IXAb4qEwfy8ekl/ncy0It8G9e54OblNPR9p7I= 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=4xunVaLih3tXKCYLI4eW4Csy95bT313m3TAVf1eI6ts=; b=W3RSfiN52Aqde2S7tSi9Nu1ApIiaYGQ5/PD64S/+4BFWEp3DRvAGMAGVN+kLCLZGBo mKLF/OYqarngbTGnR1G/Nij9nUW9YX2lUoC5RtJIdJhzbiQsn0Sy+EgUdd4jMJxInDFq WxegV15oKSfv6dhB4xfXmGcZoid/xXjiFZB4JgHbyIl4RK3g+SHMQ+1cEz4GJ2k6MmRi DSPMmE81XTiA8tqhy0T3AbN/gHp3jG6V5bmkNyYf+ifx8uoTaPTHY0F4FdXP3jpNkRYK 4evvXIHuGAucLSmjGEuqxQDBWUF9ZVosEHEjC2EJGDxiEkfib6sKevwsaBnarjsK1ep2 +Z6Q== X-Gm-Message-State: AKGB3mI4Kix3h556kOfmesP4YthrKpXQQbXlgCNYFl3oYNTAbqEOiI0x XUmq5UeqUOqURSLz6rbL484jt5CL X-Google-Smtp-Source: ACJfBosOLDrDc2TrqueE+CU4shMIVpoT53oCkw3IIw+4qgCmqo6UCqIytH75UtEaViyu9Rkx+sfU6g== X-Received: by 10.25.45.82 with SMTP id t18mr10480761lft.117.1514475591087; Thu, 28 Dec 2017 07:39:51 -0800 (PST) Return-Path: Received: from localhost.localdomain (31-211-242-190.customers.ownit.se. [31.211.242.190]) by smtp.gmail.com with ESMTPSA id y70sm3986429lfk.78.2017.12.28.07.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 07:39:50 -0800 (PST) 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 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