Page MenuHomeFreeBSD

dev: acpica: Add PCI device methods for aarch64
ClosedPublic

Authored by sarah.walker2_arm.com on Aug 25 2026, 12:49 PM.
Tags
None
Referenced Files
F176279767: D59169.id186955.diff
Sat, Oct 17, 3:10 PM
F176269906: D59169.diff
Sat, Oct 17, 1:34 PM
Unknown Object (File)
Thu, Oct 15, 5:43 AM
Unknown Object (File)
Tue, Oct 13, 7:49 PM
Unknown Object (File)
Sat, Oct 10, 8:51 AM
Unknown Object (File)
Fri, Oct 9, 4:36 PM
Unknown Object (File)
Thu, Oct 8, 1:08 PM
Unknown Object (File)
Wed, Oct 7, 4:33 AM
Subscribers

Details

Summary

Add pci_get_id() and pci_alloc_msi() device methods for aarch64 platforms.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Seems fine to me. Rather than defining the methods only on arm64, can we instead only conditionalize the acpi_iort_* calls? Or is there some specific reason not to handle it that way?

sys/arm64/acpica/acpi_iort.c
842

Extra newline

Seems fine to me. Rather than defining the methods only on arm64, can we instead only conditionalize the acpi_iort_* calls? Or is there some specific reason not to handle it that way?

No, I can't think of a reason not to do that.

Looks ok, my comments are just style nits.

sys/arm64/acpica/acpi_iort.c
803

"_alloc_msi" would be more consistent with existing interfaces.

sys/dev/acpica/acpi.c
2385

Explicit comparison with 0 would be better style and clearer IMO.

This revision is now accepted and ready to land.Sep 9 2026, 12:27 PM
This revision now requires review to proceed.Sep 9 2026, 1:16 PM
sys/arm64/acpica/acpi_iort.c
842

Still here.

sys/dev/acpica/acpi.c
2399

Same comment here about comparison with 0.

This revision is now accepted and ready to land.Sep 10 2026, 9:09 AM
sys/dev/acpica/acpi.c
161

Is this still needed (and around DEVMETHOD below)? It looks like it would break the build on non-arm64 as the functions will be unused.

This revision now requires review to proceed.Sep 10 2026, 10:52 AM
This revision is now accepted and ready to land.Sep 10 2026, 11:20 AM