RISC-V: ACPI: Enhance acpi_os_ioremap with MMIO remapping
authorSunil V L <sunilvl@ventanamicro.com>
Wed, 18 Oct 2023 12:40:04 +0000 (18:10 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 26 Oct 2023 16:40:31 +0000 (09:40 -0700)
commite8065df5b0c46086ad539beb7745ea26b26a7623
tree1fd69deeab951b71132761c613a812e4c036b8e2
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
RISC-V: ACPI: Enhance acpi_os_ioremap with MMIO remapping

Enhance the acpi_os_ioremap() to support opregions in MMIO space. Also,
have strict checks using EFI memory map to allow remapping the RAM similar
to arm64.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231018124007.1306159-2-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/kernel/acpi.c