From patchwork Fri Apr 11 15:29:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 880172 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp825998wrq; Fri, 11 Apr 2025 08:31:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVbBDQRwmpqoUWLGDXsO57+7sXyrCs5UF3IM0jNmiN9K7sYeSkQu3mZfqDMdHkfDgjUiYXxYg==@linaro.org X-Google-Smtp-Source: AGHT+IFqdPpTc9I5cf4xQmLKu70jzp+Wzw3tio0qleQdEyC1ADEy2F/QSYZJH0tKNTVkhxFjhd7J X-Received: by 2002:a05:6102:504c:b0:4c1:76a4:aee4 with SMTP id ada2fe7eead31-4c9e4fffa38mr2198042137.19.1744385471024; Fri, 11 Apr 2025 08:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744385471; cv=none; d=google.com; s=arc-20240605; b=SMcDH9kpz3W9vQghfvQpHHA4u6Pr66RhZVSCRLVQnhUnGYkx9UE3cK+c2stXJgO9JI H9IroKN/tgPm4orPLSfsNdmY6YjgyBeHick7TAzusj/26YLjxQqQCWCcuPNcA2v1OuEy y05WI011v0/afuZ3Kfh2M9gheoYXVVUAZkYO/FcvrJKeezhDEGXvPtvTET2DPlgcYvlZ 4/+mMWnpMIZquqN+gg/jhUajbSnmF1ox3mbxyPLoA3qQ68AHSce4RZSLK+clk6gdlQ02 EbuybuePPviQICrEHLVHhGcqx3xmK0IlC0hiarqF9naIwL0SHvXTfvNj/vYOmkjy1Ckj 7sHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bWUkHyYtXKAVxk5o1dsv/C0f7Tt7qzeAo8bJPCjh5jU=; fh=hXA4rjmTYcXhZQoCnIF4lWsQAax/XCvrVYdQb8XFLRc=; b=lfDOB83JWgB63DC6pITCheFFhUUTux4fMpT+bykqCMyLXUqr+IfoUQXynbVxDh2pP1 FT+UoBSgzpSc8VNKZL2xscyl4s5+96JWa8C1KargJduSxECuNO6Xl/X2ixjPyfyYxebi MvlrHG6WXPqRVkftTE5BlJ+OXgvQEpArcBDXw7lnBVMJ0Y5ql+Pc3yt5lOVz2fD6J9xt OjjscO38KMrENSwMdwXBTxC8ZGrX89iTAfNUhsPNH5ObR3xlXdJ8nQhkRV0baJhslO/8 w4BOePyNikZg2rwUTyNQZimRSmCfWtYZjWSBGp+uRaWXHaZPoPHg16aDURW4qmsFUwRU h/4Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=actg2gtP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ada2fe7eead31-4c9c973d845si2432783137.38.2025.04.11.08.31.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Apr 2025 08:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=actg2gtP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CAEF284197; Fri, 11 Apr 2025 17:30:59 +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="actg2gtP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 679B384003; Fri, 11 Apr 2025 17:30:58 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 612DA840D5 for ; Fri, 11 Apr 2025 17:30:56 +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=jerome.forissier@linaro.org Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4394a823036so21651255e9.0 for ; Fri, 11 Apr 2025 08:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744385456; x=1744990256; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bWUkHyYtXKAVxk5o1dsv/C0f7Tt7qzeAo8bJPCjh5jU=; b=actg2gtPhn4mNarWET+3MAu4krBXHCHKegJzRLQo9ihTqi1F5XUFzs9anykxUxJzJg SZNyDp4zdbDD581MdWbv3pXcwwPkgvBFLHbbLCt/aM0JPn49wC+xLJqPRDv7LJjTxme7 dSLa7rwOpiuiKu5yV7eu8BWrA2H4MQ7/XUm+/xiByPyeREkvKsRSZv+D6zRl9jYevm5m e/6VGahdXTwHpWfiidAItTr/k46FI4tygcmGqEqk/KBbSH7sVFShRsX3HKXhmj4BdBLu QEkhs4sHPY/V9/7rmNb7QfoyJJrf7edwd+om5QTGHpbz/F7mEgCnY0bKrG7yXiBDeTOK 0qYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744385456; x=1744990256; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bWUkHyYtXKAVxk5o1dsv/C0f7Tt7qzeAo8bJPCjh5jU=; b=p1TIxQdsXF57Qf2nkg9j4SvGV4SE0N8FLpoQOzkqLcZba4+cs6XiDLTXD/G74MEtmV 30qBMtjuEslXxlUGrzSmFPcvzp6kEjCKZ1rX890M99z3cVvQR3UsOi+UMd1HvtrAoitl jGgORaW15aZ++pyW7GoNyHhh6SPqnKFCkL41JU1n5/fWIERpUPlmKbNMhhtq3zcy1Day AjuY63sJOJcxO3mv+v8DnMNfv2tqK/JOLTEFKWRUcaXITt9SQOx9HnWs3NpiqpQChOZP FgbqDw7rRtPkv3UjzDRFcTOND9GOHnnk6l3GZCWI524wgbRwHKaBCH6WLth5Cwo35Auu b2Sw== X-Gm-Message-State: AOJu0Yzl7ZSyKX7vIy78U93EhyHhGaREI4DaZt2Un590JJtifZBNbyAU QDyAlF95qmGD9ZUpOutO2QBxLI5AlBALNLhNlliBPn4qdbiXVJ5+BxSEWdEmSl/VCHdQItb6N/d NpSg= X-Gm-Gg: ASbGnctiNHoJvJ4/3MVXWYB8DEXNFA0nmeEI8RmPzt3BgECcwGAtPu4bcPxszCYfeaH dqaHh5oIRuZJ+aL9og6U+69N6lxn/1GvlMve7Pvno5+sGe6/MV+1ZJtDZJYo1mZz6ZWdCPa8zd+ 8Aq1H07V2ZKjXz5xHH3fag/oT2JdZftnKetfjbxFufmuog3kuf7zmla3Sus7dymjqRje07ysaxu hW9NPyhGabUTOLI2T/p1kIoKPot9fUzAf9mrnFpkEYfXtMEk7RkU9NHquzwSGDPVV2DYyGm7ujJ /xuHKpnhPm3TvIuZXd764DWyAdpdKq4aktCrdKimg0Vxj2oiJQ== X-Received: by 2002:a05:600c:3b19:b0:439:9e13:2dd7 with SMTP id 5b1f17b1804b1-43f3a92568amr33933585e9.2.1744385455671; Fri, 11 Apr 2025 08:30:55 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:94cf:dbda:d223:8de8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43f205ecf30sm90337355e9.1.2025.04.11.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Apr 2025 08:30:55 -0700 (PDT) From: Jerome Forissier To: U-Boot mailing list Cc: Jerome Forissier , Adriano Cordova , Heinrich Schuchardt , Ilias Apalodimas , Janne Grunau , Mattijs Korpershoek , Tom Rini , Yao Zi Subject: [RFC PATCH v1 1/7] efi_loader: make efi_exit_boot_services() call bootstage_report() Date: Fri, 11 Apr 2025 17:29:27 +0200 Message-ID: <20250411153040.1772000-2-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250411153040.1772000-1-jerome.forissier@linaro.org> References: <20250411153040.1772000-1-jerome.forissier@linaro.org> MIME-Version: 1.0 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 CONFIG_BOOTSTAGE_REPORT is currently supported in the bootm command only. Add support to the EFI boot. Signed-off-by: Jerome Forissier --- lib/efi_loader/efi_boottime.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index c8d9a6037f7..96da279afd4 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY LOGC_EFI #include +#include #include #include #include @@ -2179,6 +2180,12 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle, EFI_ENTRY("%p, %zx", image_handle, map_key); +#if !defined(USE_HOSTCC) +#if CONFIG_IS_ENABLED(BOOTSTAGE) + bootstage_report(); +#endif +#endif + /* Check that the caller has read the current memory map */ if (map_key != efi_memory_map_key) { ret = EFI_INVALID_PARAMETER;