mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 07:54:36 -05:00
RISC-V IO Mapping Table (RIMT) is a static ACPI table to communicate IOMMU information to the OS. The spec is available at [1]. The changes at high level are, a) Initialize data structures required for IOMMU/device configuration using the data from RIMT. Provide APIs required for device configuration. b) Provide an API for IOMMU drivers to register the fwnode with RIMT data structures. This API will create a fwnode for PCIe IOMMU. [1] - https://github.com/riscv-non-isa/riscv-acpi-rimt Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250818045807.763922-2-sunilvl@ventanamicro.com Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
16 lines
324 B
C
16 lines
324 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2023-2024, Ventana Micro Systems Inc
|
|
* Author: Sunil V L <sunilvl@ventanamicro.com>
|
|
*/
|
|
|
|
#include <linux/acpi.h>
|
|
#include "init.h"
|
|
|
|
void __init acpi_arch_init(void)
|
|
{
|
|
riscv_acpi_init_gsi_mapping();
|
|
if (IS_ENABLED(CONFIG_ACPI_RIMT))
|
|
riscv_acpi_rimt_init();
|
|
}
|