From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3AD42C04A6A for ; Fri, 4 Aug 2023 23:34:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F34786688; Sat, 5 Aug 2023 01:34:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="NDvXwrSh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF91086672; Sat, 5 Aug 2023 01:34:08 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by phobos.denx.de (Postfix) with ESMTP id 3AA4B8660E for ; Sat, 5 Aug 2023 01:34:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanedmond@linux.microsoft.com Received: from ovlvm106.redmond.corp.microsoft.com (unknown [131.107.147.185]) by linux.microsoft.com (Postfix) with ESMTPSA id 72870207F5A2; Fri, 4 Aug 2023 16:34:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 72870207F5A2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691192043; bh=mz1xMwvymTevPhU42Of00UCEKorQxWbw16stYDXRV/o=; h=From:To:Cc:Subject:Date:From; b=NDvXwrShMmXB1/4SPeGf5cHBPGWwNcAlytcZVi5EbvBow2X9DdPb6OB37JM+ohOsx 1zcnnfaE5tczEfn0+tVvhLAFxiYnyVsQVgaw7Av4hZOlUPDB1nbOR2sU/WDNMGyjW/ D34+uyFsGqv1kQzomI45MM6CtmWDGsVWXZodGtak= From: seanedmond@linux.microsoft.com To: u-boot@lists.denx.de Cc: dphadke@linux.microsoft.com, macromorgan@hotmail.com, sjg@chromium.org Subject: [PATCH 0/3] Populate kaslr seed with TPM Date: Fri, 4 Aug 2023 16:33:54 -0700 Message-Id: <20230804233357.65214-1-seanedmond@linux.microsoft.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean From: Sean Edmond This patch series creates a common API (fdt_fixup_kaslr_seed()) for populating the kaslr seed in the DTB. Existing users (kaslrseed, and ARMv8 sec firmware) have been updated to use this common API. New functionality has been introduced to populate the kaslr using the TPM interface. This can be enabled with CONFIG_KASLR_TPM_SEED. Dhananjay Phadke (2): fdt: common API to populate kaslr seed fdt: kaslr seed from tpm entropy Sean Edmond (1): cmd: kaslrseed: Use common API to fixup FDT arch/arm/cpu/armv8/sec_firmware.c | 32 ++++----------- boot/image-fdt.c | 3 ++ cmd/kaslrseed.c | 18 ++------ common/fdt_support.c | 68 +++++++++++++++++++++++++++++++ include/fdt_support.h | 4 ++ lib/Kconfig | 9 ++++ 6 files changed, 94 insertions(+), 40 deletions(-) -- 2.40.0