From patchwork Sun Feb 14 15:27:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jorge Ramirez-Ortiz, Foundries" X-Patchwork-Id: 1440290 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=a5c8FSV6; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Ddrhw5K1Jz9sRN for ; Mon, 15 Feb 2021 02:27:54 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7E455826F2; Sun, 14 Feb 2021 16:27:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="a5c8FSV6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F3078006D; Sun, 14 Feb 2021 16:27:37 +0100 (CET) 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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 8ECF38006D for ; Sun, 14 Feb 2021 16:27:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jorge@foundries.io Received: by mail-wm1-x32b.google.com with SMTP id u5so1245295wmj.0 for ; Sun, 14 Feb 2021 07:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hLW+JmMTshNUOdk8iBIkfT/ZaC7TdyBlVjn8MRr9Ulo=; b=a5c8FSV6BS9pIDXWObfgCcTqekkIQef3aNit+DxkzqwlsenDFAR0l2ZPfdYmguD3RU I9p/9WWMHBZ3ZFWDddK6QNpb7tnEIamiDKqKrBCQEqJC7W7xWIwlZ751XLnhQOjpf/PQ cX9H6NhlYvZR6i2P3AQAspoZaKrcjvVYfjYytt3Kitmg6tpnRuMdr2OWRSTsOiRprHAQ p7ysIduutulWeEKWkfsBmm9jn+5okQq78jxc0Kz170USmN9S9ejIasHutv9k2cfTIlZr JZW/Cu8s+Zd/30xUcNGq7yyrYvGIjkix1v8/XfSTUvM/TliSPNgLcmumyG3pRpNG1T44 ImYg== 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:mime-version :content-transfer-encoding; bh=hLW+JmMTshNUOdk8iBIkfT/ZaC7TdyBlVjn8MRr9Ulo=; b=g696xJoH9NsKf8v0uffJ7Kf1JN+2EUmtPOTOLzyBASheDdjTnVlcnZhpqJxm9y9dUj B40rEqNdMIxfh0wtLhTpjfOUhxAsI7sSEgSL+tSa8iv2wmPkvhBoy7wLjIDJzX3PHV0H 0dEUiBwHff19p2wAOuRFTNBZPY5G7m9xu25ES0MZfGfJ4+Wc6gwms65Cz2/KTA95Ro8h /DqvxsIAd1FDo7SpNmmlwJYA9lo5Yv48OspwROIuBoDoIZl3oSb8r/hd8+p7orzmO+dF TSnQQ9PNczLDof7232kmcn1fOSDHkGg8MCdrQ6N2D59scNkOJBN/0L+oNit0crudyVWV Mg5A== X-Gm-Message-State: AOAM531SVX0MBCVfGPt0B2yVVAlWXvNW4CGPuIst7dAUL2vbQa1LJRKH LjBD5LY9f62SM/4Nn5euC77NhA== X-Google-Smtp-Source: ABdhPJwC2v5MjV2EKz2StziXfDJ53DoiY4AmeEJpxjnrKyzqxw019fXLY1KG18jcmJJtshT9XudKNQ== X-Received: by 2002:a1c:d7:: with SMTP id 206mr10678177wma.68.1613316454161; Sun, 14 Feb 2021 07:27:34 -0800 (PST) Received: from localhost.localdomain (182.red-79-146-86.dynamicip.rima-tde.net. [79.146.86.182]) by smtp.gmail.com with ESMTPSA id f7sm10520801wmh.39.2021.02.14.07.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 07:27:33 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, sjg@chromium.org, jens.wiklander@linaro.org Cc: igor.opaniuk@foundries.io, u-boot@lists.denx.de Subject: [PATCHv5 0/6] SCP03 control, documentation and tests. Date: Sun, 14 Feb 2021 16:27:22 +0100 Message-Id: <20210214152728.8628-1-jorge@foundries.io> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.3 at phobos.denx.de X-Virus-Status: Clean Simply adding the reviewed-by tags to the v5 series. Igor Opaniuk (2): sandbox: imply SCP03 and CMD_SCP03 test: py: add initial coverage for scp03 cmd Jorge Ramirez-Ortiz (4): common: SCP03 control (enable and provision of keys) cmd: SCP03: enable and provision command drivers: tee: sandbox: SCP03 control emulator doc: describe the scp03 command arch/Kconfig | 2 ++ cmd/Kconfig | 8 +++++ cmd/Makefile | 3 ++ cmd/scp03.c | 52 ++++++++++++++++++++++++++++++++ common/Kconfig | 8 +++++ common/Makefile | 1 + common/scp03.c | 53 +++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + doc/usage/scp03.rst | 33 +++++++++++++++++++++ drivers/tee/optee/Kconfig | 6 ++++ drivers/tee/sandbox.c | 57 ++++++++++++++++++++++++++++++++++-- include/scp03.h | 21 +++++++++++++ include/tee/optee_ta_scp03.h | 21 +++++++++++++ test/py/tests/test_scp03.py | 27 +++++++++++++++++ 14 files changed, 291 insertions(+), 2 deletions(-) create mode 100644 cmd/scp03.c create mode 100644 common/scp03.c create mode 100644 doc/usage/scp03.rst create mode 100644 include/scp03.h create mode 100644 include/tee/optee_ta_scp03.h create mode 100644 test/py/tests/test_scp03.py