From patchwork Fri Mar 9 16:55:24 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: 131170 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1217056lja; Fri, 9 Mar 2018 09:00:49 -0800 (PST) X-Google-Smtp-Source: AG47ELsRNwZHXfNl/FGUTBYlqbtpldHxLZ+EAPtqTQHGfD3YJjFI/mzRjWGbyuwiCzqWFTjKT2o4 X-Received: by 10.80.144.5 with SMTP id b5mr28353616eda.118.1520614849747; Fri, 09 Mar 2018 09:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520614849; cv=none; d=google.com; s=arc-20160816; b=QHg7ThOVlrPxnTfCaumacNTcZkj5mKHUc3OLfRRN5A9zGccTnhUsVEKudXuBs+a7QD thtuC+8WlhMPNsGJ+ocxrsOp7B/2uGu8He6Gu4S9AZDTNJ6DKrhlo5/JEH3YMMcSNMQ0 EtpzpZIbZ87FvPkhMY47bRvJWLpOQUNLW1bEkUGzJh1kfb2c8L9XIglQH5fMMWbLJfFO a/E54lInzBe+dLZng3/9cd2o4Iyu9JrbrQT/ADwQZV1FIs//KmpfqW3N7e6pfUsIONTb GQiMITS9xft0rVtoi255lnkiP/NrhC5/LvMQiXVW+ZBOY7tlQF+s/nW3YS75y1I5OjTl yC+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=WIuIgvpgtZYDV9nhJRw8IR1f58HK9TAeX299G1fJjcA=; b=riadkmCZ72rde+nhL7uRmRDCFM2IB3qCrlMhwf6Z6D/6j1dCzRC2IkVck08+D/Wh4K XlRzHTLitDhRUlLVcrPEuzUjV1VVDR2n0laayKo3bnUnB94w73TX7a0yOGyVio7dKsLm qYvSQLK+KbT7a0h/XOHB9YS5cOSksyACkg5U78wZz8ZoOkJ8wLAHDlIcSzSw250ydaa6 qD1tIRTRtBiLHnfiQrGm4tNN1mx+Dey/6LmntpzJsNgqIuCdhNj6mkT44CWV1lVfLaMn FjdsL4C16BWGOylcF1aDGZYIFXTV7MIvK6k86rKE+eEzlhBYo8DduczjDFXlpaOWFeZr ro4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dZAi6V2m; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id v25si1660235eda.290.2018.03.09.09.00.49; Fri, 09 Mar 2018 09:00:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dZAi6V2m; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 560E3C21DF9; Fri, 9 Mar 2018 16:56:44 +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_DNSWL_BLOCKED, 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 5630FC21C6A; Fri, 9 Mar 2018 16:55:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A4B58C21DED; Fri, 9 Mar 2018 16:55:42 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 42F2FC21DE8 for ; Fri, 9 Mar 2018 16:55:37 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id z9so5036781wmb.3 for ; Fri, 09 Mar 2018 08:55:37 -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=JqMardwNHUiMRBwjh6/JFvFB6M2jc+0V4mjRrdamGCA=; b=dZAi6V2mrQmpbkTzcnmDfGWgV5kBo2NF/ZSNZYlxwknBm+CXpeq80BT0GksfAyxeLh 6GqekesyQxoLCorx4QjydGFUQEbe0YEyJJIbXRdvzBEbHHWbzbgiuaDY5p1DGhwCS+gu Qe8Js4KTtqz8KLmaISQqaFCpNRumKApyPq8Z0= 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=JqMardwNHUiMRBwjh6/JFvFB6M2jc+0V4mjRrdamGCA=; b=HsXtKTaZkcWi1W543tWyNOSCfCcAO71SdKxMMbvR4AnLP6dlE4Q4BpIElehuQ6B64+ Eksu/YaXT3d6bGbrNJN/VqGMtCLb+wMoczPvgBVxPDxnWZo/gQhUGGy6MG7Uf/9hT9O+ RXQCbiY+FuMPwivC99SPLU6hmK8O2MaMDYcge2XB1AyfSPeIpZA3MyeDZCZ+sfO7+SRK 6Ir81w2xE4lEk+J9DrBxfg7Q9nRCGAN5WsZyEF9o5OXfGXn7+GB1utgKNgyPxCURde/s 4Joncjhq4ElzUHnRmKctdkoPMaogoUQjGULDhTmgmP+UfbRg5llLU+sVeMxYppP/vskT F4Cg== X-Gm-Message-State: APf1xPBDvVxHxb73mX6NhEjhed4+fBM0KSVxha6aBH8pP6Gjwn55YgJW OCFoCpW76jFjzCnHgWWnLLrSQNuxD34= X-Received: by 10.80.209.216 with SMTP id i24mr37335617edg.213.1520614536759; Fri, 09 Mar 2018 08:55:36 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e40sm960335ede.15.2018.03.09.08.55.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 08:55:36 -0800 (PST) From: Bryan O'Donoghue To: U-Boot@lists.denx.de, trini@konsulko.com, afd@ti.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, peng.fan@nxp.com Date: Fri, 9 Mar 2018 16:55:24 +0000 Message-Id: <1520614531-2164-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Harinarayan Bhatta Subject: [U-Boot] [PATCH v5 03/10] 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 --- 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.