diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2026-10-27 22:51:12 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-10-27 22:51:12 +0800 |
| commit | a9b0c34507eba2b386be61fe49ab2fe0db121674 (patch) | |
| tree | 8d6e058a5b267e5d9c63ad045ee10a0ee4046883 /include/linux | |
| parent | 15107b81b88d9568bcb871996dfd4368542f3f1f (diff) | |
| download | linux-a9b0c34507eba2b386be61fe49ab2fe0db121674.tar.gz linux-a9b0c34507eba2b386be61fe49ab2fe0db121674.zip | |
ACPI: LoongArch: Add acpi_arch_[late]_init()
LoongArch IOMMU scanning flow is similar with virtio-iommu, there is an
early init phase and a late init phase. In the early init function, PCI
ACS is enabled if there is IOMMU table, and the late init function is
called after PCI device scanning, where IOVT table scanning function is
executed.
Here add acpi_arch_init() and acpi_arch_late_init() API for LoongArch:
the acpi_iovt_init() function is to enable PCI ACS function if the IOMMU
device exists in IOVT table; while the acpi_iovt_late_init() function is
to scan IOVT table and add IOMMU devices.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/acpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index d7f1f3d05390..9d3f039ebd94 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1637,6 +1637,7 @@ static inline int acpi_pptt_get_cpumask_from_cache_id(u32 cache_id, #endif void acpi_arch_init(void); +void acpi_arch_late_init(void); #ifdef CONFIG_ACPI_PCC void acpi_init_pcc(void); |
