Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISC-V: ACPI: fix early_ioremap to early_memremap
commit 1966db6 upstream. When SVPBMT is enabled, __acpi_map_table() will directly access the data in DDR through the IO attribute, rather than through hardware cache consistency, resulting in incorrect data in the obtained ACPI table. The log: ACPI: [ACPI:0x18] Invalid zero length. We do not assume whether the bootloader flushes or not. We should access in a cacheable way instead of maintaining cache consistency by software. Fixes: 3b426d4 ("RISC-V: ACPI : Fix for usage of pointers in different address space") Cc: [email protected] Reviewed-by: Alexandre Ghiti <[email protected]> Signed-off-by: Yunhui Cui <[email protected]> Reviewed-by: Sunil V L <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information