From patchwork Tue Mar 13 16:50:29 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: 131518 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp973290ljb; Tue, 13 Mar 2018 09:55:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELtoBw7Bqn1VQIJAHl8KKGiJ68T9c+hfAG5U72bm/yiNn54ERJ2yqEv/ueJGWHf502AkYm0h X-Received: by 10.80.158.76 with SMTP id z70mr1618408ede.89.1520960150042; Tue, 13 Mar 2018 09:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960150; cv=none; d=google.com; s=arc-20160816; b=tv4PY88kN4AP4abML83XGqPt7Gpv+UybbT0advUH3rrHkt3C1WbVPbzueOxh3ozQ2F 9UktaM+YsUp/oT1wsRTmDg5jNmS79yCmOUhVtIAHAZF5z3bjKsNIKGeyXuvATl460A6j fjdRp6Vt0NEny27KC65VKcUm7vlK2WjAean+A/Yct+Hwetna9hN8NHCgcVdX0901P8N4 0FCnWJ6r9SGGOb7hf9TqpGbIQc0lK7me5+H8UHBmGHesgHRlAAlBt+pr67nXLduaPtP/ B4J0LE60QlGSnIRgK2mlTLM1Gml6lgQAKLrRmRBw04RF5IZtToV5YCblZuDgko8EOcWe UMFg== 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=KtoQ7JqTZ0N6X6ovWqqHzogYrG0XesnySG2JrrzFkSw+kIULIjEswxyov+JkBqk/5E GUillKpUIRjHBdJGOWSexui+tiubYAdJ3VSXflH1xd1+W2VVyytFT9De4pGO9QGHbmH3 ctBQgMZvaTklta90Bv3Pn7s1iwrpXQ2HJteMjp7LJQf5HYAVnTzYQ3oTsO0ZE3JkuRfr XRo7rjIKWa+8RNZhfen4F/wboOHYEWed+469lD3IkseXqEhGowlXjqpLqgeYQwC9MFfe BULkzQh5E/ei0/HD0I69dEts1qSxpUVLxuXVdDaGAVfUJ+8+B66CU+u8vki+Fkcr9gof IB2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZcnDFSTa; 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 b54si398282ede.130.2018.03.13.09.55.49; Tue, 13 Mar 2018 09:55:50 -0700 (PDT) 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=ZcnDFSTa; 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 A4326C21E39; Tue, 13 Mar 2018 16:52:10 +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_H2, 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 006F6C21E0B; Tue, 13 Mar 2018 16:50:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8A32FC21DFF; Tue, 13 Mar 2018 16:50:51 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id A1EA5C21DFF for ; Tue, 13 Mar 2018 16:50:45 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id k3so769300wrg.6 for ; Tue, 13 Mar 2018 09:50:45 -0700 (PDT) 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=ZcnDFSTalB6pde0gAbcRaXyWY3JvsWQdDKM4x456DSJx04Wke+imbwiPbX+Pc9PGTG 7bsI3p+p4urhSXB4palwRgo2HFoQCyxGgCKypj5QgxIjvLKEVVz03/5jsaic9+2J6k/U 7DCFuu0pooT2Tzljv00x7kntAmATIr02JD4BY= 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=BirOeRLym34vRm2rJBsUaZ9aNtXEh6uEFl5aKt0AR9RdKwuJTUR0eMOVN+tV+6rhYD 819MGSmAXI8WV3mMbDPWlekzsehnsnQplV+vfRqBBoWYjAVSUKSwR4qF6dcUjqQC2vLh q05YePIifAMA/99vvKt6rGBCN/EUh0SCH1K87WsLWxrpidQtJkLgoImejmJM3pQ+ji8F rv5ScHggCHd2pg6dK4cbql0BiqZGu9Qkj7cckAgVad2gl+U1ESHaoBQZPmz1HRjIjG42 DOrDFiPbDYtJ9adilXLat34EdIWyCaUJSZrCGQ2ilPzbmL2thojQm1gFjuPNtYB/8HRF 2HFQ== X-Gm-Message-State: AElRT7FmY+zapgayrSNjf6knqtVHnX4KT2d4shP5rvnm7QKZs5SYUKZ3 tCN/p8MWrB4SuMxI2sU3BVh5QQCiFGs= X-Received: by 10.80.201.76 with SMTP id p12mr1592940edh.199.1520959845116; Tue, 13 Mar 2018 09:50:45 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id 33sm476671edz.37.2018.03.13.09.50.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 09:50:44 -0700 (PDT) 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: Tue, 13 Mar 2018 16:50:29 +0000 Message-Id: <1520959836-16105-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520959836-16105-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520959836-16105-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Harinarayan Bhatta Subject: [U-Boot] [PATCH v6 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.