Files
linux-stable-mirror/arch/mips/include/asm
Serge Semin 4b88c9c83f mips: dmi: Fix early remap on MIPS32
[ Upstream commit 0d0a3748a2 ]

dmi_early_remap() has been defined as ioremap_cache() which on MIPS32 gets
to be converted to the VM-based mapping. DMI early remapping is performed
at the setup_arch() stage with no VM available. So calling the
dmi_early_remap() for MIPS32 causes the system to crash at the early boot
time. Fix that by converting dmi_early_remap() to the uncached remapping
which is always available on both 32 and 64-bits MIPS systems.

Note this change shall not cause any regressions on the current DMI
support implementation because on the early boot-up stage neither MIPS32
nor MIPS64 has the cacheable ioremapping support anyway.

Fixes: be8fa1cb44 ("MIPS: Add support for Desktop Management Interface (DMI)")
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:52:50 -08:00
..
2021-09-08 15:32:35 -07:00
2024-01-25 14:52:50 -08:00
2021-07-13 15:08:15 -05:00
2021-05-07 00:26:34 -07:00
2021-04-06 15:12:58 +02:00
2023-03-10 09:40:09 +01:00
2021-04-06 15:12:58 +02:00
2021-09-08 15:32:35 -07:00