]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: RISC-V: Implement function to reorder irqchip probe entries
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 12 Aug 2024 00:59:22 +0000 (06:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Aug 2024 13:48:35 +0000 (15:48 +0200)
commitf8bba143dae10f824e2b4522f31d6e78781b8667
tree4b55e5b134884423e345d107a39a2688fd0c0df5
parent01415e78cf724c3080846471f4b2accfe79ace81
ACPI: RISC-V: Implement function to reorder irqchip probe entries

On RISC-V platforms, the RINTC structures should be probed before any
other interrupt controller structures and IMSIC before APLIC. This order
is established by using MADT sub table types which are ordered in the
incremental order from the RINTC. So, add the architecture function for
RISC-V to reorder the interrupt controller probing as per the hierarchy
like below.

  ACPI_MADT_TYPE_RINTC = 24,
  ACPI_MADT_TYPE_IMSIC = 25,
  ACPI_MADT_TYPE_APLIC = 26,
  ACPI_MADT_TYPE_PLIC = 27

This means processing all RINTC structures (in the order of appearance
in MADT), followed by IMSIC strucutre and then all APLIC/PLIC
structures.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://patch.msgid.link/20240812005929.113499-11-sunilvl@ventanamicro.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/riscv/Makefile
drivers/acpi/riscv/irq.c [new file with mode: 0644]