Page MenuHomeFreeBSD

acpica: rework INTRNG interrupt mapping
ClosedPublic

Authored by jchandra on Oct 31 2018, 11:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 19, 5:19 AM
Unknown Object (File)
Jan 19 2024, 8:19 AM
Unknown Object (File)
Jan 11 2024, 6:37 PM
Unknown Object (File)
Dec 23 2023, 3:16 AM
Unknown Object (File)
Dec 13 2023, 8:19 AM
Unknown Object (File)
Nov 4 2023, 8:09 PM
Unknown Object (File)
Oct 27 2023, 8:48 AM
Unknown Object (File)
Oct 3 2023, 8:06 PM
Subscribers

Details

Summary

On arm64 (where INTRNG is enabled), the interrupts have to be mapped with ACPI_BUS_MAP_INTR() before adding them as resources to devices.

The earlier code did the mapping before calling acpi_set_resource(), which bypassed code that checked for PCI link interrupts.

To fix this, move the call to map interrupts into acpi_set_resource() and that requires additional work to lookup interrupt properties.
The changes here are to:

  • extend acpi_lookup_irq_handler() to lookup an irq in the ACPI resources
  • create a helper function acpi_map_intr() which uses the updated acpi_lookup_irq_handler() to look up an irq, and then map it with ACPI_BUS_MAP_INTR()
  • use acpi_map_intr() in acpi_pcib_route_interrupt() to map pci link interrupts.

With these changes, we can drop the ifdefs in acpi_resource.c, and we can also drop the call for mapping interrupts in generic_timer.c

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable