| Message ID | 20251023094308.3406453-7-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212632; bh=PahhOXoFhKzNUdkwH4zbi90Ms51kSdQTYfjckXuQAJ4=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=YtpRakNEkJ2ycPHX/NXJfFitFnH1YrxL4qkXqG4sxSAL1YjvXASBcm/85ZN8AnWUo SwmHra09vX298aBM0iQ0TCqddmDxQiRnkZzD29cVmjR0Gz/ga6IefovejWGhB8+m+v kouhzKL1IsqSElSZoZVbPl06CKU2fi+7mb5C00d+rwHutjzGx8EuIrO/CPvocsGg0w MoDujbpVMZ9LvtFudfoxBraSSzurrgJj3AvcvVSXUvSNW96WCxm2ZmE72g4HaD8BZY E5P3TOxegJ+EnQPe8QBspddafQaTHhay6OWotY/6oidNnmY5marYGahoJE/rreFOhB OcOuWXCDpX1iA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C2BA6682AE for <u-boot-concept@u-boot.org>; Thu, 23 Oct 2025 03:43:52 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wiab9vYp_Hb3 for <u-boot-concept@u-boot.org>; Thu, 23 Oct 2025 03:43:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212631; bh=PahhOXoFhKzNUdkwH4zbi90Ms51kSdQTYfjckXuQAJ4=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=UQHzrpl6REuYcnz1dW8zlUAIEUXdBE8HrEfpcheOZhlDsr3RsFmB1uLSE66rQahQM TdfNRuJHcXtABFS5iSiBvw5HAVZFx4Wy8PwGfcTEcSourjsM/Og0bmToXcYfSRmRkX ML87UnlZCiJaeqxSN8rUt5ckYBVjuuVvuk76pwZ1fv11FzfY5NUL4Ngk9iyDF1leKs 2wCBqJEvYkGRhpCFMikPiokUbyptg5GnzVGztG+tJ+mfPeFgN8ElShe0Dvv5LRHrCA Hdg/FPN5V3mFcxhLkLTCzy4pkD2L7LgeeDDYX7PnM+SHybZqtt/5J3dyxNIDpyK18/ J57ynMfrTGmCQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E9C4C682B0 for <u-boot-concept@u-boot.org>; Thu, 23 Oct 2025 03:43:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212629; bh=9h3G9GVFgVdw3g1GraNbP2+G+GZnmwXCcYtBKqi5FZs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Imjwg1qlQESTKz7pLJEbXnJ4gdPnveKjdKHz7O08yyTF448RctPvY0VJim7F02U4j 1Tx6kk6gRYh4T1Os1oxjZtOBgMK56v2Nr0Cx8b5/EFYoBtLSSgvnuWYpwWwiLIYJcu MGxcaVBakljE1J+kERYw8ijA013DFFZOYDgCyMFPaym5ha6eQLO1nTC5iKKMJznngG h3JbYDAqJ5kOC5B38Y642j8P1FDbu8rxq5Xmxphdk9VOTGuicKOWGSifCOAUp0PWi5 /d18aItsc/SChXiAHC2riVzVvJbY8+azhpZ4JIp9ynsA5Hd7n1zWr+iJOB3K92z0Eq AIRjbKqov2ZqA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 039CC68195; Thu, 23 Oct 2025 03:43:49 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 9raDCDC27mAR; Thu, 23 Oct 2025 03:43:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212625; bh=jZKVxzmQqwRynFoFR1xj41b148QV3GQoBR/RmE3LH44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H4gSNEm1ztRZuN4hJcUymOvPwGoiHDcGyai+qNWV3Q4lS1w+dPRaZ+BNk2E8yp35T FsqJojI4c6sz7MDTzK02v65Aky5BJ1c6yaODLo0eUiIh9RzpNM1AGf6Tx7ZSb5ej9A YarOaRQtETMnXMpl5yNUZk90i3hbEKhJU462jJZutfrNUhILJxfy/BG9xIXLMAYAuy YhHpkI/PiFaWin9LPazOSc7f5jvKU8wqDvuzdKZ1S3Kdq/vWt/OS3ffdzu5voadfam Qsz7YS6pWNhvJv0UAYycXkO6nOFHk6MGloHCFidzExadwU3RLlaiVPhODRG8a8pHMx 2+KL7itlxBafg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 4181E68245; Thu, 23 Oct 2025 03:43:45 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Thu, 23 Oct 2025 03:42:55 -0600 Message-ID: <20251023094308.3406453-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251023094308.3406453-1-sjg@u-boot.org> References: <20251023094308.3406453-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 5OMJ7HRYVXECLFKK6QJKDPDSFKG3B2HI X-Message-ID-Hash: 5OMJ7HRYVXECLFKK6QJKDPDSFKG3B2HI X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 06/11] acpi: fpdt: Generate the table List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/5OMJ7HRYVXECLFKK6QJKDPDSFKG3B2HI/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Bootstage and script enhancements
|
|
Commit Message
Simon Glass
Oct. 23, 2025, 9:42 a.m. UTC
From: Simon Glass <sjg@chromium.org> Add an ACPI writer to automatically generate the FPDT table with boot timing information when ACPI tables are created. This allows the OS to read firmware boot-timing metrics from the FPDT table. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/acpi/acpi_table.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_table.c index 31d8d314314..0c1b8e20cf4 100644 --- a/lib/acpi/acpi_table.c +++ b/lib/acpi/acpi_table.c @@ -785,3 +785,14 @@ int acpi_fix_fpdt_checksum(void) return 0; } + +static int acpi_create_fpdt(struct acpi_ctx *ctx, + const struct acpi_writer *entry) +{ + u64 uboot_start; + + uboot_start = bootstage_get_time(BOOTSTAGE_ID_START_UBOOT_F); + + return acpi_write_fpdt(ctx, uboot_start); +} +ACPI_WRITER(6fpdt, "FPDT", acpi_create_fpdt, 0);