From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 9A368606A322 for ; Thu, 3 Dec 2026 05:04:01 +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=s6Jq2sGN; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Lo/MqS5l Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7386385F6F; Thu, 3 Dec 2026 05:04:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id JFZwTO0wbDRh; Thu, 3 Dec 2026 05:04:00 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 5E05985E91 Authentication-Results: smtp1.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=1796274240; b=pUdlyYPTBIOLz6eDBgDisdLie4ksGcUc7NZr4Um3WFbE3pL0fFgjo8XwIEFxgkUjzSpN xYLjKCBSmQRZd1NjuOPnBfXPJX+rIs+TqD4mZCOd6EemlHFGnH5jMTBgTdubt5T/FE/c0 uTCF6aLepdMyg5EBUxPpKI6URIlPqC4kl2MPkW5rFMrIsBQWMFQYaom9Emv/rzxQHFoJD xliiKkf7oTen3aUpEZ4Ndis480vJSxdd1WKrnnalI9/9ihNZqUyAETXAbHzFMqgvnmbaX BF8rMv5ifqHpv3w7wAgcIyRkeIghKLm49xhduLFwZ0k/+cI7E4fKY4oCQ4h4gYzVs3g== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796274240; 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=UKbCef/CJEqX0upflRGsCD0aBnyBea3m4fEAYxiN404=; b=hMnTaY88hPuvwT1lyV8DZ+fQk85j//2o3xchcmsGew0T8bXaq8MRmkwcsoKo/LYpehO/ V/n7ui4jAUKt8S/zX3heNVZXq3Xk+bB4Mu24xGVQ4Bao/oIh2dJP0aXCyGuKDOjFO/I7V mJjI0n+RHVPm3Sw/BJYrjgTKcw5p8eikT9o6g6TO1KYLy1XfW1ZEXKZ6XcuEcwHGSxWTY nm6pnqwvztV2gnyJA5KwhzD+55sMwlZiia3jjxbcDMWIrFlEeXhGzvROVNfh49M64Z3Qt hGBbGN2/xUarEn1KWf8iqTx6kiPrg4gpl3jkOPaOh9X2sd5d2sJR1J7aw5bpJKCLsaQ== ARC-Authentication-Results: i=1; smtp1.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=1796274240; bh=UKbCef/CJEqX0upflRGsCD0aBnyBea3m4fEAYxiN404=; h=Date:Subject:From:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=s6Jq2sGNxqLNrYqht4jnsN/aphZQSxtboyepX+YNvBK2iCf50ExbuQwXoNb188ogT YyGWGMqyqzisfDSAGF4x0sysVDCPKOnlMh21wnBAu0zYi7f9+NDtUtD4eEtKrlWrC9 NAPv8C5IYn6wV250mBcyitop0jBN5iSEt2eKzPejOkfymummXHlcjsRhILzSiwfiwW cy/G+ZYMb7XLmDuudiHPyNVj8WWj/nlXCXnhRHFSlDUPofLzI2wiMH2x6BjERIdudM QLUfE/Nqwn9HlVBcbmUR2b9u5olvgLf5s8mxH+ulaePLP2zrC5nPJef2TweWFUxy8U 6T/vyZ55QmaAA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 5E05985E91; Thu, 3 Dec 2026 05:04:00 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id B7B3933E for ; Thu, 3 Dec 2026 02:22:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A967D6F8DF for ; Thu, 3 Dec 2026 02:22:21 +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 PARMRs8rNCGr for ; Thu, 3 Dec 2026 02:22:21 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org BC2946F8D5 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip="2001:4860:4864:20::46" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:4860:4864:20::46; helo=mail-oa1-x46.google.com; envelope-from=3wtiqawgkbqeeipmnftnhpphmf.dpnv-cppumjtut.v-cppu-qspkfdu.psh@flex--dholmesm.bounces.google.com; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Lo/MqS5l Received: from mail-oa1-x46.google.com (mail-oa1-x46.google.com [IPv6:2001:4860:4864:20::46]) by smtp3.osuosl.org (Postfix) with ESMTPS id BC2946F8D5 for ; Thu, 3 Dec 2026 02:22:20 +0000 (UTC) Received: by mail-oa1-x46.google.com with SMTP id 586e51a60fabf-49dd26d6f07so10448132fac.0 for ; Wed, 02 Dec 2026 18:22:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796264539; x=1796869339; 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=UKbCef/CJEqX0upflRGsCD0aBnyBea3m4fEAYxiN404=; b=Lo/MqS5lPNZ2m0XVhbcDkTt9ryjf3C0Z2Mp1bQTg/OHygfTnpVzF5xtRGeUC6D1omx 0MffdYYMuuWsCB66GBcsaOwaXcBJGrNndG28pehBRJDV1EgMdMS0tz+25kkFlWUTpBeK 8vqaJvlaZ7ospooK8p82cOxl+e9fvM0zYi+VcidWZS8NaJTiIv5JeMLpvy4oNiKjH5E3 J1xBHPx32peh3dMkPuMnvsRXXF4dkfoxF2f8nVYT2s5rxN5uQYb/ME7LRwVdhobTDm8j /lrnpsP0dlEVNxM+2RLjP06Zx3s1t1krB0nqLrvr8BoVsrknjeL4M0pJiixhRkzBbkjT 54sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796264539; x=1796869339; 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=UKbCef/CJEqX0upflRGsCD0aBnyBea3m4fEAYxiN404=; b=iqb38+Wek5wdQfdmKoJyskgcEVcIRWZtOXQOB+y1jx9cvgSpHJ3orQA1rzvLw1SPOO 5p1Y4qD2uVfa/a853wpNf6BpLHUrDEg27LR4HGImGZ45qN9qkZLcgO/t36ngB0vqolUS PiiHVRPQPD5YL5kfTksOyA3GjP9Tqj/X7eNZBs4ZlkIeWaGzy4w05ACOw1xeAkpiUVmz Dr2gf8ui6VD/XIIhO7aBC0/pN0TMiVfLeB4+1/pnLbCRggPke9/gSX70U3T5Oacm1NNw WhpPVV8Yy02LQ0oYKtBch492KhqTJhXcNorDxEORRo0r0piA6diMBxwPnaMEgswffkYG +waw== X-Gm-Message-State: APuU4Z/5bnhZRTozLOMgMVYc7p1VtteTvoUPULtUnXqQckgtCDwWriM8 y1xEHZfe5M5tPlSzTDLiuaYFqoat/Mbvon1KzhmRpMOkPdA3TRUs2Zi2Wltvgz/AFnlg3jQFJxy whdM7EpN0AtF2L+cku36qcIAVtKLBin3/Ods+qxEf3wTVd1KGxOA6YQKiLcM3fuGMhKC80HrVDN 23Wwhb5OzBLKS0ITagVAxyRhlPH1zrCQqgsZGLCcn4zCIvqHt2bYg36/f50Mo= X-Received: from oadxh27-n1.prod.google.com ([2002:a05:6871:ed1b:10b0:4dc:6ca2:5869]) (user=dholmesm job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6870:828c:b0:491:7c1c:c24d with SMTP id 586e51a60fabf-4bc8366bad9mr37128890fac.30.1796264538900; Wed, 02 Dec 2026 18:22:18 -0800 (PST) Date: Thu, 03 Dec 2026 02:21:18 GMT X-Archived-By: Mime-Version: 1.0 Message-ID: <20261203022028.05-00-dholmesm@google.com> Subject: [PATCH 0/2] efi_loader: Emit standard ACPI/PCI device paths for PCI DM devices From: Dan Holmes-Mitra To: u-boot@lists.u-boot-project.org Cc: Heinrich Schuchardt , Ilias Apalodimas , Tom Rini , "=?utf-8?q?Vincent_Stehl=C3=A9?=" 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 UEFI device paths built from Driver Model PCI devices currently fall back to U-Boot-specific VenHw() nodes instead of standard Acpi(PNP0A03,uid)/Pci(dev,func) hardware paths. 1. Define DEVICE_PATH_SUB_TYPE_PCI and struct efi_device_path_pci per UEFI Specification Section 10.3.1.1, format PCI nodes in EFI_DEVICE_PATH_TO_TEXT_PROTOCOL, and add selftest coverage in lib/efi_selftest/efi_selftest_devicepath.c. 2. Teach dp_size() and dp_fill() to emit Acpi(PNP0A03,uid) for PCI root bridges (preferring DT linux,pci-domain with fallback to dev_seq(dev) so multi-domain FDTs keep matching segment IDs) and Pci(dev,func) nodes for devices residing on a PCI bus (including PCI bridges, PCI-attached NICs and MMC controllers, and default PCI controllers). Tested: - sandbox_defconfig: bootefi selftest 'device path' passed (0 failures), including the new Pci(0x1a,0x2) conversion check. - Live QEMU arm64 (qemu_arm64_defconfig + -device e1000): `efidebug dh` reports `/Acpi(PNP0A03,0)/Pci(0x1,0x0)/MAC(525400123456,1)`. - qemu_arm64_defconfig with CONFIG_PCI=n: efi_device_path.o compiles cleanly. - Checked with scripts/checkpatch.pl --strict --u-boot (0 errors, 0 warnings). Dan Holmes-Mitra (2): efi_loader: Add PCI hardware device path node and text conversion efi_loader: Emit ACPI/PCI device path nodes for PCI DM devices include/efi_api.h | 7 +++ lib/efi_loader/efi_device_path.c | 62 ++++++++++++++++++++-- lib/efi_loader/efi_device_path_to_text.c | 6 +++ lib/efi_selftest/efi_selftest_devicepath.c | 33 ++++++++++++ 4 files changed, 105 insertions(+), 3 deletions(-) base-commit: d1caced3a435607435cb7969e34499051a4ac1e6 -- 2.56.1.911.g883d8bcb20-goog