From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BFB9606A322 for ; Thu, 3 Dec 2026 05:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=G0xffn8Y; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=KLRHtppU Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E99B26F679; Thu, 3 Dec 2026 05:03:51 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id XeCgdNQsqdPl; Thu, 3 Dec 2026 05:03:51 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 1F2E66F66E Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796274231; b=ZSSFvDXFBYaOwbAzY57XvL+X5nXYG5gXt/gKVY4J/d04SMDlBo53OC565mz97Zpvjdgf rFrNhpzFx18cryRnRGbNe3FnsNGY6YuQCrdhNZyol/0T/un2acxgG5uTr7m9KSB1AcOTK lf+In5nNa9rXEDOua9VQgIEG7UEAsSvU1EUASvdmBc81e+DCEHe7dyO4kJWHQ2YBg8a5h muXJmq1zwxYCW9NXC0pu/HhyTD5H55yytyrweY0iIKMElYfcqXE8WfOQ7opOGl5CtKe1F 9qVaaVbgai+sSxRL0i0S3izhPqimOXsMv+Hnx9srtPoMiqAjuebjbIYU8RAKHQAPprg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796274231; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Received: Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type: X-Mailman-Approved-At:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=c+SkYyflTa1Y3x+6yBBHi2dSg+EDkziGPgFcmUfqyHw=; b=geeCLSQuUKj4PejrZgZ5qCuDRRAh0Eyzmf5DuaAGpE2rp7QJPDSQ6Qro6Rz5C1a5cEZe rn0ViP+DOwtqZcYoPx4ab5scRSO9skiL0l1tLzcBbDgJ64Q7N7MwFTfGXKMaUObmQLsXb lATQG0aWZleGvvNbDYqrbaVPchMCXy7x9Viq+dJGHvr9QkV5E2fhlkMtEoX0kA2flfUzL 8Okd1c8llCcdYwdRkJRFi3llhq9LLZX9XVtemgWCu3uCRNffgrLePZOGh3HJ0PHKpp6tn xDVW9hXjcCtNn7gH1DsKVGJIDW/rMsuTzIAUEZt8EhtWC7tWbV1R3BVhlP/sc9mNBlA== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796274231; bh=c+SkYyflTa1Y3x+6yBBHi2dSg+EDkziGPgFcmUfqyHw=; h=Date:Subject:From:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=G0xffn8Y22E6XrLJJJuF/3CkmF0QI04KQR/lCwEAuHXY2u8xohg0VZClxfHSk/cgu hO43nk9MDh289E0b4WKsWKDkUk8Kdw0lpgENg+qeyGjwOKj1AMKzvZA8caXLUId2QL Y9f/Qt+ssBxnwxjgslvlUTwmuacEN3+CxhzDhH444wGJ0K5ZZ96cWNI21tNSYlXYE3 IfFAqpiMBhPLW0SVh4e3NutWAQ4MyZtlC+PXKNVyF+r085UqDVnJz5tu9HZzoTV5/w mHtmIcUEe/yGVkRF7e2jptVa5rTKznVsL4I7kNpKHIsTNBj1e0Rcl8lHmQbhkQsZTV hUtf488rIkWGg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 1F2E66F66E; Thu, 3 Dec 2026 05:03:51 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id 50F092B1 for ; Thu, 3 Dec 2026 02:22:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 376A94009D for ; Thu, 3 Dec 2026 02:22:09 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id pbOfLUM2LCGJ for ; Thu, 3 Dec 2026 02:22:08 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org 7B533400DB Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip="2001:4860:4864:20::47" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:4860:4864:20::47; helo=mail-oa1-x47.google.com; envelope-from=3tdiqawgkbpq15c9a2ga4cc492.0cai-zcch96ghg.i-zcch-dfc720h.cf4@flex--dholmesm.bounces.google.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=KLRHtppU Received: from mail-oa1-x47.google.com (mail-oa1-x47.google.com [IPv6:2001:4860:4864:20::47]) by smtp2.osuosl.org (Postfix) with ESMTPS id 7B533400DB for ; Thu, 3 Dec 2026 02:22:07 +0000 (UTC) Received: by mail-oa1-x47.google.com with SMTP id 586e51a60fabf-45eb9967696so562936fac.1 for ; Wed, 02 Dec 2026 18:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796264527; x=1796869327; darn=lists.u-boot-project.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=c+SkYyflTa1Y3x+6yBBHi2dSg+EDkziGPgFcmUfqyHw=; b=KLRHtppUHYpf3tPTeFQS+3oOE8lejFYqBa1u8IlOE0VF85X4HkL9W9pIxr4VHlx8vs gZu/S+kYWDcb00o5ozECeYcDZOkLZvYHnlAYU/Cio7s5thsSmyTMu7rTBvywHaPYmdFZ A0Gh94iw5KYaZJVYrddKFzzbKgTdbz/A+fxXYa3vvlS78ZnsNZxuXVWsGDWhypHQSOJ3 odMv4RAwMDivXyQb/+rGW9sJb/9IsVmmU+L5oJLHVI2SXb4u1D7ss7jDMT2Tvpnyy4K/ /5yDzxJc+32TTGnZB2UK5xkzQsWTSKx/ZJ4Lda1z5Xh91Lcsbj8cZsHXhk5iEHh+X+ty ULBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796264527; x=1796869327; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=c+SkYyflTa1Y3x+6yBBHi2dSg+EDkziGPgFcmUfqyHw=; b=KqhWhpj2zbF2HoJs0af+u0acs9t0No/NA2cJETDznk9OFK14VPwNQo2QdRe/Q6rGXg bDXGwts79Bqs+7+Bwnl9/VOhJm0fW/f8FOvlqPbSH9TixI8qqpcufNlry6/ReMt9S+kE 2SlIV40ggdIDQ30hodv0xISbaGW3qPyxUh2wfwUCshYdnEde8XOA1iC4IwLkYKrHzCXN Rwi+ZUDjTEqoH1CvN/wdF99/btBGYzB/tYyefCw3kpGqe/eGgMiB/XiTwcwxHnFLwacT hCXPN3rNYz4WBAuhj8O43gNGvupPr+Yyu/BJnEVXqNitlqo9rWLh/dV+TK+ctpUh4LaX 4LAA== X-Gm-Message-State: APuU4Z+KZ9ISQSschMX51eIAUz6+ncuBJfu/GBqPTdENVEtHlbwvjgea ccaRTstmapfqPG2l9lkQLlXRt6sf8HKpzT/6XVBk/vEp0XDbb47L9TMcq9Ti/qB9G2sos+qr113 4gEF1n4r200fSy/sNDJwj6QxhvjtlPS0klHSu7suMrl7C+TRkrOGPcEEIq3KtbR2mVt2ss4bUXa zalfzY3EziLX1S/TQLAzVEAnU2OMZMaKZTsfrOirI72myVFP3tQ6lW53qnLbw= X-Received: from oamm7.prod.google.com ([2002:a05:6870:8887:b0:4ad:bde3:7f14]) (user=dholmesm job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6870:4594:b0:4a7:2ba8:8e66 with SMTP id 586e51a60fabf-4e0e24b2813mr655374fac.37.1796264525886; Wed, 02 Dec 2026 18:22:05 -0800 (PST) Date: Thu, 03 Dec 2026 02:21:08 GMT X-Archived-By: Mime-Version: 1.0 Message-ID: <20261203022028.04-00-dholmesm@google.com> Subject: [PATCH 0/4] qfw/acpi & efi_loader: Fix linker cleanup, RSDP bounds, and absent/offset ACPI handling From: Dan Holmes-Mitra To: u-boot@lists.u-boot-project.org Cc: Tom Rini , Heinrich Schuchardt , Ilias Apalodimas Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 03 Dec 2026 05:03:38 +0000 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Four targeted fixes for QEMU fw_cfg ACPI loading and EFI ACPI/FDT registration: 1. qfw/acpi: On BIOS linker error, walk only processed ALLOCATE entries, free only ZONE_HIGH heap buffers when CONFIG_BLOBLIST_TABLES is disabled (never bloblist or ZONE_FSEG addresses), and clear ctx->rsdp. 2. qfw/acpi: Compute the 20-byte base RSDP checksum first, guard the ACPI 2.0 length/ext_checksum writes behind revision >= 2 so 20-byte ACPI 1.0 RSDPs (e.g. QEMU i440fx) do not overflow by 16 bytes, and guard NULL in acpi_get_rsdp_addr(). 3. qfw/acpi: Skip adding BLOBLISTT_ACPI_TABLES when etc/table-loader is absent (e.g. QEMU -M virt,acpi=off). Keep the 64 KiB reservation when CONFIG_BLOBLIST_TABLES is disabled (so default 0x20000 bloblists are unaffected) and dynamically sum aligned ALLOCATE entry sizes from etc/table-loader when CONFIG_BLOBLIST_TABLES is enabled. 4. efi_loader: Prefer gd_acpi_start() when non-zero (while falling back to map_to_sysmem(tab) for prior-stage bloblist ACPI handoffs) so EFI_ACPI_TABLE_GUID points to the actual RSDP inside BLOBLISTT_ACPI_TABLES, treat absent runtime ACPI tables (!tab / !gd_acpi_start()) as a non-fatal no-op in efi_acpi_register(), and check whether EFI_ACPI_TABLE_GUID was actually installed in efi_install_fdt() so FDT boot works when firmware supplies no ACPI tables while preserving EBBR for prior-stage bloblist ACPI handoffs. Tested: - Live QEMU arm64 (qemu_arm64_defconfig + CONFIG_ACPI + CONFIG_GENERATE_ACPI_TABLE): - CONFIG_BLOBLIST_TABLES=y (CONFIG_BLOBLIST_SIZE_RELOC=0x40000), -M virt,acpi=on: bloblist sized dynamically to 0x21000; `acpi list` and `efidebug tables` report valid RSDP/XSDT/DSDT/FACP/APIC/GTDT/MCFG/SPCR/DBG2/IORT. - CONFIG_BLOBLIST_TABLES=y, -M virt,acpi=off: `bloblist list` omits BLOBLISTT_ACPI_TABLES and `efidebug tables` succeeds cleanly. - Default CONFIG_BLOBLIST_TABLES=n (CONFIG_BLOBLIST_SIZE_RELOC=0x20000), -M virt,acpi=on: 0x10000 bloblist, `acpi list` and `efidebug tables` pass. - Stock qemu-x86_64_defconfig (CONFIG_BLOBLIST_SIZE_RELOC=0x40000, ACPI_SIZE=192K): built cleanly (no arch/x86/lib/tables.c size change). - Checked with scripts/checkpatch.pl --strict --u-boot (0 errors, 0 warnings). Dan Holmes-Mitra (4): qfw/acpi: Do not free non-heap addresses on linker error qfw/acpi: Guard ACPI 1.0 RSDP bounds and NULL lookup qfw/acpi: Skip absent ACPI bloblist and size from table-loader efi_loader: Handle offset or absent runtime ACPI tables drivers/misc/qfw_acpi.c | 88 +++++++++++++++++++++++++++++++------ lib/efi_loader/efi_acpi.c | 6 ++- lib/efi_loader/efi_helper.c | 9 +++- 3 files changed, 87 insertions(+), 16 deletions(-) base-commit: d1caced3a435607435cb7969e34499051a4ac1e6 -- 2.56.1.911.g883d8bcb20-goog