All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] efi_loader: Emit standard ACPI/PCI device paths for PCI DM devices
@ 2026-12-03  2:21 Dan Holmes-Mitra
  2026-12-03  2:21 ` [PATCH 1/2] efi_loader: Add PCI hardware device path node and text conversion Dan Holmes-Mitra
  2026-12-03  2:21 ` [PATCH 2/2] efi_loader: Emit ACPI/PCI device path nodes for PCI DM devices Dan Holmes-Mitra
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Holmes-Mitra @ 2026-12-03  2:21 UTC (permalink / raw)
  To: u-boot; +Cc: Heinrich Schuchardt, Ilias Apalodimas, Tom Rini,
	Vincent Stehlé

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03  5:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  2:21 [PATCH 0/2] efi_loader: Emit standard ACPI/PCI device paths for PCI DM devices Dan Holmes-Mitra
2026-12-03  2:21 ` [PATCH 1/2] efi_loader: Add PCI hardware device path node and text conversion Dan Holmes-Mitra
2026-12-03  2:21 ` [PATCH 2/2] efi_loader: Emit ACPI/PCI device path nodes for PCI DM devices Dan Holmes-Mitra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.