From patchwork Fri Jan 19 19:43:20 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: 125221 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp444240ljf; Fri, 19 Jan 2018 11:48:01 -0800 (PST) X-Google-Smtp-Source: AH8x225a+pIbGD5dGYWPlOtLS2dicWv4m1wY6ZxqBoVfZC72TFYA88ZK6rK8XKfuGCumRx1Lchb5 X-Received: by 10.80.208.2 with SMTP id j2mr70370edf.134.1516391280982; Fri, 19 Jan 2018 11:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516391280; cv=none; d=google.com; s=arc-20160816; b=hBMFBXQmjwxRDax4P3+DuOudONTa94h1O4qNQZ4+4geqcJIJ+cz3E11m6/diICOy2J RcqseqmDLgQfCiLCX3Ban6O0IDOW+7p4aUGO/MqtBMynW4vZaLDgw4t5aJIt8Osg51Th wQ0syzk1UlF8JCDDqNQOz0sDLIgAIfWfByM9mGevh3KS9q56D9jsj5LG/2eeXobbUGdC yMM5AVxHTkvYjI9IgGIhkuUGBcHDT7+DDOsiUK7jUOiuIw/G/T/HhvA6mftLQGr1MhTD 46Otdty+ldTQR6PNz918gZNnZ3ZIaZ8yB+OjU69S1M4/wp/ZpMFdBnx+p086rWPoiI7w UfSg== 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=+HwRYbf7MEs4fz7hMvmA4r5CtLSPj12HQ/fxGwTvpQ8=; b=ZMtk0bNNu0ZJ7PxlIABoWa9QlMmalP28y57VFCv0IebvyksQYq2UChLxZq65aN11g2 YXAdZmTHIBjhp/iZ10FGuCNKvMqQknTNfiN5f96YsSwfyTJk9dCcW7pbTBJlehFyNg/b HkeW9Bh47QLBY9MBpVQMp45t3AoMTdhYCNcco8bcZCgJ/cGHdB4jsPeiVxNKZkgGSYcX AbaX0bh1ixRtGB+IXkfrvteifmnRCaMGUH6e50Tv7e9BebAEEY957DMooyuGTJ9UpJwC 4s5MYQgsGnFp8LYy/dj0PNq4Ex+l2OuZbQBaYiLBI2CkWlOnEY4fTIm22lI/rI+zmxQM tvnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=W4fDe3A3; 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 l25si1096944edf.456.2018.01.19.11.48.00; Fri, 19 Jan 2018 11:48:00 -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=W4fDe3A3; 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 849CEC21F73; Fri, 19 Jan 2018 19:45:56 +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 882C1C21FA6; Fri, 19 Jan 2018 19:44:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A34F2C21F49; Fri, 19 Jan 2018 19:43:39 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id 0C0B7C21F6B for ; Fri, 19 Jan 2018 19:43:34 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 143so5468840wma.5 for ; Fri, 19 Jan 2018 11:43:34 -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=W4fDe3A3B1ReWzD+Qu/ewiiY8cWykbbnZdyFKqZEX4jEEZ4I0omrK9yTQyC4t1UGts zjZ83DuwGFNKGthiQ0/T+g9Yxdi1V3LWANkZ2CqjW4P5PCvu15cshUxg4B72kubAqWDw 47gAQP/kUcqlfXQUOi0E/zshUo5+6h6aAUQGA= 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=IzkoNncXLT0ywVD+LgZRcdGzqthYXogl0yLuE3r/UqICUgqlIvTiaoJsX+gXKEXJ8k /umF2Q4J3Ba0sgeA70wVVnzxXd/a9wBImxu0SRLSGwJ4kToQnW6+HZa/Of4ksXJAUw1h nMrZiC7HZue7FXByrnmrifNDgRYbaGf1kW6dTuH8/kJBt4chmWI/sZeHABvfMMMcaMLz dlBxcpz+bT9DldfD1fNVxVWO6xF+hJL2IhXg9ymmCMIY0iWOF2+UIgdHib6mceUzfeH2 /GRdpDlyBi3I6y9O3alPryKAxbeaGt3AJt6akjTL2g14NMD59uG29QqXHHNwP0pxHWJo +TIA== X-Gm-Message-State: AKwxytc+oNV+Vyr2dd8c9UvJlffn9sEuoHqKPS2y2B58/QIdvx2qBx5d 1/TlnOfB1enfAJAS99rSVjtUjisReE8= X-Received: by 10.80.152.19 with SMTP id g19mr37720edb.33.1516391013434; Fri, 19 Jan 2018 11:43:33 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id p6sm5936051edh.68.2018.01.19.11.43.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Jan 2018 11:43:32 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, trini@konsulko.com Date: Fri, 19 Jan 2018 19:43:20 +0000 Message-Id: <1516391006-22483-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516391006-22483-1-git-send-email-bryan.odonoghue@linaro.org> References: <1516391006-22483-1-git-send-email-bryan.odonoghue@linaro.org> Cc: harinarayan@ti.com Subject: [U-Boot] [PATCH v2 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.