Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810368/?format=api
{ "id": 810368, "url": "http://patchwork.ozlabs.org/api/patches/810368/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504664087-26473-7-git-send-email-kever.yang@rock-chips.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1504664087-26473-7-git-send-email-kever.yang@rock-chips.com>", "list_archive_url": null, "date": "2017-09-06T02:14:33", "name": "[U-Boot,06/10] spl: add support to booting with OP-TEE", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "05b51abc55b3585de00e9d656f98d56ef2ed4c14", "submitter": { "id": 64532, "url": "http://patchwork.ozlabs.org/api/people/64532/?format=api", "name": "Kever Yang", "email": "kever.yang@rock-chips.com" }, "delegate": { "id": 69486, "url": "http://patchwork.ozlabs.org/api/users/69486/?format=api", "username": "ptomsich", "first_name": "Philipp", "last_name": "Tomsich", "email": "philipp.tomsich@theobroma-systems.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1504664087-26473-7-git-send-email-kever.yang@rock-chips.com/mbox/", "series": [ { "id": 1682, "url": "http://patchwork.ozlabs.org/api/series/1682/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1682", "date": "2017-09-06T02:14:28", "name": "rockchip: add tpl and OPTEE support for rk3229", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1682/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810368/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810368/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"LsQqxkpx\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xn6h301G2z9sR9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 6 Sep 2017 12:18:26 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid B070AC21F18; Wed, 6 Sep 2017 02:16:56 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 18A71C21E79;\n\tWed, 6 Sep 2017 02:16:05 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 3B09FC21EBD; Wed, 6 Sep 2017 02:15:37 +0000 (UTC)", "from mail-pf0-f194.google.com (mail-pf0-f194.google.com\n\t[209.85.192.194])\n\tby lists.denx.de (Postfix) with ESMTPS id 14B0DC21EEC\n\tfor <u-boot@lists.denx.de>; Wed, 6 Sep 2017 02:15:34 +0000 (UTC)", "by mail-pf0-f194.google.com with SMTP id f84so543502pfj.3\n\tfor <u-boot@lists.denx.de>; Tue, 05 Sep 2017 19:15:34 -0700 (PDT)", "from localhost.localdomain ([58.22.7.114])\n\tby smtp.gmail.com with ESMTPSA id\n\tz30sm362126pfg.54.2017.09.05.19.15.29\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 05 Sep 2017 19:15:32 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "*", "X-Spam-Status": "No, score=1.9 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_WEB,\n\tT_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=n2ak72PXa3ZjMJbeqCO+uzd5MleYhoDbhIH7Wxq7ujs=;\n\tb=LsQqxkpxDuA+7Jb/fyg7LxyL6YXaaa90Hed5bAY/beWI3ga/5D0f/lG2FPQ08mgz4a\n\tDaXq6uA5qSIoDlyeD3NQ6H4xKWb/CvFcWo5ztUnbpn4lOBAF4VokopqK0S5BqPo9p+4c\n\tBTuNUPB7Jb2LN/o823w2IkOXv71UGYUhRSbdJldmobFLy9qn2mwgmOv1xAjQ3f3DKnMl\n\tmQSolrzzWSPCsxiEfYhn5gRYDSa0OMTCv8psD4ACplx1J8tmQNTj4RNqyiXffcCKcen2\n\tI33C1qaUNvR67P3bQPHybcMOqLLFmreUOYK78usiHnwvXzeo33tOMFbtTmxOYZrIutMs\n\t40Bg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=n2ak72PXa3ZjMJbeqCO+uzd5MleYhoDbhIH7Wxq7ujs=;\n\tb=iPp9GTWlpw4vWoaBzjXIACmqoosTOJG3aLy3AmD9fRfPtg55yJBGBLFkDcJRpKhgBY\n\tHmJCakKBkSMaGTqPRxDRlau0YwY3/bBKA5tqp0GUn32VagkwSWEOv0ezz9WGeg7tdzat\n\twacrDlru2y5JRuZewi06A+042TXz44ZzgaCKFRPTtww3RhT38Tnqf+r9GBYzcKCyE7Xe\n\tBREn8uoI+v8Q1z9WUffHuBENdLBBgIPg5D5xKGl9gT8i/TL9f0wsCtLPGZl3vV7J5raL\n\t0XKSDwHYrgN70Mx6GvcYT+lETzYMV/uvzohc1eRvxJgbN/eDR15Zp1gItTfIcDQSCju+\n\tFcLA==", "X-Gm-Message-State": "AHPjjUj/DyI6tRA4V/0z8Net01KRUuCRB5mwoP/u3HR+Fauqyfw0bVzI\n\t0h+t3UmthdPQGj6E", "X-Google-Smtp-Source": "ADKCNb7V10xHUWDIDUfEgPD6fnHFm9LiL+1iEwWkYMLUwDfcH34HYbMcdxD24Vbt6JrepP39Gc3YIA==", "X-Received": "by 10.99.115.30 with SMTP id o30mr6177741pgc.447.1504664132557; \n\tTue, 05 Sep 2017 19:15:32 -0700 (PDT)", "From": "Kever Yang <kever.yang@rock-chips.com>", "To": "u-boot@lists.denx.de", "Date": "Wed, 6 Sep 2017 10:14:33 +0800", "Message-Id": "<1504664087-26473-7-git-send-email-kever.yang@rock-chips.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1504664087-26473-1-git-send-email-kever.yang@rock-chips.com>", "References": "<1504664087-26473-1-git-send-email-kever.yang@rock-chips.com>", "Cc": "Alexandru Gagniuc <alex.g@adaptrum.com>,\n\tStefan Agner <stefan.agner@toradex.com>, vagrant@debian.org", "Subject": "[U-Boot] [PATCH 06/10] spl: add support to booting with OP-TEE", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "OP-TEE is an open source trusted OS, in armv7, its loading and\nrunning are like this:\nloading:\n- SPL load both OP-TEE and U-Boot\nrunning:\n- SPL run into OP-TEE in secure mode;\n- OP-TEE run into U-Boot in non-secure mode;\n\nMore detail:\nhttps://github.com/OP-TEE/optee_os\nand search for 'boot arguments' for detail entry parameter in:\ncore/arch/arm/kernel/generic_entry_a32.S\n\nSigned-off-by: Kever Yang <kever.yang@rock-chips.com>\n---\n\n common/spl/Kconfig | 7 +++++++\n common/spl/Makefile | 1 +\n common/spl/spl.c | 5 +++++\n common/spl/spl_optee.S | 13 +++++++++++++\n include/spl.h | 9 +++++++++\n 5 files changed, 35 insertions(+)\n create mode 100644 common/spl/spl_optee.S", "diff": "diff --git a/common/spl/Kconfig b/common/spl/Kconfig\nindex 582b685..85f8d66 100644\n--- a/common/spl/Kconfig\n+++ b/common/spl/Kconfig\n@@ -700,6 +700,13 @@ config SPL_ATF_TEXT_BASE\n \thelp\n \t This is the base address in memory for ATF BL31 text and entry point.\n \n+config SPL_OPTEE_SUPPORT\n+\tbool \"Support OP-TEE Trusted OS\"\n+\tdepends on ARM\n+\thelp\n+\t OP-TEE is an open source Trusted OS which is loaded by SPL.\n+\t More detail at: https://github.com/OP-TEE/optee_os\n+\n config TPL\n \tbool\n \tdepends on SUPPORT_TPL\ndiff --git a/common/spl/Makefile b/common/spl/Makefile\nindex fde0d09..ec37428 100644\n--- a/common/spl/Makefile\n+++ b/common/spl/Makefile\n@@ -23,6 +23,7 @@ obj-$(CONFIG_$(SPL_TPL_)UBI) += spl_ubi.o\n obj-$(CONFIG_$(SPL_TPL_)NET_SUPPORT) += spl_net.o\n obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += spl_mmc.o\n obj-$(CONFIG_$(SPL_TPL_)ATF_SUPPORT) += spl_atf.o\n+obj-$(CONFIG_$(SPL_TPL_)OPTEE_SUPPORT) += spl_optee.o\n obj-$(CONFIG_$(SPL_TPL_)USB_SUPPORT) += spl_usb.o\n obj-$(CONFIG_$(SPL_TPL_)FAT_SUPPORT) += spl_fat.o\n obj-$(CONFIG_$(SPL_TPL_)EXT_SUPPORT) += spl_ext.o\ndiff --git a/common/spl/spl.c b/common/spl/spl.c\nindex d245cfc..6ff390c 100644\n--- a/common/spl/spl.c\n+++ b/common/spl/spl.c\n@@ -430,6 +430,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2)\n \t\tbl31_entry();\n \t}\n \n+\tif (CONFIG_IS_ENABLED(OPTEE_SUPPORT)) {\n+\t\tdebug(\"loaded - jumping to U-Boot via OP-TEE.\\n\");\n+\t\tspl_optee_entry(0, 0, 0, (void *)spl_image.entry_point);\n+\t}\n+\n \tdebug(\"loaded - jumping to U-Boot...\\n\");\n #ifdef CONFIG_BOOTSTAGE_STASH\n \tint ret;\ndiff --git a/common/spl/spl_optee.S b/common/spl/spl_optee.S\nnew file mode 100644\nindex 0000000..4f7f8ba\n--- /dev/null\n+++ b/common/spl/spl_optee.S\n@@ -0,0 +1,13 @@\n+/*\n+ * Copyright (C) 2017 Rockchip Electronic Co.,Ltd\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#include <linux/linkage.h>\n+#include <asm/assembler.h>\n+\n+ENTRY(spl_optee_entry)\n+\tldr lr, =CONFIG_SYS_TEXT_BASE\n+\tmov pc, r3\n+ENDPROC(spl_optee_entry)\ndiff --git a/include/spl.h b/include/spl.h\nindex ce4cf0a..13d46ed 100644\n--- a/include/spl.h\n+++ b/include/spl.h\n@@ -270,6 +270,15 @@ int spl_mmc_load_image(struct spl_image_info *spl_image,\n void bl31_entry(void);\n \n /**\n+ * spl_optee_entry - entry function for optee\n+ * entry arg0, pagestore\n+ * entry arg1, (ARMv7 standard bootarg #1)\n+ * entry arg2, device tree address, (ARMv7 standard bootarg #2)\n+ * entry arg3, non-secure entry address (ARMv7 bootarg #0)\n+ */\n+void spl_optee_entry(void *arg0, void *arg1, void *arg2, void *arg3);\n+\n+/**\n * board_return_to_bootrom - allow for boards to continue with the boot ROM\n *\n * If a board (e.g. the Rockchip RK3368 boards) provide some\n", "prefixes": [ "U-Boot", "06/10" ] }