Page MenuHomeFreeBSD

dev: acpica: Add PCI device methods for aarch64
Needs ReviewPublic

Authored by sarah.walker2_arm.com on Tue, Aug 25, 12:49 PM.
Tags
None
Referenced Files
F171183884: D59169.id.diff
Wed, Sep 9, 8:15 AM
Unknown Object (File)
Tue, Sep 8, 1:30 PM
Unknown Object (File)
Tue, Sep 8, 12:51 PM
Unknown Object (File)
Mon, Sep 7, 2:05 PM
Unknown Object (File)
Sat, Sep 5, 9:58 AM
Unknown Object (File)
Sat, Sep 5, 9:21 AM
Unknown Object (File)
Sat, Sep 5, 3:30 AM
Unknown Object (File)
Fri, Sep 4, 11:44 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76663
Build 73546: arc lint + arc unit

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
2358

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

This revision is now accepted and ready to land.Wed, Sep 9, 12:27 PM
This revision now requires review to proceed.Wed, Sep 9, 1:16 PM