From patchwork Tue Jan 23 20:41:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 865029 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="SFFqcCow"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zR0hr1xMmz9s82 for ; Wed, 24 Jan 2018 07:46:52 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E1619C21F10; Tue, 23 Jan 2018 20:46:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A5820C2215F; Tue, 23 Jan 2018 20:42:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2B218C21EBD; Tue, 23 Jan 2018 20:42:09 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 144D8C21F10 for ; Tue, 23 Jan 2018 20:42:06 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id v71so4470898wmv.2 for ; Tue, 23 Jan 2018 12:42:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=D3sScOBXVrDfJK8H51bDHqCJRdkVs9+Z4uICV0VXhv0=; b=SFFqcCowd21OSm9Q2Z7cw/ki70lj5CPOvsf6hpqI0FKU0tYLk0SmGvDPjMZS/7b0dy SRLsNAvLsNvkrqMZSLbvTSERPWkNRtj9C+5Dxy5f77cdiHUvvcofKEGahtvOfozAFaKA Wq3BcAzeO0OhJx1cMQBSGiEJQrO7dGHpl7CUM= 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:in-reply-to :references; bh=D3sScOBXVrDfJK8H51bDHqCJRdkVs9+Z4uICV0VXhv0=; b=HUMcvFYw8MOb/5QMWKQTojs5PGXLu+miTDc5cHXHS6IbWJbg3zVXObFBzkepaQlD/i b2dIfYPwRBZXLlYgHGdnOjuTe8FMSHxaPJpI6cUlfOyGpjXUiatvX+Poov7XighaF1qj Ol1FRE0eSxNP2nvmFWINI5fOeGidBiLeuie+NjDYGll8/VUaAvqRpVcfJ+k68FYTxRUe kkMpeevGtR5U5/tgCleS97DzGzqWX+rwSPKUQI8lINGqT7Xf8dkYE55iz01ZvKwOwMoH PrrRRQ5YfPFHK+P4hKXeWHaJUnd4GVmg+KNaTORtOiVTf7W25j4xLy/QF9WfoNg/oocX rajA== X-Gm-Message-State: AKwxytfbwjvesRUQEj23aJ8k+qKvicuZpuJazC918R6BZ+4wqewLQpTX 1PKfH4R9mUlVvF12nKzEswpF+yqc4bo= X-Google-Smtp-Source: AH8x226vtMbs9lGzxj9dFG5HWcPt1jwtLE092Rv7MUQxREgmw06hMSBiPfCwfaD2mKjRSa4dnrA4fw== X-Received: by 10.80.170.69 with SMTP id p5mr21541590edc.10.1516740125444; Tue, 23 Jan 2018 12:42:05 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id k12sm12400896edl.86.2018.01.23.12.42.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jan 2018 12:42:04 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, trini@konsulko.com Date: Tue, 23 Jan 2018 20:41:54 +0000 Message-Id: <1516740120-948-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516740120-948-1-git-send-email-bryan.odonoghue@linaro.org> References: <1516740120-948-1-git-send-email-bryan.odonoghue@linaro.org> Cc: harinarayan@ti.com Subject: [U-Boot] [PATCH v3 3/9] optee: Add CONFIG_OPTEE_TZDRAM_BASE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" OPTEE is currently linked to a specific area of memory called the TrustZone DRAM. This patch adds a CONFIG entry for the default address of TrustZone DRAM that a board-port can over-ride. The region that U-Boot sets aside for the OPTEE run-time should be verified before attempting to hand off to the OPTEE run-time. Each board-port should carefully ensure that the TZDRAM address specified in the OPTEE build and the TZDRAM address specified in U-Boot match-up. Further patches will use TZDRAM address with other defines and variables to carry out a degree of automated verification in U-Boot prior to trying to boot an OPTEE image. Signed-off-by: Bryan O'Donoghue Cc: Harinarayan Bhatta Cc: Andrew F. Davis Cc: Tom Rini Cc: Kever Yang Cc: Philipp Tomsich Cc: Peng Fan --- lib/optee/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 41c0ab7..a3b7332 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -14,3 +14,11 @@ config OPTEE_TZDRAM_SIZE help The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE runtime. + +config OPTEE_TZDRAM_BASE + hex "Base address of Trust-Zone RAM for the OPTEE image" + depends on OPTEE + default 0x9d000000 + help + The base address of pre-allocated Trust Zone DRAM for + the OPTEE runtime.