From patchwork Wed May 6 19:12:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 1284678 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=g2KwN58E; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49HR8z1L6yz9sSc for ; Thu, 7 May 2020 05:14:10 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A76EA8227C; Wed, 6 May 2020 21:13:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="g2KwN58E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA68781E4C; Wed, 6 May 2020 21:13:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E980A81C64 for ; Wed, 6 May 2020 21:12:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x441.google.com with SMTP id h9so3533282wrt.0 for ; Wed, 06 May 2020 12:12:58 -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 :mime-version:content-transfer-encoding; bh=PpoAhC/kNIYt3WI3HCinHt3Lt+2GgeVlpfp+RGwr+Sw=; b=g2KwN58EGPsUBYqNUvK/HrFR+BixkNfDLZuDL3fegxFlspZs12mj0+bkp0BnklAb8r csf22kvcjCD1iXKjVsYP32ej/L71HmbPwdy1+1/KABnvZ28zXDBijWBcRcer3qIDBriN ezkctI+vpxTzzLn00FTv0z8pz8W+WrPc8Qx2Wvdt20UxpKX/G+NgkIT4/Y5aYrJ9UrWT XET4Jv4fLD++yQ3zAeM93AmWLk0MXWDR/X3x9wU56qppzmAsgWBBgDQMah17we14DELS hvFHLN6TDUQEhYmE5xFwRqGcAqg8FOPbqOVjr3r7x8gJ7C6f5GiIbyiLG/iPb1BjDzif ZGmw== 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:mime-version:content-transfer-encoding; bh=PpoAhC/kNIYt3WI3HCinHt3Lt+2GgeVlpfp+RGwr+Sw=; b=Uz/kEqplYGROrwdftr9iLFaFtdEKv3Veo9JwN/RX2lWLJQA0sOC0Q9Ezx2Ws1K3jzK 93dGel200/jdVSeUt6d/TyEELXHrs/koLxef8X5wg1F/Qpi80271uDKMnrHD4PJeF+qO A/r6r4DxT7bBIPbJhZQYNNAfmXCGGkypAlULf/y/N/vikfzfVzCsbuEjDg37kwR/99W6 /TPco1Iv9ZAm48LKlXzKZeuCyz/viNYFkzOq6C9GC2lL2R47tXK2UncDP43U0bMUV7Ke /4p8G2rC0qp6VNJ7RZaZHJsBfnGQO73EsJLVoKxn9Ic2UhQAS3mDJBtFsUu0Xgo0GI2W JpPQ== X-Gm-Message-State: AGi0Pub5Hjdm9Xkihpo1V6Tq5wuR5wC7F2jh/Dl0JffjXqeXoQea2jTT x9VspgqN9GGIWDiopiFEDQxGZDMn0Y4= X-Google-Smtp-Source: APiQypKCEApljTUq9Z3Wydyq22Du8RVF5htBU0lYU++UNYMt6Ml7uiuwAgZLzpa6DwPY3uDClnLB/A== X-Received: by 2002:a5d:628e:: with SMTP id k14mr11947013wru.390.1588792378420; Wed, 06 May 2020 12:12:58 -0700 (PDT) Received: from apalos.home ([2a02:587:4652:c284:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id y3sm4271918wrm.64.2020.05.06.12.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 12:12:58 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de, xypron.glpk@gmx.de Cc: agraf@csgraf.de, ard.biesheuvel@linaro.org, Ilias Apalodimas Subject: [PATCH 6/6] doc: uefi.rst: Add OP-TEE variable storage config options Date: Wed, 6 May 2020 22:12:46 +0300 Message-Id: <20200506191246.237790-7-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200506191246.237790-1-ilias.apalodimas@linaro.org> References: <20200506191246.237790-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean If OP-TEE is compiled with an EDK2 application running in secure world it can process and store UEFI variables in an RPMB. Add documentation for the config options enabling this Signed-off-by: Ilias Apalodimas --- doc/uefi/uefi.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/uefi/uefi.rst b/doc/uefi/uefi.rst index 4fda00d68721..93b0faadd26e 100644 --- a/doc/uefi/uefi.rst +++ b/doc/uefi/uefi.rst @@ -188,6 +188,16 @@ on the sandbox cd pytest.py test/py/tests/test_efi_secboot/test_signed.py --bd sandbox +Using OP-TEE for EFI variables +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If an RPMB and it's drivers is available in U-Boot, OP-TEE can be used for +variable services. +Enabling CONFIG_EFI_MM_COMM_TEE=y will dispatch the variables services to +OP-TEE. OP-TEE needs to be compiled with a secure application (coming from EDK2) +which will process variables in the Secure World and store them in the RPMB +using the OP-TEE supplicant. + Executing the boot manager ~~~~~~~~~~~~~~~~~~~~~~~~~~